一键导入
update-docs
Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate OpenEnv environments from a concrete use case (for example, "generate an env for the library textarena"). Use when asked to design or implement a new environment under envs/ by researching a target library/API, selecting matching OpenEnv examples, asking key implementation questions, and building models/client/server/openenv.yaml. Do not use for model training or evaluation tasks.
Release workflow for deploying OpenEnv environments to Hugging Face Spaces and keeping canonical references in sync.
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command.
OpenEnv CLI (`openenv`) for scaffolding, validating, building, and pushing OpenEnv environments.
Deploy an OpenEnv environment to Hugging Face Spaces. Use when asked to deploy, push to Hugging Face, or update a space.
Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.
| name | update-docs |
| description | Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them. |
Find and fix stale documentation after API changes.
When this skill is invoked, you MUST execute these steps immediately.
Run:
git diff --name-only main...HEAD -- '*.py'
If no changes are found relative to main (e.g., on main or no upstream), fall back to:
git diff --name-only HEAD~1 -- '*.py'
If that also fails, ask the user which files changed.
Collect the list of changed Python files.
For each changed .py file, compare old vs new signatures using the same ref that worked in Step 1:
# If Step 1 used main...HEAD:
git diff main...HEAD -- <file>
# If Step 1 fell back to HEAD~1:
git diff HEAD~1 -- <file>
Look for changes to:
Build a list of (old_signature, new_signature) pairs.
If no API changes are found (only internal logic changes), report "No API changes detected — no docs update needed" and stop.
Use the Task tool to spawn the docs-updater agent. IMPORTANT: the
description field MUST contain "docs-updater" so the SubagentStop
hook fires correctly.
Task tool:
subagent_type: general-purpose
description: "docs-updater propagation"
prompt: |
You are a docs-updater agent. Read .claude/agents/docs-updater.md
for your full instructions.
Here are the API changes to propagate:
Changed files: <list>
API changes:
- `old` → `new`
...
Search the entire repo for references to the old APIs and update
them to match the new signatures. Follow the process in
.claude/agents/docs-updater.md exactly.
After the agent returns:
Report the summary to the user.
/implement when API signatures changed/pre-submit-pr to ensure docs are fresh/write-tests → Red (failing tests)
/implement → Green (passing tests)
/update-docs → Fix stale docs across repo ← THIS SKILL
/simplify → Refactor (optional)
/pre-submit-pr → Validate before PR