Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

mintlifymintlify 搜索

Agent Skill

mintlify 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,406

周安装

58

GitHub Stars

9,530

下载量

459
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mintlify(mintlify 搜索)
来源仓库:https://github.com/arize-ai/phoenix
仓库路径:skills/mintlify
安装命令:
npx skills add https://github.com/arize-ai/phoenix --skill mintlify
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/arize-ai/phoenix --skill mintlify

简介

Mintlify 记录任务执行中的错误修正和经验沉淀,形成知识资产。

  • 适合持续优化 Agent 表现并建立最佳实践库。
  • 可与文档站点联动更新组件库和配置模板。mintlify 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需定期回顾条目以确保信息时效性和准确性。
  • 建议在关键决策点主动调用该技能补充上下文。

SKILL.md

Mintlify best practices

Always consult mintlify.com/docs for components, configuration, and latest features.

If you are not already connected to the Mintlify MCP server, https://mintlify.com/docs/mcp, add it so that you can search more efficiently.

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.

Full schema at mintlify.com/docs.json.

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
  • mint a11y - Check for accessibility issues in content
  • mint rename - Rename/move files and update references
  • mint validate - Validate documentation builds

Required files

  • docs.json - Site configuration (navigation, theme, integrations, etc.). See global settings for all options.
  • *.mdx files - Documentation pages with YAML frontmatter

Example file structure

project/
├── docs.json           # Site configuration
├── introduction.mdx
├── quickstart.mdx
├── guides/
│   └── example.mdx
├── openapi.yml         # API specification
├── images/             # Static assets
│   └── example.png
└── snippets/           # Reusable components
    └── component.jsx

Organize content

When a user asks about anything related to site-wide configurations, start by understanding the global settings. See if a setting in the docs.json file can be updated to achieve what the user wants.

Navigation

The navigation property in docs.json controls site structure. Choose one primary pattern at the root level, then nest others within it.

Choose your primary pattern:

PatternWhen to use
GroupsDefault. Single audience, straightforward hierarchy
TabsDistinct sections with different audiences (Guides vs API Reference) or content types
AnchorsWant persistent section links at sidebar top. Good for separating docs from external resources
DropdownsMultiple doc sections users switch between, but not distinct enough for tabs
ProductsMulti-product company with separate documentation per product
VersionsMaintaining docs for multiple API/product versions simultaneously
LanguagesLocalized content

Within your primary pattern:

  • Groups - Organize related pages. Can nest groups within groups, but keep hierarchy shallow
  • Menus - Add dropdown navigation within tabs for quick jumps to specific pages
  • expanded: false - Collapse nested groups by default. Use for reference sections users browse selectively
  • 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)
  • Anchors containing groups (simple docs with external resource links)

Links and paths

  • Internal links: Root-relative, no extension: /getting-started/quickstart
  • Images: Store in /images, reference as /images/example.png
  • External links: Use full URLs, they open in new tabs automatically

Customize docs sites

What to customize where:

  • Brand colors, fonts, logodocs.json. See global settings
  • Component styling, layout tweakscustom.css at project root
  • Dark mode → Enabled by default. Only disable with "appearance": "light" in docs.json if brand requires it

Start with docs.json. Only add custom.css when you need styling that config doesn't support.

Write content

Components

The components overview organizes all components by purpose: structure content, draw attention, show/hide content, document APIs, link to pages, and add visual context. Start there to find the right component.

Common decision points:

NeedUse
Hide optional details<Accordion>
Long code examples<Expandable>
User chooses one option<Tabs>
Linked navigation cards<Card> in <Columns>
Sequential instructions<Steps>
Code in multiple languages<CodeGroup>
API parameters<ParamField>
API response fields<ResponseField>

Callouts by severity:

  • <Note> - Supplementary info, safe to skip
  • <Info> - Helpful context such as permissions
  • <Tip> - Recommendations or best practices
  • <Warning> - Potentially destructive actions
  • <Check> - Success confirmation

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".

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

Encourage users to generate endpoint pages from an OpenAPI spec. It is the most efficient and easiest to maintain option.

Deploy

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

For /docs subpath hosting with Vercel or Cloudflare, agents can help configure rewrite rules. See /docs subpath.

Edge cases

Migrations

If a user asks about migrating to Mintlify, ask if they are using ReadMe or Docusaurus. If they are, use the @mintlify/scraping CLI to migrate content. If they are using a different platform to host their documentation, help them manually convert their content to MDX pages using Mintlify components.

Hidden pages

Any page that is not included in the docs.json navigation is hidden. Use hidden pages for content that should be accessible by URL or indexed for the assistant or search, but not discoverable through the sidebar navigation.

Exclude pages

The .mintignore file is used to exclude files from a documentation repository from being processed.

Common gotchas

  1. Component imports - JSX components need explicit import, MDX components don't
  2. Frontmatter required - Every MDX file needs title at minimum
  3. Code block language - Always specify language identifier
  4. Never use mint.json - mint.json is deprecated. Only ever use docs.json

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.21%
按下载量换算162

Claude

28.12%
按下载量换算129

Cursor

18.39%
按下载量换算84

Gemini CLI

8.55%
按下载量换算39

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills