agentsclimarketplace

Rustdoc maintenance

Skill genaptic/skillsets/packs/rust/best-practices/skills/rustdoc-maintenance

Refresh public Rust API documentation, crate and module narratives, intra-doc links, examples, required safety sections, and doctests against the current implementation. Use when one or more Rust crates need coordinated rustdoc review or repair. Do not use for repository Markdown-only reconciliation, private implementation comments, or a feature implementation disguised as docs.From its SKILL.md

Install
npx -y skills add genaptic/skillsets --skill rustdoc-maintenance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 27 days oldThe repository was created 27 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 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.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.7 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

Outcome

Deliver accurate, navigable public API documentation whose examples exercise the supported API, whose safety and failure contracts match the code, and whose verification evidence is reported without suppressing warnings or fabricating unavailable runs.

Compatibility

Portable across Claude Code, Codex, and OpenCode. Use the target repository's Rust toolchain, MSRV, edition, enabled targets, features, and rustdoc lint policy; Edition 2024 examples require Rust 1.85 or newer. Network access is optional for checking current rustdoc guidance. If unavailable, rely on the installed toolchain and report the freshness limitation. Native-client compatibility remains unverified until a dated report records the client version and exact source commit.

Use this skill when

  • Public //! crate/module documentation, /// item documentation, intra-doc links, or examples drift after an API or behavior change.
  • A library needs a coordinated public-surface audit across one or more crates.
  • Doctests, rustdoc lints, feature-gated docs, or # Errors, # Panics, or # Safety contracts need focused review.
  • A no-op rustdoc audit must prove the public documentation still matches current code.

Do not use this skill when

  • The deliverable is README, architecture, contributor, operations, or agent-facing Markdown; use rust-workspace-documentation.
  • The task is a private implementation comment or a narrow prose correction with no public contract implications.
  • The requested behavior does not exist yet. Implement and test the behavior before documenting it.
  • The task is general Rust implementation or test strategy rather than public API documentation.

Inputs

Inspect repository instructions, manifests and toolchain declarations, public and re-exported API surfaces, feature and platform gates, current rustdoc, relevant tests, examples, and the repository's documented validation commands. Determine intended audience and semver-sensitive behavior from local evidence. Record unavailable features, targets, services, credentials, or network access.

Safety

Start read-only and preserve unrelated source edits. Rustdoc examples are executable code: do not include secrets, destructive operations, live network calls, uncontrolled filesystem writes, hidden dependency installation, or process-global environment mutation. Prefer temporary resources and offline examples. Never stage, commit, push, publish, alter remote state, or loosen lints merely to make documentation pass.

Procedure

  1. Read repository instructions and identify the exact public surface and audience in scope.
  2. Inventory crate/module narratives, exported items, re-exports, features, platform gates, examples, intra-doc links, and required contract sections before editing.
  3. Trace each claim to signatures, implementations, invariants, tests, and error types. Flag behavior that is ambiguous or undocumented in code rather than guessing.
  4. Preview the documentation plan: summaries, detailed semantics, examples, links, safety/failure sections, and validation commands.
  5. Update crate and module framing first, then public items and examples. Keep the first sentence concise and user-oriented; avoid restating type signatures.
  6. Make examples runnable by default. Use hidden setup lines for clarity, no_run only for genuine compile-only/environment boundaries, and ignore only with a documented reason.
  7. Run repository-authoritative rustdoc, doctest, lint, and formatting checks for relevant features and targets; never assume a universal all-features command is valid.
  8. Inspect rendered or generated documentation when feasible and review the final diff for stale names, broken links, misleading feature claims, and unrelated code changes.

Read Guide for the detailed audit and Documentation contracts for section and example rules.

Verification

  • Confirm every public claim against current signatures, behavior, errors, invariants, and features.
  • Run the repository-selected documentation and doctest commands. Consider cargo doc --no-deps and cargo test --doc only when they match the package, workspace, feature, and lockfile policy.
  • Treat build success, doctest success, rustdoc lint success, link review, and rendered review as separate evidence.
  • Report exact commands and outcomes. Mark platform, feature, live-service, and native-client checks as unavailable or skipped when they did not run.

Output contract

Return the audited API surface, documentation changes, behavior-to-claim evidence, example strategy, exact validation results, rendered-review status, unresolved API ambiguity, and any freshness or environment limitations. For a no-op result, list the inspected surface and supporting checks.

Resources

  • Guide — public-surface inventory and ordered refresh workflow
  • Checklist — rustdoc review and evidence gates
  • Sources — primary rustdoc, Cargo, and Rust references
  • Documentation contracts — item sections and example rules
  • Examples — good, risky, feature-gated, and boundary patterns

What ships with it: 7 files

18.5 KB alongside SKILL.md

agents/

evals/

Keep looking

Skills are one crate of 326,546. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.