Imported from qkhalk/goclaw (
skills/mintlify/SKILL.md). Install upstream withnpx skills add qkhalk/goclaw --skill mintlify. Copyright stays with the author (MIT).
Mintlify
Build a hosted docs site where navigation, MDX components, and an API playground are configured in code — or say plainly when plain markdown would serve better.
When to use
- Product/user-facing documentation hosted as a polished site.
- An API reference with try-it-out playground is wanted.
- Migrating existing docs into (or auditing) a Mintlify project.
When NOT to use
- Docs that live in the repo for contributors (README, CONTRIBUTING) —
plain markdown; use
docsinstead. - Looking up a library's official documentation →
docs-seeker. - Visual design of the product itself →
ui-ux-pro-max.
Key structures
docs.jsonat the project root:$schema, sitename, theme settings,navigationwithtabs→anchors/groups→pages. The nav IS the information architecture; every page must be listed or it will not build.- Pages are MDX with frontmatter:
title,description(feeds SEO and previews), optionalicon,sidebarposition. - Components:
Card/CardGroupfor entry points,Stepsfor procedures,Tabsfor language variants,Accordionfor FAQs,Calloutfor warnings,CodeGroupfor multi-language snippets,ParamField/ResponseFieldfor API params. - API playground: point the
openapifield indocs.jsonat an OpenAPI spec (file path or URL); reference endpoints in pages to get runnable requests.
Workflow
- Assess fit: if the docs must be hosted, styled, searchable, and include an API playground, proceed; otherwise recommend plain markdown and stop.
- Design the navigation tree first (groups mirror user journeys, not the
org chart); write it into
docs.json. - Write pages as MDX: one task or concept per page, frontmatter complete, components used for structure rather than raw HTML.
- Wire the API reference: validate the OpenAPI spec, add the
openapifield, and create endpoint pages. - Preview locally with the project's Mintlify CLI and fix broken links and unlisted pages; broken MDX or missing nav entries fail the build.
- Deploy via the Git-connected host (push to the tracked branch) or export a static build; confirm the live nav matches step 2.
Output
A building Mintlify project: docs.json nav tree, MDX pages, configured
playground (if applicable), and a preview/deploy note.
Routing
- General writing quality and repo docs →
docs. - API endpoint details need verification →
docs-seeker. - Docs IA is part of a broader design effort →
design.
Guardrails
- Never hand-write the OpenAPI-derived pages when a spec exists; the spec is the source of truth.
- Keep custom MDX components minimal; exotic components break on framework upgrades.
- Validate every internal link and nav entry before declaring done — silent 404s are the default failure mode.