docs

GitHub

用于编写、修订或审计 gofastmcp.com 文档的技能。涵盖页面创建流程、Mintlify模板规范、代码块可运行性检查、CI验证及发布部署机制,确保内容一致性、无障碍访问和正确上线。

.agents/skills/docs/SKILL.md PrefectHQ/fastmcp

触发场景

需要新增功能文档页面 修复现有文档问题 重构或优化文档结构 执行文档可访问性与一致性审计

安装

npx skills add PrefectHQ/fastmcp --skill docs -g -y
更多选项

非标准路径

npx skills add https://github.com/PrefectHQ/fastmcp/tree/main/.agents/skills/docs -g -y

不安装直接使用

npx skills use PrefectHQ/fastmcp@docs

指定 Agent (Claude Code)

npx skills add PrefectHQ/fastmcp --skill docs -a claude-code -g -y

安装 repo 全部 skill

npx skills add PrefectHQ/fastmcp --all -g -y

预览 repo 内 skill

npx skills add PrefectHQ/fastmcp --list

SKILL.md

Frontmatter
{
    "name": "docs",
    "description": "Write or revise a page under docs\/ for gofastmcp.com. Use when adding a feature's documentation, fixing a docs issue, reworking a page, or auditing pages for accessibility and consistency. Covers the page shape, the voice, the checks that run in CI, and how a merged page reaches the live site."
}

FastMCP docs

The docs are a Mintlify site built from docs/. A page exists only when docs/docs.json lists it, and a feature exists only when a page documents it. docs/python-sdk/** is generated from docstrings by a bot; edit the docstring, not the page.

Procedure

  1. Find the owning page before creating one. rg -l "<feature>" docs --glob '!docs/python-sdk/**' --glob '!docs/v2/**' --glob '!docs/v3/**'. Extend it when the feature belongs to that page's subject; add a page when it has its own.
  2. Read two neighboring pages in the same docs.json group and match their section order and heading depth.
  3. Write the page with the template below. Explain why the feature exists before showing how, and keep the first code block small enough to read without scrolling.
  4. Make every code block runnable: imports present, names defined, one idea per block. Pull intermediate values into named variables instead of nesting calls.
  5. Run the checks in Verify and fix what they report.
  6. When the change is ready to ship, open a PR against main. Merged is not live: the site serves published-docs. A stable release from main opens a Publish FastMCP v<version> docs PR against published-docs that a maintainer merges; for a docs-only change between releases, follow "Publishing docs by hand" in .agents/skills/release/SKILL.md. Either way, the Deploy docs run's verdict is what says the site changed.

Template

---
title: Feature Name
sidebarTitle: Feature
description: One sentence a search result can show.
icon: some-fontawesome-icon
---

import { VersionBadge } from '/snippets/version-badge.mdx'

<VersionBadge version="<version that introduces the feature>" />

One paragraph on the problem this solves and when to reach for it.

## Basic usage

Explain what the example does, then show it.

```python
from fastmcp import FastMCP

mcp = FastMCP("Demo")


@mcp.tool
def greet(name: str) -> str:
    return f"Hello, {name}!"
```

## Configuration

One subsection per option that changes behavior, each with a sentence on the default and an example of the override.

## How it works

Only when the mechanism affects what the reader should do. Put a one-sentence text description before any diagram.

Voice

Second person, present tense, plain assertions. Say what the feature does and what the reader should do; leave out marketing adjectives and reassurance. The first sentence of each section carries its point. Prose holds the important information; code comments hold none of it. Wrap bare {} in backticks, since Mintlify reads them as JSX.

Accessibility

Every <img> and ![]() gets alt text that says what the picture shows. Decorative media gets aria-hidden="true". Headings step one level at a time. Link text names the destination. Tables have a header row. Code fences carry a language. Diagrams get a text description. Custom CSS keeps text at 4.5:1 contrast and animations behind prefers-reduced-motion.

Verify

(cd docs && npx --yes mint@latest broken-links)
uv run pytest tests/docs -n 0

The first catches dead links and MDX parse errors and names the file and line. The second parses every Python block in docs/ and resolves every fastmcp import. A block that must not run takes test="skip" on its fence.

For a visual change, run npx --yes mint@latest dev in docs/ and look at the page at 1280px and 390px, light and dark.

Gotchas

  • VersionBadge marks when a feature arrived. Leave old badges alone; they are history, not staleness.
  • docs/v2/ and docs/v3/ are frozen snapshots of earlier majors. Maintenance releases add changelog entries there and nothing else.
  • The version picker label lives in docs/docs.json under navigation.versions[0].version and is bumped by hand.
  • mcp_types is the real name of the protocol types package in 4.x.

版本历史

  • c6165d9 当前 2026-09-23 08:38

同 Skill 集合

.agents/skills/code-review/SKILL.md
.agents/skills/fix-issue/SKILL.md
.agents/skills/python-tests/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/review-issue/SKILL.md
.agents/skills/review-pr/SKILL.md
.agents/skills/review-security-report/SKILL.md
.agents/skills/triage/SKILL.md
.claude/skills/code-review/SKILL.md
.claude/skills/python-tests/SKILL.md
.claude/skills/review-issue/SKILL.md
.claude/skills/review-pr/SKILL.md
.claude/skills/review-security-report/SKILL.md
examples/skills/sample_skills/code-review/SKILL.md
examples/skills/sample_skills/pdf-processing/SKILL.md
skills/fastmcp-client-cli/SKILL.md

元信息

文件数
0
版本
623590a
Hash
a90370db
收录时间
2026-09-23 08:38

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-27 09:37
浙ICP备14020137号-1