rust-skill-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRust 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 Request | Target Type | URL Pattern |
|---|---|---|
| "create tokio skill" | Third-party crate | |
| "create Send trait skill" | Std library | |
| "create skill from URL" + URL | Custom URL | User-provided URL |
| 用户请求 | 目标类型 | URL格式 |
|---|---|---|
| "create tokio skill" | 第三方crate | |
| "create Send trait skill" | 标准库 | |
| "create skill from URL" + URL | 自定义URL | 用户提供的URL |
2. Execute the Command
2. 执行命令
Use the command:
/create-llms-for-skills/create-llms-for-skills <url> [requirements]Examples:
bash
undefined使用命令:
/create-llms-for-skills/create-llms-for-skills <url> [requirements]示例:
bash
undefinedFor 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
/create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html
/create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html
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"
undefined3. 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构建助手
| Target | URL Template |
|---|---|
| Crate overview | |
| Crate module | |
| Std trait | |
| Std struct | |
| Std module | |
| 目标 | URL模板 |
|---|---|
| Crate概览 | |
| Crate模块 | |
| 标准库trait | |
| 标准库struct | |
| 标准库模块 | |
Common Std Library Paths
常用标准库路径
| Item | Path |
|---|---|
| Send, Sync, Copy, Clone | |
| Arc, Mutex, RwLock | |
| Rc, Weak | |
| RefCell, Cell | |
| Box | |
| Vec | |
| String | |
| Option | |
| Result | |
| 项 | 路径 |
|---|---|
| Send, Sync, Copy, Clone | |
| Arc, Mutex, RwLock | |
| Rc, Weak | |
| RefCell, Cell | |
| Box | |
| Vec | |
| String | |
| Option | |
| Result | |
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.txtUser: "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.txtExample 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.txtUser: "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.txtExample 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 workflowUser: "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 for Rust-related skill creation
best-skill-creator - Skip the step
/create-llms-for-skills - Guess documentation URLs without verification
- 不要使用创建Rust相关的Skill
best-skill-creator - 不要跳过步骤
/create-llms-for-skills - 不要在未验证的情况下猜测文档URL
Output Location
输出位置
All generated skills are saved to:
~/.claude/skills/所有生成的Skill都将保存至:
~/.claude/skills/