用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-ops-mkdocs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | agent-ops-mkdocs |
| description | MkDocs documentation site management: initializing, updating, building, and deploying |
| category | docs |
| invokes | ["agent-ops-state"] |
| invoked_by | ["agent-ops-docs"] |
| state_files | {"read":["constitution.md"],"write":["focus.md"]} |
Skill for managing MkDocs documentation sites: initializing, updating, building, and deploying.
Provide documentation site management capabilities:
flowchart LR
A[Init] --> B[Add Pages]
B --> C[Build]
C --> D[Preview]
D --> E[Deploy]
Set up a new MkDocs site with Material theme.
Input:
Process:
mkdocs.yml with Material theme configurationdocs/ directory structuredocs/index.md home pageOutput:
mkdocs.yml
docs/
├── index.md
├── getting-started.md
└── assets/
└── .gitkeep
Example:
Initialize MkDocs documentation for this project
Add a new documentation page.
Input:
Process:
nav in mkdocs.ymlExample:
Add a page called "API Reference" in the reference section
Auto-generate nav structure from docs/ directory.
Process:
Example:
Update mkdocs navigation from directory structure
Build the static documentation site.
Process:
mkdocs buildsite/ directoryExample:
Build the documentation site
Start local development server.
Process:
mkdocs serveExample:
Preview the documentation locally
Deploy documentation to GitHub Pages.
Process:
mkdocs build --strictmkdocs gh-deployExample:
Deploy documentation to GitHub Pages
site_name: Project Name
docs_dir: docs
site_dir: site
theme:
name: material
plugins:
- search
nav:
- Home: index.md
site_name: Project Name
site_url: https://username.github.io/project/
site_description: Project description
docs_dir: docs
site_dir: site
use_directory_urls: true
repo_name: username/project
repo_url: https://github.com/username/project
theme:
name: material
features:
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.expand
- navigation.top
- content.code.copy
- content.code.annotate
- search.suggest
- search.highlight
palette:
- scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to
# Page Title
Brief description of the page content.
## Section 1
Content...
## Section 2
Content...
## See Also
- [Related Page](related.md)
# API Reference
## Endpoints
### GET /resource
Description of endpoint.
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | string | Yes | Resource identifier |
**Response:**
```json
{
"id": "123",
"name": "Example"
}
...
### Tutorial Page
```markdown
# Tutorial: Feature Name
Learn how to use Feature Name in 10 minutes.
## Prerequisites
- Requirement 1
- Requirement 2
## Step 1: Setup
First, we need to...
## Step 2: Configuration
Next, configure...
## Step 3: Usage
Now you can...
## Summary
In this tutorial, you learned:
- Point 1
- Point 2
## Next Steps
- [Advanced Usage](advanced.md)
docs/
├── index.md
├── getting-started.md
├── configuration.md
└── api-reference.md
docs/
├── index.md
├── getting-started/
│ ├── installation.md
│ ├── quickstart.md
│ └── first-steps.md
├── guides/
│ ├── basic-usage.md
│ └── advanced-usage.md
├── reference/
│ ├── api.md
│ └── configuration.md
└── about/
├── changelog.md
└── contributing.md
docs/
├── index.md
├── getting-started/
│ ├── index.md
│ ├── installation.md
│ ├── quickstart.md
│ └── tutorial.md
├── concepts/
│ ├── index.md
│ ├── architecture.md
│ └── terminology.md
├── guides/
│ ├── index.md
│ ├── user-guide.md
│ ├── admin-guide.md
│ └── developer-guide.md
├── reference/
│ ├── index.md
│ ├── api/
│ ├── cli/
│ └── configuration/
├── deployment/
│ ├── index.md
│ ├── docker.md
│ └── kubernetes.md
└── about/
├── changelog.md
├── roadmap.md
└── contributing.md
# .github/workflows/docs.yml
name: Deploy Documentation
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'mkdocs.yml'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install mkdocs-material pymdown-extensions
- run: mkdocs gh-deploy --force
Required Python packages:
pip install mkdocs mkdocs-material pymdown-extensions
Or with uv:
uv add --dev mkdocs mkdocs-material pymdown-extensions
Before deploying, validate:
mkdocs build --strict| Skill | Integration |
|---|---|
agent-ops-docs | Documentation content management |
agent-ops-validation | Include docs build in validation |
agent-ops-git | Commit documentation changes |
Install MkDocs:
pip install mkdocs mkdocs-material
Install Material theme:
pip install mkdocs-material
Ensure superfences extension is configured correctly in mkdocs.yml.
Regenerate nav:
Update mkdocs navigation from directory structure
Check:
site_url matches your GitHub Pages URLuse_directory_urls: true is set