- Home
- Skills
- Zhanghandong
- Rust Skills
- Rust Skill Creator
rust-skill-creator_skill
- Shell
565
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill zhanghandong/rust-skills --skill rust-skill-creator- SKILL.md3.8 KB
Overview
This skill creates dynamic AI assistant skills from Rust crate and standard library documentation. It automates extracting documentation content and preparing LLM-ready inputs so you can generate targeted skills for crates, modules, types, and traits. Use it to produce focused skills for libraries like tokio, serde, axum, or any rustdoc URL.
How this skill works
The skill identifies the documentation target from a short request or a full URL, builds the correct docs.rs or doc.rust-lang.org link, and runs a crawler to generate an llms.txt payload. After llms.txt is produced, it invokes a skill-generation step that converts the payload into a reusable skill saved to the local skills directory. Commands are provided for both the llm extraction step and the subsequent skill creation step.
When to use it
- You need a dynamic assistant for a third-party crate (tokio, serde, axum, etc.).
- You want a skill covering Rust standard library items (traits, structs, modules).
- You have a specific documentation URL to convert into a skill.
- You want repeatable, versioned skills tied to crate documentation.
- You need focused skills (e.g., routing, extractors, async primitives).
Best practices
- Provide exact crate names or full doc URLs to avoid guessing the correct doc page.
- Run the /create-llms-for-skills step first and verify llms.txt before creating skills.
- When targeting std items, use the documented path templates to construct URLs.
- Include short requirements or focus areas (e.g., "Focus on error handling") to shape the generated skill.
- Pin a crate version when reproducibility is required.
Example use cases
- Create a tokio skill that focuses on runtime, tasks, and synchronization primitives.
- Generate a serde skill that highlights serialization patterns and custom derives.
- Produce a std::sync skill covering Arc, Mutex, and RwLock with usage examples.
- Convert a user-provided docs.rs URL for sqlx into a query and connection management skill.
- Build a small skill for the Send and Sync traits to explain thread-safety rules.
FAQ
First run /create-llms-for-skills <url> [requirements] to generate llms.txt, then run /create-skills-via-llms <crate_name> <llms_path> [version] to produce the final skill.
How do I construct URLs for std items?
Use the doc.rust-lang.org templates, for example std/{module}/trait.{Name}.html or std/{module}/struct.{Name}.html; verify the URL before running extraction.