| name | mintlify | ||
|---|---|---|---|
| description | Set up, write, and publish documentation sites with Mintlify, and work on existing Mintlify projects. Use when the user wants to create a docs site for a repo or product, turn a docs/ folder or README into a hosted docs site, document an API from an OpenAPI spec, migrate docs from Docusaurus, GitBook, ReadMe, Fern, or another platform, preview docs locally, or publish docs to a shareable URL. Also use when editing a project with docs.json, including pages, navigation, components, API references, and customizing appearance or browser behavior with CSS, JavaScript, React, and snippets. | ||
| metadata |
|
Reference for working on Mintlify projects. This file covers essentials that apply to every task. For detailed reference on specific topics, read the files listed in the reference index below.
Read these only when your task requires them. Each links to a Mintlify documentation page or, for agent workflow guidance, the source file on GitHub.
| Reference | When to read |
|---|---|
| Components | Adding or modifying components (callouts, cards, steps, tabs, accordions, code groups, fields, frames, icons, tooltips, badges, trees, mermaid, MDX, panels, prompts, colors, tiles, updates, views). Also covers table column widths. |
| Global settings | 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. |
| Navigation | Modifying site navigation structure (groups, tabs, anchors, dropdowns, products, versions, languages, OpenAPI, and SDK references in nav). |
| API playground | Setting up API documentation (OpenAPI, AsyncAPI, MDX manual API pages, extensions, playground config). |
| CLI commands | Running common CLI commands (dev, validate, add-domain, analytics, score, broken-links, a11y, format, and config) and their key flags. |
| Product context | Before substantial content work (new site, broad restructure, first-time section setup) — check for and maintain .mintlify/product-brief.md. |
| Custom scripts | Customizing appearance or browser behavior with CSS, JavaScript, React snippets, selectors, or CSS variables. |
| Writing pages | Before creating a page or writing more than a sentence or two: the no-invention rule, page creation and editing steps, quality bar, audience, titles and descriptions, links. |
| Publishing and review | Publishing, branches and pull requests, "is this live" questions, undoing changes, and reviewing a page with suggestions and comments. |
| Project settings | Reading or changing dashboard settings (domains, git sources, auth, members, workflows, search, add-ons), settings no tool covers, and analytics questions. |
| Site building | Building or migrating a whole site, a section, or more than a handful of pages: research sizing, generation order, landing page, structure for common kinds of site, porting rules. |
If the user wants a new docs site, wants to publish docs, or has no docs.json yet, run this workflow yourself. Ask the user only for information or approvals you cannot supply. Do not send them to a browser-first quickstart when you can run terminal commands.
- Check
node --version(v20.17.0 or newer). Runmint --version; if missing, install withnpm i -g mint. If it's installed, runmint update. - Run
mint status. If it shows an organization, use the existing account. Otherwise, ask whether the user has a Mintlify account. If they do, runmint login. If not, ask for first name, last name, company, and email and runmint signup --firstName <first> --lastName <last> --company <company> --email <email>as a background process. It waits for email verification. Tell the user to click the verification link and finish onboarding in the browser. Never invent signup details. - After verification and onboarding, run
mint statusagain to confirm an organization and subdomain. If no subdomain appears, ask the user to finish selecting or connecting a GitHub repository in the onboarding browser tab, then retry. - Unless you're already working in it, ask the user for the URL of the connected repository (
mint statusdoesn't show it) and clone it. If the user connected their own docs repository, preserve its content, and add adocs.jsonif it has none. If Mintlify created the repository, it contains starter content; replace that with the user's existing Markdown docs instead of writing placeholder pages. Usemint new <directory> --name <name> --theme <theme>only if the user wants a different theme than the starter, and scaffold into a new, empty directory. Never use--forceon a directory with user files. - Run
mint dev --no-openas a background process from the directory containingdocs.json. Report the local URL so the user can preview. Runmint validateandmint broken-linksand fix issues you caused. - Commit and push to the connected repository to deploy.
- Verify that
https://<subdomain>.mintlify.siteloads before you report the URL.
The user only needs the browser for email verification, OAuth approval, and connecting GitHub.
When you have no local checkout and no CLI (for example, editing through the Mintlify Admin MCP server or inside the Mintlify editor), skip the mint, git and file-system steps in this skill:
- Read and change pages, navigation and
docs.jsonwith the Admin MCP tools on abranch. - Create pages with
create_node;write_pageonly replaces an existing page. - Preview with the
editorUrlthe tools return instead ofmint dev. Validation runs on every write, so fix any error a write returns instead of runningmint validate. - Publish with
publishinstead of pushing, and only when the user asks. - Keep the product brief from Product context in the conversation instead of writing
.mintlify/product-brief.md. - For a new site, follow Site building against the existing project.
For Docusaurus, GitBook, ReadMe, Fern, or Document360, follow the matching guide at https://mintlify.com/docs/migration/<platform> (for example docusaurus), using the Mintlify Search MCP server to read it. For any other platform, follow https://mintlify.com/docs/migration/manual. The scraper only handles simple public sites. Complex sites migrate from source files. Porting rules are in Site building.
Two Mintlify MCP servers are available. Use them alongside the reference files in this skill.
Read-only access to Mintlify's published documentation. Use it when the reference files don't cover a specific detail, when you need an up-to-date component signature, or to verify an unfamiliar config option.
Tools:
search_mintlify— Search the Mintlify knowledge base by query. Good for finding guides, examples, and API references.query_docs_filesystem_mintlify— Browse the docs file tree (ls,cat,grep,find, etc.). Good for reading a specific docs page.submit_feedback— Report a docs page that is incorrect, outdated, confusing, or incomplete. The path (relative path or full URL) must match a published page or a redirect source; otherwise the tool returns an error and records nothing.
Write access to a Mintlify project. Requires OAuth on first use. Complete authentication in the browser when prompted.
Use this server when the user wants to edit their Mintlify content, restructure navigation, or open a pull request. Every content tool takes a branch argument: required on edits, publish, discard and comment writes, optional on reads (defaults to the deploy branch). Nothing is remembered between calls, so pass branch every time. Edits on the deploy branch land as unpublished changes until you call publish. Edits on any other branch go through a pull request. Project management tool changes apply immediately to the live project without a branch or pull request.
Workflow: use read/search/edit_page/write_page/list_nodes/create_node/update_node/move_node/delete_node/update_config with a branch to make changes, then call publish with the branch and a title to publish (or discard to abandon). Pass the deploy branch to edit it directly. If the project requires a pull request (Push directly to your deploy branch is off, branch protection requires pull requests, deploy branch editing is locked, or the connection uses a client or machine-to-machine token), edits to the deploy branch are refused with the reason and change nothing. Call create_branch and pass its branchName as branch instead.
Key tools:
create_branch— Start a new branch off the deploy branch with atitlethat also names its pull request. ReturnsbranchNameand a branch-leveleditorUrlto preview changes live. On a branch, Mintlify commits edits automatically about 15 seconds after the last change, and the first commit opens a pull request.list_branches— List existing branches; pass any of them asbranch. Branches that don't exist are refused.list_deployments— Discover which project(s) this connection can access.read/search— Fetch a page's MDX or search across pages.edit_page/write_page— Apply targeted edits or overwrite a page.read_comments/add_comment/suggest_edit/reply_to_comment/resolve_comment— Read open editor comment threads on a page, start a thread on exact text, propose a tracked-changes suggestion (oldStringtonewString; an emptynewStringsuggests a deletion) that someone accepts or rejects in the editor, reply as the agent, or resolve threads. Adding, suggesting, replying and resolving require an OAuth session and act on the threads ofbranch; they work on the deploy branch even when edits to it require a pull request.list_nodes/create_node/update_node/move_node/delete_node— Manage the navigation tree. If acreate_node,update_node,move_node, ordelete_nodecall leaves the navigation invalid (for example, a page at the root next to tabs), the response includes anavigationErrorsfield. Fix these errors beforepublish, because Mintlify can drop invalid nodes from the published navigation.update_config— Modifydocs.json(theme, nav roots, integrations, SEO).upload_image/finalize_image_upload— Add a local image tobranch. Callupload_imagewith the destinationpath(for example,images/dashboard.png),contentType, and exactsizein bytes.PUTthe file bytes to the returneduploadUrlwith the returnedheaders, then callfinalize_image_uploadwith theuploadIdand the samepath. Use the returnedsrcin MDX or in thedocs.jsonlogoorfaviconfields. Uploading to an existingpathreplaces the image. Mintlify only accepts SVGs for logos and favicons, so passpurpose: "logo"to both tools. Images publish with your other edits onpublish.- Project management tools — Read with
get_deployment_settings,get_analytics_report,get_workflows, andlist_repos_and_prs. Write withupdate_deployment_settings,manage_custom_domain,manage_git_source,manage_access_auth,manage_workflow, andmanage_members_sharing. Passsubdomain(required on org-wide connections; read tools also acceptsubdomains, up to 25) and arequestobject whoseaction(orreport) selects the operation. Writes apply immediately to the live project and return the updatedstate, so confirm the intended change first.
Private pages: list_nodes accepts visibility: "private" to list the private pages and folders the OAuth user can access (ignores other filters, returns each node's role). read, edit_page, write_page, update_node, and delete_node accept private-page-<uuid> or private-folder-<uuid> node ids; create_node accepts visibility: "private" with data.type: "page" or "group". Private-page operations require an OAuth session (the admin MCP rejects client and machine-to-machine tokens), need no branch, and enforce role requirements: read for reads, editor or higher for writes and updates, manager for deletes. The caller becomes the manager of any node they create.
diff— See all changes onbranchrelative to the deploy branch.status— List unpublished edited files,docs.jsonkeys and nav changes onbranch. On the deploy branch, lists only your changes.publish— Publishbranchwith atitle. Call it only when the user asks to publish, ship, or merge, never on your own after an edit. On the deploy branch, commits only your pending changes. On a branch, commits anything pending and returns the branch's pull request, opening one if none exists. Passmerge: trueto also merge that pull request, only when the user asks and deploy-branch edits are allowed; otherwise it returnsmerge_not_allowedand leaves the pull request open.publishignoresmode. Returnsno_pending_changeswhen there is nothing to commit and no pull request. The response includes aneditorUrlthat opens the first created or updated page. When the changes reach the deploy branch, it also returns acommitShaand adeploymentobject.deployment_status— Check whether published changes are live. Pass thecommitShafrompublish, or omit it for the latest deploy. Returns astate(pending,queued,building,live,not_live,failed, orskipped), aliveboolean, and amessage. Changes aren't live untilliveistrue. Check again about every 30 seconds, and report themessageif the state isfailed,not_live(the site still serves an earlier version), orskipped.discard— On the deploy branch, reverts only your pending changes. On another branch, deletes the branch and closes its pull request, but only if you created it; otherwise changes nothing.
Keep each branch focused on one change. Smaller branches produce easier-to-review PRs. Open the editorUrl to watch changes render live. Prefer the page-level editorUrl from create_node or publish over the one from create_branch.
Mintlify changes often, so don't rely on what you remember about it. When a detail isn't in this skill, check the current documentation with the Mintlify Search MCP server or at https://mintlify.com/docs.
Before substantial content work, read Product context and check for .mintlify/product-brief.md.
Read the project's docs.json file first. It defines the site's navigation, theme, colors, and configuration.
For appearance or browser behavior changes, read Custom scripts.
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.
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
- 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.jsonnavigation or they won't appear in the sidebar
- Use root-relative paths without file extensions:
/getting-started/quickstart - Do not use relative paths (
../) or absolute URLs for internal pages
Store images in an images/ directory. Reference with root-relative paths. All images require descriptive alt text.
Mintlify automatically optimizes images stored in the repository and referenced with root-relative paths: it serves AVIF or WebP when supported, compresses them, generates resized versions up to 2500px wide, and adds width and height. Don't convert or resize these images yourself. GIFs, SVG and ICO files, images referenced by absolute URL, and images on authenticated pages are served unoptimized, so compress GIFs and externally hosted images before adding them.
Include title, description, and keywords in frontmatter. title is technically optional (Mintlify generates one from the file path if omitted), but set it explicitly for clarity and SEO.
---
title: "Clear, descriptive title"
description: "Concise summary for SEO and navigation."
keywords: ["relevant", "search", "terms"]
---| Field | Type | Description |
|---|---|---|
title |
string | Page title in navigation and browser tabs. Auto-generated from the path if omitted. |
description |
string | Brief description for SEO. Displays under the title. |
sidebarTitle |
string | Short title for sidebar navigation. |
icon |
string | Lucide, Font Awesome, or Tabler icon name. Also accepts a single emoji, a URL, or a file path. |
tag |
string | Label next to page title in sidebar (e.g., "NEW"). |
hidden |
boolean | Remove from sidebar. Page still accessible by URL. |
mode |
string | Page layout: default, wide, custom, frame, center. |
keywords |
array | Search terms for internal search and SEO. |
api |
string | API endpoint for interactive playground (e.g., "POST /users"). |
openapi |
string | OpenAPI endpoint reference (e.g., "GET /endpoint"). |
For the complete list including searchable, boost, deprecated, related, groups, and more, read Pages.
Below are the most commonly used components. For full props and all 26 components, read Components.
<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>
<Step title="First step">
Instructions for step one.
</Step>
<Step title="Second step">
Instructions for step two.
</Step>
</Steps><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!";
```
```python example.py
greeting = "Hello, world!"
```
</CodeGroup><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.
<AccordionGroup>
<Accordion title="First section">Content one.</Accordion>
<Accordion title="Second section">Content two.</Accordion>
</AccordionGroup>Install with npm i -g mint. Key commands: mint dev (local preview), mint validate, mint broken-links, mint a11y, mint score, mint analytics (traffic, search, feedback, and assistant conversations; Pro and Enterprise plans), mint new, mint signup. Read CLI commands for full flags and subcommands.
- 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.
- Using
mint.json— it is deprecated. The config file is alwaysdocs.json. - 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.jsonnavigation. - Images without alt text.
- Adding file extensions to internal links (
/page.mdxinstead of/page).