一键导入
documentation-update
Update project docs to match code changes. Use when adding docs, checking what a change requires, or syncing docs/skills/commands with code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update project docs to match code changes. Use when adding docs, checking what a change requires, or syncing docs/skills/commands with code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate the branch diff against the task's acceptance criteria before marking it done. Use when implementation looks complete, before a status update to done/awaiting_review, or when the user asks "did we cover everything?"
One-pass AI code review of a PR or branch diff (tech-lead style). Use when the user asks for a code review, PR review, AI review, or wants code quality, architecture, bugs, and patterns reviewed.
Simplify changed code in a PR or branch for readability while preserving behavior. Use when the user asks to simplify code, reduce complexity, clean up a PR, or improve readability of recent changes.
Capture new project-specific learnings into context files. Runs during reviews or after debugging to evolve the project's skill knowledge base. Use when the thread reveals patterns, anti-patterns, conventions, or codebase gotchas that should be remembered.
Debug pipeline: investigate (prod or local) → fix-issues → scoped polish (deslop + code-simplify) → pattern-check → kestral-sync retroactive capture. Only invoked by the kstack subagent.
Capture the decision when a spike, prototype, or investigation concludes. Use when a prototype or spike wraps up, the user makes a go/no-go call after de-risking, or an investigation answers its question — prompts "what did you decide?" and writes the decision + rationale to the task tracker.
| name | documentation-update |
| kstack | true |
| description | Update project docs to match code changes. Use when adding docs, checking what a change requires, or syncing docs/skills/commands with code. |
Read the project's master doc index first; update it when adding/removing doc files. See context.md for project-specific doc locations, naming conventions, and the full documentation types table.
| # | Type | Update when |
|---|---|---|
| 1 | Long-form docs | New features, architecture, processes |
| 2 | README indexes | Adding/removing doc files |
| 3 | Diagrams | Adding/removing services, changing data flows |
| 4 | AI coding rules | New coding patterns, framework usage changes |
| 5 | AI agent skills | Skill workflow changes, new tools/patterns |
| 6 | Agent config | Adding/removing rules, skills, commands |
| 7 | Agent instructions | Modifying agent behavior, adding tools |
| 8 | Inline JSDoc | When signature alone doesn't convey intent |
| Change type | Required docs | Recommended docs |
|---|---|---|
| Infrastructure | Infrastructure docs + diagrams | Master index, architecture summary |
| New feature | Feature/app docs | Master index, relevant folder README |
| Agent changes | Agent instruction files | Agent docs, architecture diagrams |
| Schema changes | N/A (codegen handles types) | App docs if user-facing |
| Database migration | N/A unless architecturally significant | Dev process docs for new patterns |
| New integration | Integration docs | Master index, integration list |
| Testing patterns | N/A | Testing docs if establishing new conventions |
| Dev workflow changes | Dev process docs | Commands/architecture summary |
| New coding convention | Rule file | Rules index |
| New AI skill/command | Skill/command file | Agent config index |
See context.md for project-specific paths for each category.
After completing work, reflect on whether skills or commands should be updated. Distinct from rule-evolution (coding conventions) — this covers agent workflow artifacts.
| Signal | Action |
|---|---|
| Skill workflow was wrong, confusing, or missed an edge case | Update the skill's SKILL.md |
| Command/skill produced errors or required workarounds | Update .agents/skills/<name>/SKILL.md |
| Had to deviate from a skill's instructions | Update the skill to match the correct path |
| Skill was hard to discover | Improve the description frontmatter |
| Skill/command missing for a workflow you did manually | Suggest creating one (user approval required) |
Propose changes before writing — one suggestion per artifact. Prefer editing over creating. Update AGENTS.md if
descriptions change.
camelCase.md in the correct docs/ subdirectory. Edit .d2 source (never .svg).docs/README.md (always), folder README, AGENTS.md (rules/skills/commands), CLAUDE.md (only
if architecture/commands changed).Read context.md and apply it as additional project-specific constraints layered on top of this
workflow. If it does not exist, skip this section.