Prerequisites
- Cursor installed on your machine
- A Mintlify docs repository with a
docs.jsonfile at the root
Setup
Open your docs directory in Cursor
Open the folder that contains your
docs.json file as the project root in Cursor. Cursor’s AI features use the open project for context, so opening the right directory matters.Install the Mintlify skill
In Cursor’s integrated terminal, run the following command from your docs root:This installs Mintlify’s component reference, writing standards, and workflow guidance into Cursor’s context. After installation, Cursor’s AI features will understand how to use
<Steps>, <Card>, <Tabs>, and all other Mintlify components correctly.Customize AGENTS.md
Open the
AGENTS.md file created in your docs root and add any project-specific instructions. This is where you define the rules that apply to your docs site specifically, such as product terminology, style preferences, and what content is in or out of scope.Start writing
Use Cursor’s AI features to draft and edit documentation:
- Tab — Accept inline completions as you type in
.mdxfiles - Chat — Ask Cursor to draft a new page, restructure a section, or explain a component
- Cmd+K — Select a block of text and prompt Cursor to rewrite or improve it
AGENTS.md rules automatically.