用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nirecom/agents --skill update-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Edit source code for the current task. Delegates editing and lint/typecheck/self-repair to a subagent.
Plan and write test cases with high reasoning effort. Test iteration runs in a subagent to minimize confirmations.
Conduct a decision-tree interview with the user to lock in requirements, motivation, scope, and non-goals before planning.
基于 SOC 职业分类
正在显示 SKILL.md
| name | update-docs |
| description | Update all project documentation to reflect recent changes |
| model | sonnet |
| user-invocable | false |
Update all project documentation to reflect recent changes.
Docs directory: docs/ within the current project root.
Target files: all .md files in docs/ that already exist, plus README.md in the project root.
UD-0. Read rules/docs.md. It is on-demand-only and never auto-injected, so this Read is mandatory.
Read rules/coding.md here too — same on-demand-only status; its Public GitHub Rules govern every doc written in UD-4 and after.
UD-1. Gather recent changes:
git diff and git diff --cached to capture uncommitted and staged changes (current session's work, not yet in git log)git log --oneline -20 for committed history
UD-2. Read current docs: Read all target docs files.README.md (repo root) is required for all repos. Create it first if missing — highest priority.
ops.mdCHANGELOG.md (repo root) for public repos. Create if missing (no manual seed needed — first run starts from here).
UD-3. Identify gaps: Compare git log against each document's content. Look for:README.md: Update when a user-visible feature is added or changed, install/usage steps shift, or an existing bullet no longer accurately reflects real behavior.
UD-4. Propose updates: For each file that needs updating, present:DOCS_LANG_HISTORY_PUBLIC / DOCS_LANG_HISTORY_PRIVATE for history, DOCS_LANG_CHANGELOG_PUBLIC / DOCS_LANG_CHANGELOG_PRIVATE for changelog; routed by repo visibilitybash -c 'cd "$AGENTS_CONFIG_DIR" && bash "$AGENTS_CONFIG_DIR/bin/confirm-off" CONFIRM_DOCS on'ON or ERROR: present the UD-4 proposal via AskUserQuestion and wait for approval before applying edits.OFF: apply the edits and continue to step UD-6 without waiting.
UD-6. Propagate to parent docs: If the project has a parent-level summary doc (e.g. an engineering hub), update it too. Skip for repo-local docs/.infrastructure.md — delegate to /update-infrastructure instead.
UD-7. Commit separately: If docs are in a separate repo, commit each repo independentlyrules/docs.mdDOCS_LANG_HISTORY_* / DOCS_LANG_CHANGELOG_* settings in .env for History/Changelog entry languageCONFIRM_DOCS — when off, the proposal is shown but no AskUserQuestion is raisedAfter completing this skill, choose Path A or Path B based on ENFORCE_WORKTREE.
UD-8. Complete delivery (Path A — ENFORCE_WORKTREE=on mandatory).
UD-8a. Append history bullets to <worktree>/WORKTREE_NOTES.md ## History Notes. Replace - (none) on first append.
closes_issues is non-empty: write one bullet per closed issue (matching the closes_issues count). /worktree-end Step WE-21 is the canonical writer of docs/history.md (Approach C, #690) and consumes these bullets via compose-doc-append-entry --closes-issues-count N. The CLI fail-fasts (non-zero exit) when closes_issues > 0 AND ## History Notes is absent / contains only - (none).closes_issues count, the CLI emits a soft warning to stderr but proceeds.
UD-8b. For public repos: append user-facing bullets to ## Changelog Notes. Replace - (none) on first append.
UD-8c. Do NOT write docs/history.md or CHANGELOG.md directly — deferred to /worktree-end Step WE-21 (single canonical writer for both files).
UD-8d. Stage: git add docs/ README.md (intentionally omits CHANGELOG.md and docs/history.md).git add docs/ is expected on this path — history and changelog content sits in WORKTREE_NOTES.md, not under docs/; the docs_complete sentinel alone satisfies the gate.
UD-8e. Commit gate is satisfied by docs/ staged entries (architecture.md, ops.md, README.md, etc.).
UD-8f. Emit: echo "<<WORKFLOW_MARK_STEP_docs_complete>>" — satisfies the workflow gate. Do NOT emit WORKFLOW_USER_VERIFIED here; next-step owns user_verification (deferred to /worktree-end under ENFORCE_WORKTREE=on).UD-9. Complete delivery (Path B — ENFORCE_WORKTREE=off).
UD-9a. History entry — dispatch the doc-append worker per skills/_shared/worker-dispatch.md. Payload: mode: "history", cwd, category, subject, commits, background, changes, test_gap (required when category is BUGFIX), artifact_dir.
UD-9b. For public repos — changelog entry: same dispatch with mode: "changelog" and no commits (payload sequence suffix -2).
On failed status: surface summary + artifact_path to the user and stop.
UD-9c. git add docs/ README.md CHANGELOG.md
UD-9d. Emit: echo "<<WORKFLOW_MARK_STEP_docs_complete>>" — satisfies the workflow gate. Do NOT emit WORKFLOW_USER_VERIFIED here; next-step owns user_verification (emitted just before /commit-push under ENFORCE_WORKTREE=off).