Mintlify reference
Reference for building documentation with Mintlify. This file covers essentials that apply to every task. For detailed reference on specific topics, read the files listed in the reference index below.
Reference index
Read these files only when your task requires them. They are in the reference/ directory next to this file. To find them, look in the same directory as this skill file (e.g., .claude/skills/mintlify/reference/).
| File |
When to read |
reference/components.md |
Adding or modifying components (callouts, cards, steps, tabs, accordions, code groups, fields, frames, icons, tooltips, badges, trees, mermaid, panels, prompts, colors, tiles, updates, views). |
reference/configuration.md |
Changing docs.json settings (theme, colors, logo, fonts, appearance, navbar, footer, banner, redirects, SEO, integrations, API config). Also covers snippets, hidden pages, .mintignore, custom CSS/JS, and the complete frontmatter fields table. |
reference/navigation.md |
Modifying site navigation structure (groups, tabs, anchors, dropdowns, products, versions, languages, OpenAPI in nav). |
reference/api-docs.md |
Setting up API documentation (OpenAPI, AsyncAPI, MDX manual API pages, extensions, playground config). |
Before you start
Read the project's docs.json file first. It defines the site's navigation, theme, colors, and configuration.
Search for existing content before creating new pages. You may need to update an existing page, add a section, or link to existing content rather than duplicating.
Read 2-3 similar pages to match the site's voice, structure, and formatting.
File format
Mintlify uses MDX files (.mdx or .md) with YAML frontmatter.
project/
├── docs.json # Site configuration (required)
├── index.mdx
├── quickstart.mdx
├── guides/
│ └── example.mdx
├── openapi.yml # API specification (optional)
├── images/ # Static assets
│ └── example.png
└── snippets/ # Reusable components
└── component.jsx
File naming
- Match existing patterns in the directory
- If no existing files or mixed file naming patterns, use kebab-case:
getting-started.mdx
- Add new pages to
docs.json navigation or they won't appear in the sidebar
Internal links
- Use root-relative paths without file extensions:
/getting-started/quickstart
- Do not use relative paths (
../) or absolute URLs for internal pages
Images
Store images in an images/ directory. Reference with root-relative paths. All images require descriptive alt text.

Page frontmatter
Every page requires title in its frontmatter. Include description and keywords for SEO.
---
title: "Clear, descriptive title"
description: "Concise summary for SEO and navigation."
keywords: ["relevant", "search", "terms"]
---
Common frontmatter fields
| Field |
Type |
Required |
Description |
title |
string |
Yes |
Page title in navigation and browser tabs. |
description |
string |
No |
Brief description for SEO. Displays under the title. |
sidebarTitle |
string |
No |
Short title for sidebar navigation. |
icon |
string |
No |
Lucide, Font Awesome, or Tabler icon name. Also accepts a URL or file path. |
tag |
string |
No |
Label next to page title in sidebar (e.g., "NEW"). |
hidden |
boolean |
No |
Remove from sidebar. Page still accessible by URL. |
mode |
string |
No |
Page layout: default, wide, custom, frame, center. |
keywords |
array |
No |
Search terms for internal search and SEO. |
api |
string |
No |
API endpoint for interactive playground (e.g., "POST /users"). |
openapi |
string |
No |
OpenAPI endpoint reference (e.g., "GET /endpoint"). |
Quick component reference
Below are the most commonly used components. For full props and all 24 components, read reference/components.md.
Callouts
<Note>Supplementary information, safe to skip.</Note>
<Info>Helpful context such as permissions or prerequisites.</Info>
<Tip>Recommendations or best practices.</Tip>
<Warning>Potentially destructive actions or important caveats.</Warning>
<Check>Success confirmation or completed status.</Check>
<Danger>Critical warnings about data loss or breaking changes.</Danger>
Steps
<Steps>
<Step title="First step">
Instructions for step one.
</Step>
<Step title="Second step">
Instructions for step two.
</Step>
</Steps>
Tabs and code groups
<Tabs>
<Tab title="npm">
```bash
npm install package-name
```
</Tab>
<Tab title="yarn">
```bash
yarn add package-name
```
</Tab>
</Tabs>
<CodeGroup>
```javascript example.js
const greeting = "Hello, world!";
greeting = "Hello, world!"
Cards and columns
<Columns cols={2}>
<Card title="First card" icon="rocket" href="/quickstart">
Card description text.
</Card>
<Card title="Second card" icon="book" href="/guides">
Card description text.
</Card>
</Columns>
Use <Columns> to arrange cards (or other content) in a grid. cols accepts 1-4.
Accordions
<AccordionGroup>
<Accordion title="First section">Content one.</Accordion>
<Accordion title="Second section">Content two.</Accordion>
</AccordionGroup>
CLI commands
npm i -g mint — Install the Mintlify CLI.
mint dev — Local preview at localhost:3000.
mint broken-links — Check internal links.
mint a11y — Check for accessibility issues.
mint validate — Validate documentation builds.
mint upgrade — Upgrade from mint.json to docs.json.
Writing standards
- Second-person voice ("you").
- Active voice, direct language.
- Sentence case for headings ("Getting started", not "Getting Started").
- Sentence case for code block titles.
- All code blocks must have language tags.
- All images must have descriptive alt text.
- No marketing language, filler phrases, or emoji.
- Keep code examples simple, practical, and tested.
Common mistakes
- Missing language tag on a code block (use
```python, not ```).
- Using relative paths (
../page) instead of root-relative (/section/page).
- Forgetting to add new pages to
docs.json navigation.
- Images without alt text.
- Adding file extensions to internal links (
/page.mdx instead of /page).
1---
2name: mintlify
3description: Comprehensive reference for building Mintlify documentation sites. Use when creating pages, configuring docs.json, adding components, setting up navigation, or working with API references. Routes to detailed reference files for all components and configuration options.
4license: MIT
5compatibility: Works with any Mintlify documentation project. Requires docs.json configuration file.
6metadata:
7 source: https://skillmd.com/skills/om-scogo/mintlify
8 author: Mintlify
9 url: https://mintlify.com
10 version: "0.2"
11---
12
13# Mintlify reference
14
15Reference for building documentation with Mintlify. This file covers essentials that apply to every task. For detailed reference on specific topics, read the files listed in the reference index below.
16
17## Reference index
18
19Read these files **only when your task requires them**. They are in the `reference/` directory next to this file. To find them, look in the same directory as this skill file (e.g., `.claude/skills/mintlify/reference/`).
20
21| File | When to read |
22|------|-------------|
23| `reference/components.md` | Adding or modifying components (callouts, cards, steps, tabs, accordions, code groups, fields, frames, icons, tooltips, badges, trees, mermaid, panels, prompts, colors, tiles, updates, views). |
24| `reference/configuration.md` | Changing docs.json settings (theme, colors, logo, fonts, appearance, navbar, footer, banner, redirects, SEO, integrations, API config). Also covers snippets, hidden pages, .mintignore, custom CSS/JS, and the complete frontmatter fields table. |
25| `reference/navigation.md` | Modifying site navigation structure (groups, tabs, anchors, dropdowns, products, versions, languages, OpenAPI in nav). |
26| `reference/api-docs.md` | Setting up API documentation (OpenAPI, AsyncAPI, MDX manual API pages, extensions, playground config). |
27
28## Before you start
29
30Read the project's `docs.json` file first. It defines the site's navigation, theme, colors, and configuration.
31
32Search for existing content before creating new pages. You may need to update an existing page, add a section, or link to existing content rather than duplicating.
33
34Read 2-3 similar pages to match the site's voice, structure, and formatting.
35
36## File format
37
38Mintlify uses MDX files (`.mdx` or `.md`) with YAML frontmatter.
39
40```
41project/
42├── docs.json # Site configuration (required)
43├── index.mdx
44├── quickstart.mdx
45├── guides/
46│ └── example.mdx
47├── openapi.yml # API specification (optional)
48├── images/ # Static assets
49│ └── example.png
50└── snippets/ # Reusable components
51 └── component.jsx
52```
53
54### File naming
55
56- Match existing patterns in the directory
57- If no existing files or mixed file naming patterns, use kebab-case: `getting-started.mdx`
58- Add new pages to `docs.json` navigation or they won't appear in the sidebar
59
60### Internal links
61
62- Use root-relative paths without file extensions: `/getting-started/quickstart`
63- Do not use relative paths (`../`) or absolute URLs for internal pages
64
65### Images
66
67Store images in an `images/` directory. Reference with root-relative paths. All images require descriptive alt text.
68
69```mdx
70
71```
72
73## Page frontmatter
74
75Every page requires `title` in its frontmatter. Include `description` and `keywords` for SEO.
76
77```yaml
78---
79title: "Clear, descriptive title"
80description: "Concise summary for SEO and navigation."
81keywords: ["relevant", "search", "terms"]
82---
83```
84
85### Common frontmatter fields
86
87| Field | Type | Required | Description |
88|-------|------|----------|-------------|
89| `title` | string | Yes | Page title in navigation and browser tabs. |
90| `description` | string | No | Brief description for SEO. Displays under the title. |
91| `sidebarTitle` | string | No | Short title for sidebar navigation. |
92| `icon` | string | No | Lucide, Font Awesome, or Tabler icon name. Also accepts a URL or file path. |
93| `tag` | string | No | Label next to page title in sidebar (e.g., "NEW"). |
94| `hidden` | boolean | No | Remove from sidebar. Page still accessible by URL. |
95| `mode` | string | No | Page layout: `default`, `wide`, `custom`, `frame`, `center`. |
96| `keywords` | array | No | Search terms for internal search and SEO. |
97| `api` | string | No | API endpoint for interactive playground (e.g., `"POST /users"`). |
98| `openapi` | string | No | OpenAPI endpoint reference (e.g., `"GET /endpoint"`). |
99
100## Quick component reference
101
102Below are the most commonly used components. For full props and all 24 components, read `reference/components.md`.
103
104### Callouts
105
106```mdx
107<Note>Supplementary information, safe to skip.</Note>
108<Info>Helpful context such as permissions or prerequisites.</Info>
109<Tip>Recommendations or best practices.</Tip>
110<Warning>Potentially destructive actions or important caveats.</Warning>
111<Check>Success confirmation or completed status.</Check>
112<Danger>Critical warnings about data loss or breaking changes.</Danger>
113```
114
115### Steps
116
117```mdx
118<Steps>
119 <Step title="First step">
120 Instructions for step one.
121 </Step>
122 <Step title="Second step">
123 Instructions for step two.
124 </Step>
125</Steps>
126```
127
128### Tabs and code groups
129
130```mdx
131<Tabs>
132 <Tab title="npm">
133 ```bash
134 npm install package-name
135 ```
136 </Tab>
137 <Tab title="yarn">
138 ```bash
139 yarn add package-name
140 ```
141 </Tab>
142</Tabs>
143```
144
145```mdx
146<CodeGroup>
147
148```javascript example.js
149const greeting = "Hello, world!";
150```
151
152```python example.py
153greeting = "Hello, world!"
154```
155
156</CodeGroup>
157```
158
159### Cards and columns
160
161```mdx
162<Columns cols={2}>
163 <Card title="First card" icon="rocket" href="/quickstart">
164 Card description text.
165 </Card>
166 <Card title="Second card" icon="book" href="/guides">
167 Card description text.
168 </Card>
169</Columns>
170```
171
172Use `<Columns>` to arrange cards (or other content) in a grid. `cols` accepts 1-4.
173
174### Accordions
175
176```mdx
177<AccordionGroup>
178 <Accordion title="First section">Content one.</Accordion>
179 <Accordion title="Second section">Content two.</Accordion>
180</AccordionGroup>
181```
182
183## CLI commands
184
185- `npm i -g mint` — Install the Mintlify CLI.
186- `mint dev` — Local preview at localhost:3000.
187- `mint broken-links` — Check internal links.
188- `mint a11y` — Check for accessibility issues.
189- `mint validate` — Validate documentation builds.
190- `mint upgrade` — Upgrade from `mint.json` to `docs.json`.
191
192## Writing standards
193
194- Second-person voice ("you").
195- Active voice, direct language.
196- Sentence case for headings ("Getting started", not "Getting Started").
197- Sentence case for code block titles.
198- All code blocks must have language tags.
199- All images must have descriptive alt text.
200- No marketing language, filler phrases, or emoji.
201- Keep code examples simple, practical, and tested.
202
203## Common mistakes
204
205- Missing language tag on a code block (use ` ```python `, not ` ``` `).
206- Using relative paths (`../page`) instead of root-relative (`/section/page`).
207- Forgetting to add new pages to `docs.json` navigation.
208- Images without alt text.
209- Adding file extensions to internal links (`/page.mdx` instead of `/page`).