Update project reference docs (AGENTS.md, CLAUDE.md) with non-obvious learnings from the current session. Use at session end, after solving tricky problems, or when new CLI commands/features were added. Triggers on "/retro", "update docs with learnings", "save what we learned", or proactively at session end.
Capture non-obvious learnings from this session in the project's existing reference docs. Prefer the single most canonical destination for each learning, and skip updates when the right doc does not already exist.
Only update docs that already exist. Never create new reference docs during /retro.
AGENTS.md, CLAUDE.md, README.mddocs/system/OPERATIONS.md, docs/system/ARCHITECTURE.md, docs/system/FEATURES.mddocs/project/ROADMAP.md, docs/project/VISION.mdChoose exactly one primary destination per learning. Avoid duplicate updates across multiple docs unless the user explicitly asks for that.
AGENTS.md or CLAUDE.md (prefer AGENTS.md)README.mddocs/system/OPERATIONS.mddocs/system/ARCHITECTURE.mddocs/system/FEATURES.mddocs/project/ROADMAP.mddocs/project/VISION.md or the matching existing policy docIf the best-fit doc is missing, fall back to the closest existing root doc only when the learning still belongs there. Otherwise skip it.
Inventory existing ref docs — check which eligible target files actually exist in the current project.
Identify learnings — from session context, list candidates. Apply the "would this save the next agent 5+ minutes?" filter. Discard the rest.
Route each learning to one canonical doc using the routing guide above. Prefer the most specific existing doc, not the most convenient one.
Use the smallest safe edit.
For gotchas in agent docs, match numbering, bold-key style, and indentation exactly. The standard format is:
N. **Bold Key**: One-line explanation with specific details.
If no gotchas section exists, add ## Implementation Gotchas before appending.
For commands, features, roadmap items, or architecture tables, update only the smallest relevant section. Do not reorganize unrelated content.
Present the diff — group the preview by file, show exactly what will change, and wait for approval before writing.
docs/system/* or docs/project/* files during /retro.// added by agent or timestamps. The git log is the audit trail.--legacy-peer-deps with npm install" not "npm install may need flags."/retro or explicit request to capture learningsFour knowledge-capture skills, distinguished by scope and timing:
handoff — produces a session summary for a fresh instance. Different output: this skill routes facts into existing reference files; that one writes a fresh summary doc.compound-docs — write a categorized solution document. Use when the learning is a confirmed end-to-end solution with reproducible code, not a one-line operational fact.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer