Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions skill.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required frontmatter removed

High Severity

This commit deletes the YAML frontmatter that previously defined name, description, license, compatibility, and metadata. Custom skill.md files require that frontmatter for agentskills discovery and for Mintlify’s /skill.md and /.well-known endpoints to expose name and description correctly.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 171d587. Configure here.

name: mintlify
description: Build and maintain documentation sites with Mintlify. Use when creating docs pages, configuring navigation, adding components, or setting up API references.
license: MIT
compatibility: Requires Node.js for CLI. Works with any Git-based workflow.
metadata:
author: mintlify
version: "1.0"
---

# Mintlify best practices

**Always consult [mintlify.com/docs](https://mintlify.com/docs) for components, configuration, and latest features.**
Expand All @@ -16,7 +6,7 @@ If you are not already connected to Mintlify's Index MCP server, run `mint index

**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.
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. text.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray text appended

Medium Severity

The platform overview sentence ends with a stray text. that was not present before. Agents that load this skill will treat that fragment as part of the instructions, which can confuse how they describe Mintlify.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 171d587. Configure here.


Full schema at [mintlify.com/docs.json](https://mintlify.com/docs.json).

Expand All @@ -36,6 +26,7 @@ Understanding the project tells you:
### 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
Expand All @@ -51,6 +42,7 @@ Review the Mintlify [components](https://www.mintlify.com/docs/components) to se
## Quick reference

### CLI commands

- `npm i -g mint` - Install the Mintlify CLI
- `mint dev` - Local preview at localhost:3000
- `mint broken-links` - Check internal links
Expand All @@ -59,11 +51,13 @@ Review the Mintlify [components](https://www.mintlify.com/docs/components) to se
- `mint index` - Install Mintlify's Index MCP server in supported AI coding tools

### Required files

- `docs.json` - Site configuration (navigation, theme, integrations, etc.). See [global settings](https://mintlify.com/docs/settings/global) for all options.
- `*.mdx` files - Documentation pages with YAML frontmatter

### Example file structure
```

```text
project/
├── docs.json # Site configuration
├── introduction.mdx
Expand All @@ -89,6 +83,7 @@ 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").
Expand All @@ -115,7 +110,7 @@ The `navigation` property in `docs.json` controls site structure. Choose one pri
**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 |
Expand All @@ -132,6 +127,7 @@ The `navigation` property in `docs.json` controls site structure. Choose one pri
- **`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)
Expand All @@ -146,6 +142,7 @@ The `navigation` property in `docs.json` controls site structure. Choose one pri
## Customize docs sites

**What to customize where:**

- **Brand colors, fonts, logo** → `docs.json`. See [global settings](https://mintlify.com/docs/settings/global)
- **Component styling, layout tweaks** → `custom.css` at project root
- **Dark mode** → Enabled by default. Only disable with `"appearance": "light"` in `docs.json` if brand requires it
Expand All @@ -161,7 +158,7 @@ The [components overview](https://mintlify.com/docs/components) organizes all co
**Common decision points:**

| Need | Use |
|------|-----|
| --- | --- |
| Hide optional details | `<Accordion>` |
| Long code examples | `<Expandable>` |
| User chooses one option | `<Tabs>` |
Expand All @@ -172,6 +169,7 @@ The [components overview](https://mintlify.com/docs/components) organizes all co
| API response fields | `<ResponseField>` |

**Callouts by severity:**

- `<Note>` - Supplementary info, safe to skip
- `<Info>` - Helpful context such as permissions
- `<Tip>` - Recommendations or best practices
Expand All @@ -181,11 +179,13 @@ The [components overview](https://mintlify.com/docs/components) organizes all co
### 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"`.
Expand All @@ -204,12 +204,14 @@ Import snippets with `import { Component } from "/path/to/snippet-name.jsx"`.
### 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
Expand All @@ -232,6 +234,7 @@ Import snippets with `import { Component } from "/path/to/snippet-name.jsx"`.
## Document APIs

**Choose your approach:**

- **Have an OpenAPI spec?** → Add to `docs.json` with `"openapi": ["openapi.yaml"]`. Pages auto-generate. Reference in navigation as `GET /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
Expand All @@ -243,10 +246,12 @@ Encourage users to generate endpoint pages from an OpenAPI spec. It is the most
Mintlify deploys automatically when changes are pushed to the connected Git repository.

**What agents can configure:**

- **Redirects** → Add to `docs.json` with `"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
Expand Down Expand Up @@ -326,4 +331,4 @@ The `.mintignore` file is used to exclude files from a documentation repository
- [Documentation](https://mintlify.com/docs)
- [Configuration schema](https://mintlify.com/docs.json)
- [Feature requests](https://github.com/orgs/mintlify/discussions/categories/feature-requests)
- [Bugs and feedback](https://github.com/orgs/mintlify/discussions/categories/bugs-feedback)
- [Bugs and feedback](https://github.com/orgs/mintlify/discussions/categories/bugs-feedback)
Loading