praxis
npx skills add https://praxis-a3dca7d3.mintlify.app
Agent 安装分布
Skill 文档
Capabilities
Mintlify enables agents to build and manage comprehensive documentation sites with API reference documentation, customizable styling, and AI-assisted content creation. Agents can create multi-page documentation with hierarchical navigation, embed code examples, generate API docs from OpenAPI specifications, and deploy documentation automatically through GitHub integration.
Skills
Documentation Creation and Content Management
- Write documentation pages using MDX syntax with support for markdown formatting, code blocks, images, and HTML embeds
- Create hierarchical navigation with tabs, groups, and nested pages using the
docs.jsonconfiguration file - Add code examples with syntax highlighting for multiple programming languages using fenced code blocks
- Embed media including images, videos, and iframes with customizable sizing and styling
- Create reusable snippets that can be imported across multiple pages to maintain consistency and reduce duplication
API Documentation
- Auto-generate API documentation from OpenAPI specifications (JSON format)
- Configure API endpoints with GET, POST, DELETE, and webhook support
- Set up authentication using Bearer tokens, basic auth, or API keys with configurable playground modes
- Create interactive API playgrounds where users can test endpoints with authentication
- Document request/response schemas with parameter descriptions, examples, and error codes
Site Customization and Configuration
- Customize global settings via
docs.jsonincluding project name, logo, favicon, and color scheme - Configure color themes with primary colors, dark mode support, and background customization
- Set up navigation structure with tabs, groups, and nested pages for organizing content
- Add topbar links and CTA buttons for navigation and GitHub repository integration
- Configure footer social media links for website, X, Discord, Slack, GitHub, LinkedIn, and other platforms
- Enable feedback mechanisms with “suggest edit” and “raise issue” buttons for community contributions
- Customize dark mode toggle with default mode selection and visibility options
Development and Local Preview
- Install Mintlify CLI using
npm i -g mintfor local development - Preview documentation locally with
mint devcommand athttp://localhost:3000 - Customize preview port using
--portflag (e.g.,mint dev --port 3333) - Validate broken links using
mint broken-linkscommand - Update CLI versions with
npm mint updateto stay synchronized with production
AI-Assisted Writing Tools
- Integrate with Cursor editor by installing Mintlify skill with
npx skills add https://mintlify.com/docs - Use Claude Code for AI-assisted documentation writing with active Claude subscription
- Configure Windsurf’s Cascade AI assistant for documentation drafting and editing
- Customize project instructions via
AGENTS.mdfile for project-specific terminology and style preferences - Access component reference and writing standards through installed AI skills
Deployment and Publishing
- Deploy automatically through GitHub app integration from the dashboard
- Publish documentation by committing and pushing changes to GitHub
- Manage multiple documentation versions with version dropdown in navigation bar
- Configure multiple base URLs for API endpoints with user-selectable options
Workflows
Setting Up a New Documentation Site
- Clone documentation repository locally
- Install Mintlify CLI:
npm i -g mint - Navigate to docs directory and run:
mint dev - Open
http://localhost:3000to preview - Edit
docs.jsonto update project name and colors - Commit and push changes to deploy automatically
Creating API Documentation from OpenAPI
- Prepare OpenAPI specification file (JSON format)
- Configure
docs.jsonwith API settings:- Set
baseUrlfor API endpoints - Configure authentication method (bearer, basic, or key)
- Point
openapifield to specification file URL or relative path
- Set
- Create endpoint pages with frontmatter:
openapi: 'GET /endpoint' - Configure playground mode (show, simple, or hide)
- Deploy through GitHub integration
Building Documentation with AI Assistance
- Open docs directory in Cursor, Claude Code, or Windsurf
- Install Mintlify skill:
npx skills add https://mintlify.com/docs - Edit
AGENTS.mdwith project-specific guidelines - Use AI editor features to draft and edit documentation
- Preview changes locally with
mint dev - Commit and push to deploy
Organizing Complex Documentation
- Create folder structure for content organization
- Define navigation in
docs.jsonwith tabs and groups - Use nested navigation for sub-sections
- Create reusable snippets in
/snippetsdirectory - Import snippets into pages using MDX imports
- Link between pages using root-relative paths
Integration
Mintlify integrates with multiple development tools and platforms:
- GitHub: Automatic deployment through GitHub app integration; supports GitHub stars display in topbar
- OpenAPI: Auto-generates API documentation from OpenAPI 3.0 specifications
- Cursor Editor: AI-assisted documentation writing with Mintlify skill
- Claude Code: Integration with Anthropic’s Claude for documentation assistance
- Windsurf: Cascade AI assistant for documentation workflows
- Node.js: CLI-based development with npm package management
- Markdown/MDX: Full support for markdown syntax with JSX component extensions
Context
Documentation Structure
Mintlify uses a file-based architecture where MDX files in the root and subdirectories become pages. The docs.json file serves as the central configuration file controlling navigation, styling, and API settings. Pages must be explicitly added to docs.json to appear in navigation, though they remain accessible via direct links and search.
Navigation Patterns
Navigation is organized hierarchically with tabs containing groups containing pages. Nested navigation allows sub-groups within pages. Folder names in the file system should match navigation paths (e.g., your-folder/your-page.mdx for /your-folder/your-page URLs). The reserved folder name api cannot be used at the top level due to Next.js constraints.
API Documentation
OpenAPI specifications define all API endpoints, authentication methods, and request/response schemas. The API playground allows interactive testing with authentication. Multiple OpenAPI files can be configured for different API versions or services.
Content Reusability
Snippets in the /snippets directory can be imported as components, variables, or default exports. This enables maintaining consistent content across multiple pages without duplication. Snippets support parameterization through props.
Deployment Model
Mintlify uses a GitHub-based deployment model where changes are automatically deployed when pushed to the repository. The GitHub app must be installed from the dashboard to enable automatic deployments. Local preview with mint dev allows testing before deployment.
Customization Scope
All visual customization happens through docs.json configuration. Color schemes support both light and dark modes with separate hex values. The platform uses Font Awesome icons for navigation elements and supports custom fonts through CSS. Background images can be applied globally to all pages.
For additional documentation and navigation, see: https://praxis-a3dca7d3.mintlify.app/llms.txt