一键导入
docs-update
Used to update project documentation after completing work items. Ensures documentation stays in sync with code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Used to update project documentation after completing work items. Ensures documentation stays in sync with code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | docs-update |
| description | Used to update project documentation after completing work items. Ensures documentation stays in sync with code changes. |
| File | Purpose | Keep it |
|---|---|---|
CLAUDE.md | Coding rules and "How to Add X" checklists. Read first when coding. | Prescriptive, minimal. Checklist format. |
AGENTS.md | Quick reference for AI agents. Module table, key patterns, common mistakes. | High-density, no fluff. Max 100 lines. |
| File | Purpose | Detail level |
|---|---|---|
docs/architecture.md | System design, data flow, component specs, design decisions. | Comprehensive. Diagrams welcome. |
docs/configuration.md | Full config.yaml field reference with examples. | Exhaustive. User-facing. |
README.md | Project intro, quick start, installation. | Marketing + getting started. |
desired_architecture.md — planning scratchpad, not authoritativeCONTRIBUTING.md — PR process, branch conventionsUpdate:
docs/architecture.md — component description, trait signature, extension point sectionCLAUDE.md — "How to Add X" checklist if pattern changedKeep lean: If the trait is already documented, just update the signature. Don't duplicate examples.
resolve_users fix)Update:
CLAUDE.md — "How to Add X" checklist (steps changed)docs/architecture.md — extension point description, remove outdated patterns (e.g., "two-phase construction")Do NOT update: AGENTS.md unless the refactor changes a key pattern that appears in the "Common mistakes" or "Key patterns" section.
Update:
docs/configuration.md — add to field reference table with type, default, descriptionexamples/config.yaml — add example usage if not obviousDo NOT update: CLAUDE.md or AGENTS.md unless it's a new top-level section.
Update:
AGENTS.md — add one line to the module tabledocs/architecture.md — add component description if it's a major subsystemKeep lean: Module table entries are | file | one sentence |. No implementation details.
Update:
docs/architecture.md — data flow section, system overview diagramDo NOT update: AGENTS.md (references architecture.md for this).
Update: Nothing, unless the bug revealed incorrect documentation.
Before editing, read the relevant doc file(s) to understand:
docs/architecture.md.docs/architecture.md.docs/architecture.md, reference it instead of repeating.If you find detailed implementation guidance in CLAUDE.md or AGENTS.md:
docs/architecture.mddocs/architecture.md for X"If you find a "How to" checklist growing beyond 12 steps, split it:
CLAUDE.mddocs/architecture.mdAfter updating docs:
cargo test — if tests changed, did docs?CLAUDE.md or AGENTS.md, is there a shorter way to say it?Scenario: You refactored channel provider construction to use free functions instead of instance methods.
Steps:
CLAUDE.md "How to Add a New Channel Provider" section → outdated, mentions "build a temporary provider"docs/architecture.md extension point section → also outdated, shows trait with removed methodresolve_users function", step 3 to "call resolve_users directly, build gate, construct provider once"resolve_users from trait signature, add free-function examples for each providercargo test still passes, no broken references, no duplicationDone. Documentation is now accurate and lean.