Rust docs
Rust documentation workflow for README, crate-level docs, rustdoc, doctests, examples, CLI help, API contracts, architecture notes, and keeping docs synchronized with greenfield behavior.From its SKILL.md
npx -y skills add nyquistwilder/personal-pi --skill rust-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 309 tokens by cl100k_base, as published. Nobody here has run it
Rust Docs
Rule
Document behavior that users and maintainers need. Prefer rustdoc examples and doctests for public API usage.
Hard Stops
Ask before:
- Documenting unsupported behavior or changing public contracts only to match docs.
- Adding docs sites, mdBook, OpenAPI generation, badges, diagrams-as-code, or hosting.
- Publishing docs externally or changing versioned docs.
Defaults
- Use README for project usage, install/run commands, development workflow, and operational notes.
- Use
//!crate docs for crate-level guidance. - Add doc comments for public items in libraries.
- Use examples and doctests for public API flows.
- Keep CLI help generated from Clap where possible.
- Keep HTTP API docs tied to typed schemas/OpenAPI only when OpenAPI is part of the contract.
Workflow
- Inspect code, tests, README, rustdoc, examples, CLI help, and API docs.
- Update docs near the behavior changed.
- Add runnable examples or doctests when snippets are public contracts.
- Run
cargo test --doc, relevant tests,cargo doc --no-deps, andjust check.
Antipatterns
- README snippets that cannot compile or run.
- Public library items without comments.
- Duplicating API contracts in several unsynchronized docs.
- Documenting implementation details as stable guarantees.
Completion
Report docs changed, examples/doctests run, behavior verified, and remaining gaps.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.