/oss-skills:docs-architecturefrom oss-skills
Structures project documentation using the Diataxis framework (tutorial/how-to/reference/explanation). Helps choose a docs site generator, plan information architecture, version docs, generate API references, and write migration guides.
Ships in oss-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most bad documentation is not badly written — it is badly sorted. A tutorial with reference material interleaved fails at both jobs. Fix the structure first; the prose problem usually dissolves.
Every documentation page serves exactly one of four purposes. Mixing them is the root cause of most docs complaints.
| Learning (study) | Working (doing) | |
|---|---|---|
| Practical steps | Tutorial — a guided first success | How-to — a recipe for a specific goal |
| Theoretical knowledge | Explanation — why it works this way | Reference — exhaustive, dry, accurate |
How to <verb> <object> so search finds it.Diagnostic: pick any page and name its quadrant. If you cannot, that page is the problem. Common failure — a "Getting Started" page that is 30% tutorial, 50% reference and 20% explanation, so a beginner drowns and an expert cannot find the flag list.
Minimum viable docs, in order of when to add them:
readme-that-converts)The highest-leverage docs process there is: every question answered more than once becomes a how-to page.
gh issue list --state all --limit 200 --json title,labels,comments \
--jq '.[] | select(.labels[]?.name == "question") | .title'
Cluster the results. Each cluster of three or more is a missing page. Then close future duplicates with a link — and if you find yourself linking the same page while also explaining it, the page is not doing its job yet.
| Tool | Best for | Cost |
|---|---|---|
| MkDocs + Material | Python projects, fast start, excellent defaults | Python toolchain |
| Docusaurus | JS/TS ecosystems, versioned docs, i18n, React embeds | Node build, heavier |
| VitePress | Lightweight, fast builds, Vue-adjacent | Fewer batteries |
| mdBook | Rust projects, books, minimal deps | Limited plugins |
| Sphinx | Scientific Python, deep autodoc, cross-refs | Steepest learning curve |
Just docs/*.md | Under ~10 pages | No search, no versioning |
Do not build a docs site before you have ~10 pages. Markdown in docs/ renders fine
on GitHub and costs nothing to maintain. The site is a response to scale, not a
prerequisite for it.
Whatever you pick: deploy on merge to main, from CI, to GitHub Pages or similar. Docs that require a human to publish are docs that go stale.
Hand-written API reference drifts within weeks. Generate from the source of truth:
typedoc --out docs/api src/index.ts # TypeScript
sphinx-apidoc -o docs/api src/ # Python (or mkdocstrings)
cargo doc --no-deps # Rust
godoc / pkg.go.dev # Go (automatic)
Then fail CI when public symbols lack docstrings. That single gate does more for reference quality than any style guide.
Documentation is code that runs in your users' terminals. Broken examples destroy trust faster than missing examples.
pytest --doctest-modules # Python doctests
cargo test --doc # Rust doc tests
mdbook test # mdBook code blocks
npx markdown-link-check docs/**/*.md # dead links
lychee --no-progress . # faster link checker, handles anchors
For untestable-by-default markdown, extract code fences in CI and execute them against
a fresh install. If a snippet cannot be run automatically, mark it text rather than
a language, so nobody thinks it was verified.
Once users are on more than one major version, docs must be versioned — a v3 doc page answering a v2 user's search is an active harm.
/v2/.rel=canonical to the current version so search engines stop surfacing the
old page above the new one. This is the single most common docs-SEO failure.For every breaking change, a migration guide. This is the difference between users upgrading and users staying on an old version forever (and then filing bugs about it).
Structure that works:
sed line, or --fix flag where possibleShip the guide with the release, not after. See release-engineering.
x", not "the user should run x."simply, just, obviously, easily. When a reader is stuck, these words
tell them the problem is their intelligence.docs/ in-repo.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/api-designDesign public interfaces for libraries and tools that other people depend on. Use when designing or reviewing a public API surface, deciding what to export, naming functions and CLI flags, adding configuration options, planning deprecations, or when the user asks "is this a good API" or "how do I change this without breaking users". Covers minimal surface area, error design, async and extension patterns, CLI ergonomics, config precedence, and stability guarantees. Also use before a 1.0 release to freeze the interface./ci-pipelinesDesign continuous integration for an open-source repository. Use when setting up GitHub Actions from scratch, when CI is slow or flaky, when adding a build matrix across OS and language versions, when configuring caching, or when handling PRs from forks that need secrets. Covers workflow structure, concurrency and cancellation, caching strategy, required checks and branch protection, self-hosted runner risks, and keeping CI cheap. Also use for "our CI takes 40 minutes" or "why is CI failing on forks"./code-reviewReview a pull request the way a good open-source maintainer does. Use when reviewing an incoming PR, when the user asks "review this PR" or "is this ready to merge", when triaging a stale PR queue, or when writing review feedback to an external contributor. Covers what to check and in what order, severity levels, phrasing feedback so people come back, handling large or unwanted PRs, first-time contributors, AI-generated submissions, and closing PRs kindly. Complements the built-in /code-review command by adding the maintainer and community dimension.npx claudepluginhub the-open-agent/oss-skills --plugin oss-skills