The Mintlify skill for Claude Code, Cursor, and Codex
Harkirat Chahal
Growth
Share this article
Harkirat Chahal
Growth
Share this article

We packaged what our team knows about Mintlify into a skill your agent can use.
With it installed, your agent knows how Mintlify works before it touches your repo, from which component fits to how docs.json is structured.
The skill covers the rules, config options, components, CLI, and the hooks we support for customization. The team that builds Mintlify wrote it.
It’s an open source Agent Skill that works with Claude Code, Cursor, Codex, and any other agent that supports skills. If an agent touches your Mintlify project, install it with one command:
Then ask for what you want. The examples in our skill docs start with "Use mintlify to...", followed by the result, your theme, and the pages it touches.
What's in the Mintlify skill?
Think of the skill as a manual. SKILL.md is the table of contents plus the basics every task needs. The eleven reference files are the chapters, and the agent opens only the ones your task calls for.
A typo fix doesn't need the guide to browser events, so it never loads it.
- Start substantial content work, like a new siteproduct-context.md
- Create a page or write more than a sentence or twowriting.md
- Use callouts, cards, steps, tabs, or code groupscomponents.md
- Change the theme, colors, logo, navbar, or redirectsconfiguration.md
- Add tabs, groups, versions, or languagesnavigation.md
- Document an API from OpenAPI or AsyncAPIapi-docs.md
- Restyle the site with CSS, JavaScript, or Reactcustomization/
- Run CLI commands like dev, validate, or broken-linkscli.md
- Publish, branch, undo, or review with suggestionspublishing-and-review.md
- Change domains, auth, members, or workflowsproject-settings.md
- Build or migrate a whole site or sectionsite-building.md
What rules does the skill follow?
Seven rules from SKILL.md and its reference files.
- Config lives in docs.json
mint.jsonis deprecated. - Every new page goes into navigationPages missing from
docs.jsonnavigation don't appear in the sidebar. - Internal links are root-relativeFor example
/getting-started/quickstart, with no../paths and no.mdxextensions. - Code blocks and images are completeEvery code block has a language tag, and every image has descriptive alt text.
- No invented detailsEvery command, flag, default, price, and example must trace to your message, your project, its source code, or a fetched page. Anything else is left out or marked as a visible placeholder.
- Install the mint packageThe CLI's npm package is
mint, not the legacymintlifypackage. - Publish only when askedA request to edit is not a request to publish.
How does the skill customize a site?
The skill tells your agent to make every design change the simplest way that works. It tries a built-in setting first and writes custom code only when nothing simpler can do the job.
From simplest to most custom:
- A docs.json setting. Colors, fonts, logo, or banner. One config value.
- A component prop. The component already supports it, so the agent passes a prop.
- A className on one component. Styles one card or callout and nothing else.
- A React snippet. A small custom component, for when no built-in one fits.
- Global CSS. Styles that apply to every page.
- Global JavaScript. Custom code that runs on every page. The last resort.
Settings and props are built-in features. Global CSS and JavaScript reach every page and depend on page structure that can change. The skill even calls the documented CSS selectors "best-effort."
For common requests, the skill skips the list and says exactly where the change goes:
| Request | Where the skill makes the change |
|---|---|
| Brand color, fonts, banner | The colors, fonts, and banner settings in docs.json |
| Sidebar width | The --sidebar-width CSS variable |
| Reading column width | The --content-width CSS variable |
| Style one page | A selector on the page's data-current-path attribute |
| Dark mode styles | html.dark, since readers can pick their own theme |
| Hide something on phones | The element's ID inside a mobile media query |
| Load a third-party script | A documented docs.json integration first |
| Interactive component | A named export in the /snippets folder |
The skill also bans styles tied to generated IDs, test IDs, or utility classes, and :has() selectors that make the browser recheck large parts of the page. Secrets never go anywhere the browser can read.
These prompts come from our skill docs. Copy one and try it:
Use mintlify to make the left sidebar 320px wide on desktop in the mint theme. Keep the content and footer aligned, and check at 1024px and 1440px.
Use mintlify to set body text to 17px with a 1.6 line height and widen the content column to 768px on large screens.
Use mintlify to review my styles.css and replace selectors that depend on generated class names with stable IDs or data attributes.
Use mintlify to hide breadcrumbs in search results.
The skill also tells the agent to check its own work: the first page load, repeated navigation, back and forward, light and dark mode, and the breakpoints it touched. Then report what it verified, and what it didn't.
In our test runs, Claude Code loaded the skill before doing anything else, both times.
How does the skill set up a new site?
Ask for a new docs site and the skill tells the agent to run setup itself from the terminal instead of sending you to a browser quickstart. The steps, from SKILL.md:
- Check for Node.js v20.17.0 or newer, then install or update the Mintlify CLI.
- Run
mint status. Log in, or create an account withmint signupusing details you provide. - After you verify your email and finish onboarding, confirm your organization and subdomain.
- Clone the connected repository. Keep your existing docs, and replace starter content with your Markdown instead of placeholder pages.
- Preview with
mint dev, then runmint validateandmint broken-linksand fix any issues it caused. - Commit and push to deploy.
- Confirm your .mintlify.site URL loads before reporting it.
You need a browser for three things: verifying your email, approving OAuth, and connecting GitHub.
What else can you ask your agent to do?
- Write pages. Before a new site or a broad restructure, the skill has the agent write a product brief at .mintlify/product-brief.md: what the product does, who reads the docs, their first tasks, and why the product exists. Later sessions read the brief instead of asking you again.
- Document an API. With an OpenAPI or AsyncAPI spec, the skill references the spec in navigation instead of hand-writing endpoint pages.
- Review a page. Ask for a review and the skill has the agent leave suggestions and comments in the Mintlify editor instead of editing the page.
- Check quality. The skill covers the CLI checks:
mint validate,mint broken-links,mint a11yfor alt text and color contrast,mint scorefor agent readiness, andmint test, which generates tests for your code blocks.
How do you connect Mintlify to your AI tools?
The skill gives your agent the know-how to work on a Mintlify project. To actually read and change your docs, it also needs access, which comes from two MCP servers:
- The admin MCP lets it edit your pages, navigation, and settings, and open pull requests, after you sign in with your Mintlify account.
- Your docs' search MCP lets it read your published docs while it codes. Every Mintlify site has one at the /mcp path of its URL, or /authed/mcp if the site requires sign-in.
Here's the setup for each tool:
The first time your tool uses the admin MCP, it asks you to sign in to Mintlify. Mintlify's plugins for Claude Code, Cursor, Codex, and Kiro install the skill and connect the admin MCP and Mintlify's own search server for you.
With the admin MCP connected, the agent doesn't need a local copy of your repo at all. The skill switches it to the MCP tools. It edits on a named branch, previews with the editor link the tools return, and publishes only when you ask. Settings changes go live immediately, so the skill tells the agent to confirm them first.
How is it different from skill.md?
The Mintlify skill, your site's skill.md, and assistant skills are all Markdown that shapes how AI works with docs. Each one serves a different reader.
- What it does
- Teaches coding agents to build on Mintlify
- Who uses it
- Your team's coding agents
- Where it lives
- The mintlify/docs repository
- Who writes it
- Mintlify
- What it does
- Tells agents what your product can do
- Who uses it
- Your users' agents
- Where it lives
/skill.mdon your public docs site- Who writes it
- Mintlify generates it, or you override it
- What it does
- Tunes your docs assistant's answers
- Who uses it
- Readers chatting on your docs
- Where it lives
- Your docs project
- Who writes it
- You
Read more about skill.md and assistant skills.
Agents already make up nearly 80% of traffic to the docs Mintlify powers. The platform has to work for them as well as it works for people.
Frequently Asked Questions
How do I install the Mintlify skill?
Run the install command at the top of this page, pick your agent and scope, and start a new agent session. You need Node.js and a coding agent that supports skills. In our test, the installer failed on Node.js 20.20 and worked on Node.js 22.
Can I use the skill on an existing Mintlify site?
Yes. It's built for new sites and existing ones. On an existing project, the skill tells the agent to read your docs.json first, search for existing content before creating a page, and read two or three similar pages to match your site's voice, structure, and formatting.
Can the skill migrate existing docs?
Yes. If you're moving from Docusaurus, GitBook, ReadMe, Fern, or Document360, the skill points the agent to the matching migration guide, and tells it to keep your wording and structure, changing only what the format requires. If you'd rather hand it off, our migration team can move your docs.
How do I update the skill?
Rerun the install command with the same options, then start a new agent session. If you got the skill through a Mintlify plugin, update the plugin instead.
Is the Mintlify skill free?
Yes. It's open source under the MIT license.
Where to start
- Install the Mintlify skill and try one of the prompts above
- Connect the admin MCP so your agent can edit and open pull requests without a local checkout
More to read

Best Documentation Platforms for AI Agents in 2026
Compare Mintlify, Fern, ReadMe, and Docusaurus for AI agent discovery, Markdown delivery, MCP retrieval, protected documentation, and ongoing maintenance.
September 25, 2026Harkirat Chahal
Growth

How to Make Your Documentation Agent-Friendly
Learn how to make documentation agent-friendly with reliable discovery, runnable instructions, protected access, and repeatable integration tests.
September 25, 2026Harkirat Chahal
Growth