跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 mintlify

Mintlify

建设Mintlify文献站点综合参考. 创建页面时使用,配置docs.json,添加组件,设置导航,或使用API引用. 所有组件和配置选项的详细参考文件的路径 .

19194 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

建造Mintlify文件站点的综合参考

何时用

创建页面,配置docs.json,添加组件,设置导航,或与 API 引用合作。 所有组件的详细参考文件的路径和配置选项

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Mintlify reference、Reference index、Before you start、File format、File naming、Internal links。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

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.

Mintlify referenceReference indexBefore you startFile formatFile namingInternal linksImagesPage frontmatterCommon frontmatter fieldsQuick component referenceCalloutsSteps

兼容:Works with any Mintlify documentation project. Requires docs.json configuration file. · 许可:MIT

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
mintlify
description
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.
compatibility
Works with any Mintlify documentation project. Requires docs.json configuration file.
许可
MIT
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「mintlify」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-8bc3fcfa6dfbfb23-Mintlify.html
请存为 .cursor/skills/mintlify/SKILL.md 或 .claude/skills/mintlify/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/mintlify/docs' --list

npx skills add 'https://github.com/mintlify/docs' --skill 'mintlify'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: mintlify description: 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. license: MIT compatibility: Works with any Mintlify documentation project. Requires docs.json configuration file. metadata: author: Mintlify url: https://mintlify.com version: "0.2" --- # 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. ```mdx ![Dashboard showing analytics overview](/images/dashboard.png) ``` ## Page frontmatter Every page requires `title` in its frontmatter. Include `description` and `keywords` for SEO. ```yaml --- 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 ```mdx Supplementary information, safe to skip. Helpful context such as permissions or prerequisites. Recommendations or best practices. Potentially destructive actions or important caveats. Success confirmation or completed status. Critical warnings about data loss or breaking changes. ``` ### Steps ```mdx Instructions for step one. Instructions for step two. ``` ### Tabs and code groups ```mdx ```bash npm install package-name ``` ```bash yarn add package-name ``` ``` ```mdx ```javascript example.js const greeting = "Hello, world!"; ``` ```python example.py greeting = "Hello, world!" ``` ``` ### Cards and columns ```mdx Card description text. Card description text. ``` Use `` to arrange cards (or other content) in a grid. `cols` accepts 1-4. ### Accordions ```mdx Content one. Content two. ``` ## 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`).

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.