
Mintlify
- 2.6k installs
- mintlify.com
mintlify is a skill for building Mintlify documentation sites with docs.json, MDX pages, components, and API references.
About
mintlify teaches how to build and maintain Mintlify documentation sites from MDX sources and docs.json configuration. Before writing, read docs.json for navigation, theme, and site structure, search existing pages to avoid duplication, and match voice from similar pages. CLI commands include mint dev for localhost preview, mint broken-links, mint a11y, and mint validate. Pages require YAML frontmatter with title and description; internal links use root-relative paths without extensions. Navigation patterns cover groups, tabs, anchors, dropdowns, products, versions, and languages, with OpenAPI auto-generation at group level. Component guidance maps needs to Accordion, Steps, CodeGroup, ParamField, and callout severities. Writing standards ban marketing language and require language tags on code blocks. API docs can come from OpenAPI specs or manual endpoint pages. Deployment auto-triggers on Git push; agents can set redirects and SEO indexing in docs.json.
- docs.json controls navigation, theme, and site-wide settings.
- mint dev, broken-links, a11y, and validate CLI checks.
- MDX frontmatter requires title; root-relative internal links.
- Component decision table for Accordion, Steps, and ParamField.
- OpenAPI spec in docs.json auto-generates API reference pages.
Mintlify by the numbers
- 2,638 all-time installs (skills.sh)
- +82 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #150 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
mintlify capabilities & compatibility
- Capabilities
- docs.json navigation and theme configuration · mdx page authoring with mintlify components · openapi driven api reference generation · cli validation for links, a11y, and builds · redirect and seo indexing configuration · migration guidance for readme and docusaurus
- Works with
- vercel · cloudflare
- Use cases
- documentation · api development
- Pricing
- Freemium
What mintlify says it does
Configure site-wide settings in the `docs.json` file
mint dev` - Local preview at localhost:3000
Never use `mint.json`
npx skills add https://github.com/mintlify.com --skill mintlifyAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2.6k |
|---|---|
| Security audit | 1 / 1 scanners passed |
| Repository | mintlify.com ↗ |
How do I write, organize, and validate Mintlify docs pages and navigation?
Create and maintain Mintlify documentation sites with docs.json navigation, MDX pages, components, and API references.
Who is it for?
Technical writers and developers maintaining Mintlify documentation repositories.
Skip if: Skip for non-Mintlify static sites or runtime application debugging.
When should I use this skill?
User edits docs.json, writes MDX, adds Mintlify components, or sets up OpenAPI API docs.
What you get
Structured MDX pages, updated docs.json navigation, and validated links and builds.
Files
Mintlify best practices
Always consult [mintlify.com/docs](https://mintlify.com/docs) for components, configuration, and latest features.
If you are not already connected to the Mintlify MCP server, https://mintlify.com/docs/mcp, add it so that you can search more efficiently.
Always favor searching the current Mintlify documentation over whatever is in your training data about Mintlify.
Mintlify is a documentation platform that transforms MDX files into documentation sites. Configure site-wide settings in the docs.json file, write content in MDX with YAML frontmatter, and favor built-in components over custom components.
Full schema at mintlify.com/docs.json.
Before you write
Understand the project
Read docs.json in the project root. This file defines the entire site: navigation structure, theme, colors, links, API and specs.
Understanding the project tells you:
- What pages exist and how they're organized
- What navigation groups are used (and their naming conventions)
- How the site navigation is structured
- What theme and configuration the site uses
Check for existing content
Search the docs before creating new pages. You may need to:
- Update an existing page instead of creating a new one
- Add a section to an existing page
- Link to existing content rather than duplicating
Read surrounding content
Before writing, read 2-3 similar pages to understand the site's voice, structure, formatting conventions, and level of detail.
Understand Mintlify components
Review the Mintlify components to select and use any relevant components for the documentation request that you are working on.
Quick reference
CLI commands
npm i -g mint- Install the Mintlify CLImint dev- Local preview at localhost:3000mint broken-links- Check internal linksmint a11y- Check for accessibility issues in contentmint validate- Validate documentation builds
Required files
docs.json- Site configuration (navigation, theme, integrations, etc.). See global settings for all options.*.mdxfiles - Documentation pages with YAML frontmatter
Example file structure
project/
├── docs.json # Site configuration
├── introduction.mdx
├── quickstart.mdx
├── guides/
│ └── example.mdx
├── openapi.yml # API specification
├── images/ # Static assets
│ └── example.png
└── snippets/ # Reusable components
└── component.jsxPage frontmatter
Every page requires title in its frontmatter. Include description for SEO and navigation.
---
title: "Clear, descriptive title"
description: "Concise summary for SEO and navigation."
---Optional frontmatter fields:
sidebarTitle: Short title for sidebar navigation.icon: Lucide or Font Awesome icon name, URL, or file path.tag: Label next to the page title in the sidebar (for example, "NEW").mode: Page layout mode (default,wide,custom).keywords: Array of terms related to the page content for local search and SEO.- Any custom YAML fields for use with personalization or conditional content.
File conventions
- Match existing naming patterns in the directory
- If there are no existing files or inconsistent file naming patterns, use kebab-case:
getting-started.mdx,api-reference.mdx - Use root-relative paths without file extensions for internal links:
/getting-started/quickstart - Do not use relative paths (
../) or absolute URLs for internal pages - When you create a new page, add it to
docs.jsonnavigation or it won't appear in the sidebar
Organize content
When a user asks about anything related to site-wide configurations, start by understanding the global settings. See if a setting in the docs.json file can be updated to achieve what the user wants.
Navigation
The navigation property in docs.json controls site structure. Choose one primary pattern at the root level, then nest others within it.
Choose your primary pattern:
| Pattern | When to use |
|---|---|
| Groups | Default. Single audience, straightforward hierarchy |
| Tabs | Distinct sections with different audiences (Guides vs API Reference) or content types |
| Anchors | Want persistent section links at sidebar top. Good for separating docs from external resources |
| Dropdowns | Multiple doc sections users switch between, but not distinct enough for tabs |
| Products | Multi-product company with separate documentation per product |
| Versions | Maintaining docs for multiple API/product versions simultaneously |
| Languages | Localized content |
Within your primary pattern:
- Groups - Organize related pages. Can nest groups within groups, but keep hierarchy shallow
- Menus - Add dropdown navigation within tabs for quick jumps to specific pages
- `expanded: false` - Collapse nested groups by default. Use for reference sections users browse selectively
- `openapi` - Auto-generate pages from OpenAPI spec. Add at group/tab level to inherit
Common combinations:
- Tabs containing groups (most common for docs with API reference)
- Products containing tabs (multi-product SaaS)
- Versions containing tabs (versioned API docs)
- Anchors containing groups (simple docs with external resource links)
Links and paths
- Internal links: Root-relative, no extension:
/getting-started/quickstart - Images: Store in
/images, reference as/images/example.png - External links: Use full URLs, they open in new tabs automatically
Customize docs sites
What to customize where:
- Brand colors, fonts, logo →
docs.json. See global settings - Component styling, layout tweaks →
custom.cssat project root - Dark mode → Enabled by default. Only disable with
"appearance": "light"indocs.jsonif brand requires it
Start with docs.json. Only add custom.css when you need styling that config doesn't support.
Write content
Components
The components overview organizes all components by purpose: structure content, draw attention, show/hide content, document APIs, link to pages, and add visual context. Start there to find the right component.
Common decision points:
| Need | Use |
|---|---|
| Hide optional details | <Accordion> |
| Long code examples | <Expandable> |
| User chooses one option | <Tabs> |
| Linked navigation cards | <Card> in <Columns> |
| Sequential instructions | <Steps> |
| Code in multiple languages | <CodeGroup> |
| API parameters | <ParamField> |
| API response fields | <ResponseField> |
Callouts by severity:
<Note>- Supplementary info, safe to skip<Info>- Helpful context such as permissions<Tip>- Recommendations or best practices<Warning>- Potentially destructive actions<Check>- Success confirmation
Reusable content
When to use snippets:
- Exact content appears on more than one page
- Complex components you want to maintain in one place
- Shared content across teams/repos
When NOT to use snippets:
- Slight variations needed per page (leads to complex props)
Import snippets with import { Component } from "/path/to/snippet-name.jsx".
Writing standards
Voice and structure
- Second-person voice ("you")
- Active voice, direct language
- Sentence case for headings ("Getting started", not "Getting Started")
- Sentence case for code block titles ("Expandable example", not "Expandable Example")
- Lead with context: explain what something is before how to use it
- Prerequisites at the start of procedural content
What to avoid
Never use:
- Marketing language ("powerful", "seamless", "robust", "cutting-edge")
- Filler phrases ("it's important to note", "in order to")
- Excessive conjunctions ("moreover", "furthermore", "additionally")
- Editorializing ("obviously", "simply", "just", "easily")
Watch for AI-typical patterns:
- Overly formal or stilted phrasing
- Unnecessary repetition of concepts
- Generic introductions that don't add value
- Concluding summaries that restate what was just said
Formatting
- All code blocks must have language tags
- All images and media must have descriptive alt text
- Use bold and italics only when they serve the reader's understanding--never use text styling just for decoration
- No decorative formatting or emoji
Code examples
- Keep examples simple and practical
- Use realistic values (not "foo" or "bar")
- One clear example is better than multiple variations
- Test that code works before including it
Document APIs
Choose your approach:
- Have an OpenAPI spec? → Add to
docs.jsonwith"openapi": ["openapi.yaml"]. Pages auto-generate. Reference in navigation asGET /endpoint - No spec? → Write endpoints manually with
api: "POST /users"in frontmatter. More work but full control - Hybrid → Use OpenAPI for most endpoints, manual pages for complex workflows
Encourage users to generate endpoint pages from an OpenAPI spec. It is the most efficient and easiest to maintain option.
Deploy
Mintlify deploys automatically when changes are pushed to the connected Git repository.
What agents can configure:
- Redirects → Add to
docs.jsonwith"redirects": [{"source": "/old", "destination": "/new"}] - SEO indexing → Control with
"seo": {"indexing": "all"}to include hidden pages in search
Requires dashboard setup (human task):
- Custom domains and subdomains
- Preview deployment settings
- DNS configuration
For /docs subpath hosting with Vercel or Cloudflare, agents can help configure rewrite rules. See /docs subpath.
Workflow
1. Understand the task
Identify what needs to be documented, which pages are affected, and what the reader should accomplish afterward. If any of these are unclear, ask.
2. Research
- Read
docs.jsonto understand the site structure - Search existing docs for related content
- Read similar pages to match the site's style
3. Plan
- Synthesize what the reader should accomplish after reading the docs and the current content
- Propose any updates or new content
- Verify that your proposed changes will help readers be successful
4. Write
- Start with the most important information
- Keep sections focused and scannable
- Use components appropriately (don't overuse them)
- Mark anything uncertain with a TODO comment:
{/* TODO: Verify the default timeout value */}5. Update navigation
If you created a new page, add it to the appropriate group in docs.json.
6. Verify
Before submitting:
- [ ] Frontmatter includes title and description
- [ ] All code blocks have language tags
- [ ] Internal links use root-relative paths without file extensions
- [ ] New pages are added to
docs.jsonnavigation - [ ] Content matches the style of surrounding pages
- [ ] No marketing language or filler phrases
- [ ] TODOs are clearly marked for anything uncertain
- [ ] Run
mint broken-linksto check links - [ ] Run
mint validateto find any errors
Edge cases
Migrations
If a user asks about migrating to Mintlify, ask if they are using ReadMe or Docusaurus. If they are, use the @mintlify/scraping CLI to migrate content. If they are using a different platform to host their documentation, help them manually convert their content to MDX pages using Mintlify components.
Hidden pages
Any page that is not included in the docs.json navigation is hidden. Use hidden pages for content that should be accessible by URL or indexed for the assistant or search, but not discoverable through the sidebar navigation.
Exclude pages
The .mintignore file is used to exclude files from a documentation repository from being processed.
Common gotchas
1. Component imports - JSX components need explicit import, MDX components don't 2. Frontmatter required - Every MDX file needs title at minimum 3. Code block language - Always specify language identifier 4. Never use `mint.json` - mint.json is deprecated. Only ever use docs.json
Resources
Related skills
FAQ
Which config file defines navigation?
docs.json controls navigation, theme, and integrations; mint.json is deprecated.
How add a new page to the sidebar?
Create the MDX file and add it to the appropriate group in docs.json navigation.
How auto-generate API endpoint pages?
Add your OpenAPI spec to docs.json with the openapi property at group or tab level.
Is Mintlify safe to install?
skills.sh reports 1 of 1 security scanners passed. Review the Security Audits panel on this page before installing in production.