Agent skill
documentation-updates
Update documentation based on lessons learned. Use after completing work to capture learnings and prevent future issues.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/documentation-updates
SKILL.md
Documentation Updates
Update documentation based on lessons learned from the conversation.
When to Use This Skill
Use this skill when:
- You made a mistake or misunderstanding that could have been prevented
- You discovered something that should be documented for future reference
- The user asks you to "reflect" on what happened
- After completing work where documentation gaps were discovered
Process
Momentarily pause any other actions to review the conversation and reflect on any mistakes or misunderstandings. Update any/all of the following as appropriate:
Files to Update
-
Project-level documentation:
AGENTS.mdin the current projectCLAUDE.mdin the current project- Any project-specific documentation
-
Global documentation:
- Global
AGENTS.md(~/.claude/AGENTS.mdor similar) - Global
CLAUDE.md
- Global
-
Agent settings:
- Per-project settings (
.claude/settings.json,opencode.json) - Global settings (
~/.config/opencode/opencode.json,~/.claude/settings.json)
- Per-project settings (
-
Other project documentation:
- README.md
- Design documents
- Architecture guides
What to Document
- Common pitfalls encountered and how to avoid them
- Important constraints or requirements discovered
- Useful patterns or approaches found effective
- Mistakes made and what should have been done differently
- Configuration or setup nuances
Important Rule
Do NOT resume ANY previous actions until the user is satisfied that the docs have been appropriately updated.
Output
After updating documentation:
- List the files that were modified
- Summarize the changes made
- Confirm with the user that the updates are adequate
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?