一键导入
update-documentation
Keep project documentation aligned with code by detecting and auto-fixing mismatches using agent-based analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Keep project documentation aligned with code by detecting and auto-fixing mismatches using agent-based analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate Python code blocks in Markdown documentation using pytest-codeblock.
Migrate Python repositories from mypy to ty for static type checking.
Bootstrap repository governance by creating AGENTS.md and a standard set of SKILL.md files.
Create and modify repository-specific SKILL.md policy files in strict compliance with AGENTS.md and existing project skills.
Migrate Python repositories from virtualenv, virtualenvwrapper, pip-tools, requirements files, setup.py, or setup.cfg to a uv-managed pyproject.toml and uv.lock workflow.
| name | update-documentation |
| description | Keep project documentation aligned with code by detecting and auto-fixing mismatches using agent-based analysis. |
This skill synchronizes project documentation with source code.
It treats code as ground truth and documentation as a derived artifact that must be kept accurate, consistent, and runnable.
This is a pure agent-based process. No Python scripts, generators, or external tooling are used.
This skill applies to:
README.md / README.rstAGENTS.mdSKILL.md filesdocs/ (Markdown or RST)It MUST NOT modify:
Invoke this skill when the user asks to:
This skill is not a linter. It actively edits documentation to restore alignment.
Ground truth is determined in this order:
Documentation MUST conform to the above. Lower levels MUST NOT contradict higher levels.
When invoked, the agent MUST follow these steps in order.
Scan the repository to identify externally visible behavior, including:
Only documented, reachable behavior counts as ground truth.
Read and analyze all relevant documentation sources, including:
README.*AGENTS.mdSKILL.md filesdocs/**/*.md or docs/**/*.rstIdentify:
Compare documentation against ground truth and identify:
The agent MUST directly edit documentation files to restore correctness.
Allowed fixes include:
The agent MUST NOT invent behavior. If the ground truth is unclear, the agent MUST stop and report it.
After modifications, report:
AGENTS.md MUST accurately describe:
If alignment cannot be restored without guessing:
Correctness always beats completeness.