Documentation 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.md over CLAUDE.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. The shared global rules file
loads into every session, so it takes only rules for almost any task.
Guidance for one kind of work, such as writing skills or agent config,
goes in that work's skill. If an agent needed that skill and didn't load
it, fix the skill's description so it triggers; don't copy the rule into
an always-loaded file.
- 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.