重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
rust-skill-creator by actionbook/rust-skills
npx skills add https://github.com/actionbook/rust-skills --skill rust-skill-creator版本: 2.1.0 | 最后更新: 2025-01-27
为 Rust crate 和标准库文档创建动态技能。
此技能处理为以下内容创建技能的请求:
关键:检查相关命令/技能是否可用。
此技能依赖于:
/create-llms-for-skills 命令/create-skills-via-llms 命令当上述命令可用时(完整插件安装):
| 用户请求 | 目标类型 | URL 模式 |
|---|---|---|
| "create tokio skill" |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 第三方 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 创建 Rust 相关技能所有生成的技能都保存到:~/.claude/skills/
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 命令未找到 | 仅技能安装 | 使用内联模式 |
| URL 未找到 | 无效的 crate/模块 | 在 crates.io 上验证 crate 是否存在 |
| 空文档 | API 已更改 | 使用替代选择器 |
| 权限被拒绝 | 目录问题 | 检查 ~/.claude/skills/ 权限 |
每周安装次数
38
仓库
GitHub 星标数
842
首次出现
Jan 23, 2026
安全审计
安装于
opencode34
gemini-cli34
codex33
claude-code30
github-copilot30
cursor30
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
38
Repository
GitHub Stars
842
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode34
gemini-cli34
codex33
claude-code30
github-copilot30
cursor30
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
48,700 周安装
| String | std/string/struct.String.html |
| Option | std/option/enum.Option.html |
| Result | std/result/enum.Result.html |