From rust-agents
Write, structure, and maintain high-quality technical documentation using mdBook. Use when creating or editing mdBook projects, writing Rust/software project documentation, structuring SUMMARY.md, drafting chapters, API references, tutorials, architecture docs, or any mdBook-related content. Triggers on "mdbook", "documentation", "write docs", "technical writing", "book.toml", "SUMMARY.md", "chapter", "tutorial", "API reference", "architecture doc", "user guide", or "developer guide".
npx claudepluginhub bug-ops/claude-plugins --plugin rust-agentsThis skill uses the workspace's default tool permissions.
Write professional technical documentation for software projects using mdBook.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Write professional technical documentation for software projects using mdBook. This skill covers the full lifecycle: planning, structuring, writing, reviewing, and maintaining docs.
references/mdbook-structure.md for mdBook conventions, book.toml config, and SUMMARY.md patterns.references/writing-style.md for technical writing rules and Rust ecosystem conventions.templates/ as starting points for different chapter types.Assess the project before writing:
///), existing markdown files.Output: a docs-plan.md with audience matrix and chapter list.
Create the mdBook project structure:
docs/
├── book.toml
├── src/
│ ├── SUMMARY.md
│ ├── introduction.md
│ ├── getting-started/
│ │ ├── installation.md
│ │ ├── quick-start.md
│ │ └── configuration.md
│ ├── guides/
│ │ ├── basic-usage.md
│ │ └── advanced-usage.md
│ ├── architecture/
│ │ ├── overview.md
│ │ ├── design-decisions.md
│ │ └── internals.md
│ ├── api-reference/
│ │ └── (module-per-file)
│ ├── operations/
│ │ ├── deployment.md
│ │ ├── monitoring.md
│ │ └── troubleshooting.md
│ ├── contributing.md
│ └── changelog.md
└── theme/ (optional customizations)
Rules for SUMMARY.md:
# Part Title- prefix for all entries, not *Rules for book.toml:
[book] title, authors, description, language[output.html.search] for searchability[output.html] git-repository-url for "edit this page" links[build] build-dir if CI/CD needs itFor each chapter, follow this process:
templates/ matching the chapter type.```rust, ```toml, etc.)# prefix for hidden lines in Rust examples (mdBook convention)mdbook test)[text](../path/file.md#anchor).After writing, perform these checks:
mdbook build and fix all warnings.mdbook test to verify Rust code examples compile.| Type | Template | When to use |
|---|---|---|
| Getting Started | templates/getting-started.md | Installation, first steps, quick wins |
| Concept/Guide | templates/guide.md | Explaining how/why something works |
| Tutorial | templates/tutorial.md | Step-by-step hands-on walkthrough |
| API Reference | templates/api-reference.md | Per-module or per-type documentation |
| Architecture | templates/architecture.md | System design, internals, decisions |
| Operations | templates/operations.md | Deployment, config, monitoring, troubleshooting |
| Changelog | templates/changelog.md | Version history following Keep a Changelog |
Full details in references/writing-style.md. Key rules:
{{#include}} — include code from actual source files to keep examples in sync{{#rustdoc_include}} — include Rust code with line range from source# in Rust blocks to hide boilerplate{{#playground}} — embed Rust Playground links for interactive examplesmdbook-mermaid for diagrams, mdbook-toc for auto TOC, mdbook-admonish for calloutsBefore marking a chapter complete:
For large documentation projects: