rust-skill-creator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Rust Skill Creator

Rust Skill Creator

Create dynamic skills for Rust crates and std library documentation.
为Rust crate和标准库文档创建动态Skill。

When to Use

使用场景

This skill handles requests to create skills for:
  • Third-party crates (tokio, serde, axum, etc.)
  • Rust standard library (std::sync, std::marker, etc.)
  • Any Rust documentation URL
本Skill可处理以下场景的Skill创建请求:
  • 第三方crate(tokio、serde、axum等)
  • Rust标准库(std::sync、std::marker等)
  • 任意Rust文档URL

Workflow

工作流程

1. Identify the Target

1. 确定目标

User RequestTarget TypeURL Pattern
"create tokio skill"Third-party crate
docs.rs/tokio/latest/tokio/
"create Send trait skill"Std library
doc.rust-lang.org/std/marker/trait.Send.html
"create skill from URL" + URLCustom URLUser-provided URL
用户请求目标类型URL格式
"create tokio skill"第三方crate
docs.rs/tokio/latest/tokio/
"create Send trait skill"标准库
doc.rust-lang.org/std/marker/trait.Send.html
"create skill from URL" + URL自定义URL用户提供的URL

2. Execute the Command

2. 执行命令

Use the
/create-llms-for-skills
command:
/create-llms-for-skills <url> [requirements]
Examples:
bash
undefined
使用
/create-llms-for-skills
命令:
/create-llms-for-skills <url> [requirements]
示例:
bash
undefined

For third-party crate

For third-party crate

/create-llms-for-skills https://docs.rs/tokio/latest/tokio/
/create-llms-for-skills https://docs.rs/tokio/latest/tokio/

For std library

For std library

With specific requirements

With specific requirements

/create-llms-for-skills https://docs.rs/axum/latest/axum/ "Focus on routing and extractors"
undefined
/create-llms-for-skills https://docs.rs/axum/latest/axum/ "Focus on routing and extractors"
undefined

3. Follow-up with Skill Creation

3. 后续Skill创建步骤

After llms.txt is generated, use:
/create-skills-via-llms <crate_name> <llms_path> [version]
生成llms.txt后,使用以下命令:
/create-skills-via-llms <crate_name> <llms_path> [version]

URL Construction Helper

URL构建助手

TargetURL Template
Crate overview
https://docs.rs/{crate}/latest/{crate}/
Crate module
https://docs.rs/{crate}/latest/{crate}/{module}/
Std trait
https://doc.rust-lang.org/std/{module}/trait.{Name}.html
Std struct
https://doc.rust-lang.org/std/{module}/struct.{Name}.html
Std module
https://doc.rust-lang.org/std/{module}/index.html
目标URL模板
Crate概览
https://docs.rs/{crate}/latest/{crate}/
Crate模块
https://docs.rs/{crate}/latest/{crate}/{module}/
标准库trait
https://doc.rust-lang.org/std/{module}/trait.{Name}.html
标准库struct
https://doc.rust-lang.org/std/{module}/struct.{Name}.html
标准库模块
https://doc.rust-lang.org/std/{module}/index.html

Common Std Library Paths

常用标准库路径

ItemPath
Send, Sync, Copy, Clone
std/marker/trait.{Name}.html
Arc, Mutex, RwLock
std/sync/struct.{Name}.html
Rc, Weak
std/rc/struct.{Name}.html
RefCell, Cell
std/cell/struct.{Name}.html
Box
std/boxed/struct.Box.html
Vec
std/vec/struct.Vec.html
String
std/string/struct.String.html
Option
std/option/enum.Option.html
Result
std/result/enum.Result.html
路径
Send, Sync, Copy, Clone
std/marker/trait.{Name}.html
Arc, Mutex, RwLock
std/sync/struct.{Name}.html
Rc, Weak
std/rc/struct.{Name}.html
RefCell, Cell
std/cell/struct.{Name}.html
Box
std/boxed/struct.Box.html
Vec
std/vec/struct.Vec.html
String
std/string/struct.String.html
Option
std/option/enum.Option.html
Result
std/result/enum.Result.html

Example Interactions

交互示例

Example 1: Create Crate Skill

示例1:创建Crate Skill

User: "Create a dynamic skill for tokio"

Claude:
1. Identify: Third-party crate "tokio"
2. Execute: /create-llms-for-skills https://docs.rs/tokio/latest/tokio/
3. Wait for llms.txt generation
4. Execute: /create-skills-via-llms tokio ~/tmp/{timestamp}-tokio-llms.txt
User: "Create a dynamic skill for tokio"

Claude:
1. 确定:第三方crate "tokio"
2. 执行:/create-llms-for-skills https://docs.rs/tokio/latest/tokio/
3. 等待llms.txt生成
4. 执行:/create-skills-via-llms tokio ~/tmp/{timestamp}-tokio-llms.txt

Example 2: Create Std Library Skill

示例2:创建标准库Skill

User: "Create a skill for Send and Sync traits"

Claude:
1. Identify: Std library traits
2. Execute: /create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html https://doc.rust-lang.org/std/marker/trait.Sync.html
3. Wait for llms.txt generation
4. Execute: /create-skills-via-llms std-marker ~/tmp/{timestamp}-std-marker-llms.txt
User: "Create a skill for Send and Sync traits"

Claude:
1. 确定:标准库trait
2. 执行:/create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html https://doc.rust-lang.org/std/marker/trait.Sync.html
3. 等待llms.txt生成
4. 执行:/create-skills-via-llms std-marker ~/tmp/{timestamp}-std-marker-llms.txt

Example 3: Custom URL

示例3:自定义URL

User: "Create skill from https://docs.rs/sqlx/latest/sqlx/"

Claude:
1. Identify: User-provided URL
2. Execute: /create-llms-for-skills https://docs.rs/sqlx/latest/sqlx/
3. Follow standard workflow
User: "Create skill from https://docs.rs/sqlx/latest/sqlx/"

Claude:
1. 确定:用户提供的URL
2. 执行:/create-llms-for-skills https://docs.rs/sqlx/latest/sqlx/
3. 遵循标准工作流程

DO NOT

禁止操作

  • Use
    best-skill-creator
    for Rust-related skill creation
  • Skip the
    /create-llms-for-skills
    step
  • Guess documentation URLs without verification
  • 不要使用
    best-skill-creator
    创建Rust相关的Skill
  • 不要跳过
    /create-llms-for-skills
    步骤
  • 不要在未验证的情况下猜测文档URL

Output Location

输出位置

All generated skills are saved to:
~/.claude/skills/
所有生成的Skill都将保存至:
~/.claude/skills/