documentation-updates
Update documentation based on lessons learned. Use after completing work to capture learnings and prevent future issues.
SKILL.md.claude/skills/documentation-updates/SKILL.md
GitHubDocumentation Updates
Record knowledge where future readers will naturally look for it, without turning instruction files into a transcript or catch-all memory store.
Research reports
Store durable research, investigation, audit, and comparison reports under
docs/research/ relative to the current repository root by default. Defer to a
location specified by the user, the repository, or a focused workflow.
Workflow
- Identify the durable lesson and who needs it.
- Find the authoritative home: nearby code or tests, project documentation,
an applicable agent rule, a focused skill, or the project's task/memory
system. For agent rules, prefer
AGENTS.mdoverCLAUDE.md, and the shared global rules file (e.g.~/.agents/AGENTS.md) over any single agent's global file, so all agents stay in parity. Use an agent-specific file only for that agent's own features. - Update the smallest relevant source. Link to existing detail rather than duplicating it.
- Check for conflicting or stale guidance and update it in the same scope.
- Validate examples, commands, links, and any generated or mirrored files.
- Summarize what changed and why.
Include
- non-obvious constraints and operational gotchas;
- decisions that remain true beyond the current session;
- reliable recovery or verification procedures; and
- changed user-facing behavior that belongs in product documentation.
Exclude
- ordinary facts visible from the codebase;
- chronological work logs better suited to issues or comments;
- credentials, personal data, or confidential context;
- speculative rules based on a single unexplained failure; and
- global guidance when the lesson is project-specific.
Do not block unrelated work for a documentation review unless the user asked for an approval checkpoint or the documentation is required for safe use.