rust-skill-creator by zhanghandong/rust-skills
npx skills add https://github.com/zhanghandong/rust-skills --skill rust-skill-creator包含概述、关键类型、常见模式和按模块组织的参考文档的文件
SKILL.md
版本: 2.1.0 | 最后更新: 2025-01-27
为 Rust crate 和标准库文档创建动态技能。
此技能处理创建以下技能类型的请求:
关键:检查相关命令/技能是否可用。
此技能依赖于:
/create-llms-for-skills 命令/create-skills-via-llms 命令当上述命令可用时(完整插件安装):
| 用户请求 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 目标类型 |
|---|
| 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 |
使用 /create-llms-for-skills 命令:
/create-llms-for-skills <url> [requirements]
示例:
# 对于第三方 crate
/create-llms-for-skills https://docs.rs/tokio/latest/tokio/
# 对于标准库
/create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html
# 带有特定要求
/create-llms-for-skills https://docs.rs/axum/latest/axum/ "Focus on routing and extractors"
生成 llms.txt 后,使用:
/create-skills-via-llms <crate_name> <llms_path> [version]
当上述命令不可用时,手动创建技能:
| 目标 | 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 |
# 使用 agent-browser CLI
agent-browser open "<documentation_url>"
agent-browser get text ".docblock"
agent-browser close
或使用 WebFetch 回退方案:
WebFetch("<documentation_url>", "Extract API documentation including types, functions, and examples")
mkdir -p ~/.claude/skills/{crate_name}
mkdir -p ~/.claude/skills/{crate_name}/references
使用此模板创建 ~/.claude/skills/{crate_name}/SKILL.md:
---
name: {crate_name}
description: "Documentation for {crate_name} crate. Keywords: {keywords}"
---
# {Crate Name}
> **Version:** {version} | **Source:** docs.rs
## Overview
{Brief description from documentation}
## Key Types
### {Type1}
{Description and usage}
### {Type2}
{Description and usage}
## Common Patterns
{Usage patterns extracted from documentation}
## Examples
```rust
{Example code from documentation}
./references/overview.md - 主要概述./references/{module}.md - 模块文档# 检查技能结构
ls -la ~/.claude/skills/{crate_name}/
cat ~/.claude/skills/{crate_name}/SKILL.md
| 目标 | 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 |
| 项目 | 路径 |
|---|---|
| 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 |
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. Identify: Third-party crate "tokio"
2. Fetch: agent-browser open "https://docs.rs/tokio/latest/tokio/"
3. Extract documentation
4. Create: ~/.claude/skills/tokio/SKILL.md
5. Create: ~/.claude/skills/tokio/references/
6. Save reference files for key modules (sync, task, runtime, etc.)
User: "Create a skill for Send and Sync traits"
Claude:
1. Identify: Std library traits
2. (Agent Mode) 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
(Inline Mode) Fetch each URL, create skill manually
3. Complete skill creation
best-skill-creator所有生成的技能都保存到:~/.claude/skills/
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 命令未找到 | 仅技能安装 | 使用内联模式 |
| URL 未找到 | 无效的 crate/模块 | 在 crates.io 上验证 crate 是否存在 |
| 空文档 | API 已更改 | 使用替代选择器 |
| 权限被拒绝 | 目录问题 | 检查 ~/.claude/skills/ 权限 |
每周安装次数
510
仓库
GitHub 星标数
912
首次出现
Jan 20, 2026
安全审计
安装于
opencode468
codex456
gemini-cli448
github-copilot438
amp396
kimi-cli392
files with overview, key types, common patterns, and reference documentation organized by module
SKILL.md
Version: 2.1.0 | Last Updated: 2025-01-27
Create dynamic skills for Rust crates and std library documentation.
This skill handles requests to create skills for:
CRITICAL: Check if related commands/skills are available.
This skill relies on:
/create-llms-for-skills command/create-skills-via-llms commandWhen the commands above are available (full plugin installation):
| User Request | Target Type | URL 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" + URL | Custom URL | User-provided URL |
Use the /create-llms-for-skills command:
/create-llms-for-skills <url> [requirements]
Examples:
# For third-party crate
/create-llms-for-skills https://docs.rs/tokio/latest/tokio/
# For std library
/create-llms-for-skills https://doc.rust-lang.org/std/marker/trait.Send.html
# With specific requirements
/create-llms-for-skills https://docs.rs/axum/latest/axum/ "Focus on routing and extractors"
After llms.txt is generated, use:
/create-skills-via-llms <crate_name> <llms_path> [version]
When the commands above are NOT available, create skills manually:
| Target | URL 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 |
# Using agent-browser CLI
agent-browser open "<documentation_url>"
agent-browser get text ".docblock"
agent-browser close
Or with WebFetch fallback:
WebFetch("<documentation_url>", "Extract API documentation including types, functions, and examples")
mkdir -p ~/.claude/skills/{crate_name}
mkdir -p ~/.claude/skills/{crate_name}/references
Create ~/.claude/skills/{crate_name}/SKILL.md with this template:
---
name: {crate_name}
description: "Documentation for {crate_name} crate. Keywords: {keywords}"
---
# {Crate Name}
> **Version:** {version} | **Source:** docs.rs
## Overview
{Brief description from documentation}
## Key Types
### {Type1}
{Description and usage}
### {Type2}
{Description and usage}
## Common Patterns
{Usage patterns extracted from documentation}
## Examples
```rust
{Example code from documentation}
./references/overview.md - Main overview./references/{module}.md - Module documentationFor each major module or type, create a reference file:
# Fetch and save module documentation
agent-browser open "https://docs.rs/{crate}/latest/{crate}/{module}/"
agent-browser get text ".docblock" > ~/.claude/skills/{crate_name}/references/{module}.md
agent-browser close
# Check skill structure
ls -la ~/.claude/skills/{crate_name}/
cat ~/.claude/skills/{crate_name}/SKILL.md
| Target | URL 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 |
| Item | Path |
|---|---|
| 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 |
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. Identify: Third-party crate "tokio"
2. Fetch: agent-browser open "https://docs.rs/tokio/latest/tokio/"
3. Extract documentation
4. Create: ~/.claude/skills/tokio/SKILL.md
5. Create: ~/.claude/skills/tokio/references/
6. Save reference files for key modules (sync, task, runtime, etc.)
User: "Create a skill for Send and Sync traits"
Claude:
1. Identify: Std library traits
2. (Agent Mode) 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
(Inline Mode) Fetch each URL, create skill manually
3. Complete skill creation
best-skill-creator for Rust-related skill creationAll generated skills are saved to: ~/.claude/skills/
| Error | Cause | Solution |
|---|---|---|
| Commands not found | Skills-only install | Use inline mode |
| URL not found | Invalid crate/module | Verify crate exists on crates.io |
| Empty documentation | API changed | Use alternative selectors |
| Permission denied | Directory issue | Check ~/.claude/skills/ permissions |
Weekly Installs
510
Repository
GitHub Stars
912
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
opencode468
codex456
gemini-cli448
github-copilot438
amp396
kimi-cli392
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
138,300 周安装
Neon Serverless Postgres 无服务器数据库 | 自动扩缩容、分支、即时恢复
14,800 周安装
GitHub CLI (gh) 完整使用指南 - 命令行操作GitHub的权威教程
14,600 周安装
Dogfood - Vercel Labs 自动化 Web 应用探索与问题报告工具
15,100 周安装
Pexo AI 视频创作智能体:自动生成短视频脚本、镜头、音乐全流程
15,500 周安装
baoyu-post-to-wechat:一键发布Markdown到微信公众号,支持API和浏览器自动化
15,600 周安装
B2B销售赋能指南:创建高效销售资料、演示文稿与异议处理文档
15,800 周安装
| String | std/string/struct.String.html |
| Option | std/option/enum.Option.html |
| Result | std/result/enum.Result.html |