From mintlify-docs
This skill should be used when the user asks to "document the CLI", "document the MCP tools", "document the API", "generate a reference page", "write API reference", "add a CLI reference", or wants drift-checked reference docs for a Mintlify site. Sets up generated-from-source reference pages (CLI / MCP / API) plus the drift CI that keeps them honest.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mintlify-docs:document-reference cli | mcp | apicli | mcp | apiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up **generated, drift-checked** reference pages for a Mintlify site. The
Set up generated, drift-checked reference pages for a Mintlify site. The governing principle (best-practices sections 2 and 4): reference pages are never hand-edited. A generator reads the source of truth (the CLI's help, the live MCP instance, the OpenAPI spec) and emits MDX; CI regenerates and fails on drift, so the reference cannot go stale.
For <ParamField>, <Tabs>, and other component syntax, defer to the official
mintlify plugin. The patterns this skill enforces are in
references/reference-patterns.md.
$ARGUMENTS is one of cli, mcp, api.
reference/cli.mdx (and per-domain reference/cli/*.mdx)
from the CLI's own help/introspection. Template:
scripts/gen_cli_reference.py.reference/mcp-tools.mdx (and per-domain
reference/mcp-tools/*.mdx) by introspecting the live MCP server. Template:
scripts/gen_mcp_reference.py.mintlify plugin for the
docs.json openapi wiring; this skill only adds the house framing (overview
landing page, the "From Claude" nudge, description/icon).console_scripts in pyproject.toml, a
bin in package.json, or the main/argparse/click/typer module).openapi.json/openapi.yaml) or the generator
that emits it.Copy the matching template from scripts/ into the product repo's
scripts/ directory and adapt the marked ADAPT points (import paths, output
path, header text). The generator must:
{/* GENERATED by scripts/<name> — do not edit by hand. */} banner.<ParamField> or parameter tables per
references/reference-patterns.md.Add a docs-reference make target that runs the generators, and a CI job ("Docs
Reference Freshness") that regenerates and fails on drift. The CI snippet is in
references/reference-patterns.md.
Once a reference has more than a handful of commands/tools, split it into
per-domain pages with an overview landing (best-practices sections 3 and 10), and
add the group to docs.json Reference tab. Keep the generator emitting one file
per domain.
Run make docs-reference (or the generators directly), then mint broken-links.
Verify the committed output matches (no drift).
This skill produces generators and the reference MDX they emit, plus the drift CI
wiring. It does not write hand-authored guides or concepts pages (that is
review-docs) and does not touch the changelog (that is changelog-writer).
npx claudepluginhub pdugan20/pdugan20-plugins --plugin mintlify-docsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.