mcpField
R
rustdoc-library-documentation

rustdoc-library-documentation

github.com/lvtd-llcDevelopment142 installsUpdated 7w ago
Repository

About rustdoc-library-documentation

rustdoc-library-documentation is a skill for Rust library maintainers creating executable, navigable documentation. It emphasizes consumer workflows, public API coverage, and doctests.

Key features

  1. 01Organize docs around consumer tasks
  2. 02Write crate and module descriptions
  3. 03Document public APIs and invariants
  4. 04Add compiling examples and doctests
  5. 05Run documentation tests before publishing

Use cases

  1. 01Add crate docs to a Rust library
  2. 02Document functions, types, and errors
  3. 03Write doctests for core APIs
  4. 04Check docs and examples before release

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lvtd-llc/skills --skill rustdoc-library-documentation

After installing, type/rustdoc-library-documentationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

guidelines.md
agents/
openai.yaml
references/
rustdoc-patterns.md
workflows/
document-library.md

Details

From the project README

Rustdoc Library Documentation

Use this skill to make Rust library documentation executable, navigable, and useful to downstream crate consumers.

Core Workflow

  1. Start from the consumer's first task, not from internal module order.
  2. Add crate-level and module-level docs that explain purpose and boundaries.
  3. Document public types, functions, errors, features, and invariants.
  4. Prefer short compiling examples and doctests for core APIs.
  5. Put longer scenarios in examples/ and reference them from docs.
  6. Run docs and doctests before publishing.

Read Next

TaskLoad
Document a public crate APIguidelines.md, workflows/document-library.md
Add doctests or examplesreferences/rustdoc-patterns.md
Prepare docs for publishingreferences/rustdoc-patterns.md

Source Notes

Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapter 4 on documenting a library and Chapter 15 on sharing crates. Examples are original skeletons.

Comments

Markdown supported