# skill: /log **Location:** `custom-claude-skills/skills/log/SKILL.md` ## Purpose End-of-session logging. Captures key decisions, gotchas, open questions, and process notes into `memory/log/YYYY-MM-DD..md` for later reflection. Run before ending a session. ## Usage ``` /log ``` No arguments. Reviews the full conversation history automatically. ## How it works 1. Creates `memory/log/` if needed 2. Reviews the conversation and extracts: Summary, Decisions, Gotchas (tagged with `[topic]`), Open Questions, Key Context, Process Notes 3. Writes a structured log file — empty sections are omitted 4. Prunes old logs: deletes reflected logs older than `retention_days` (default 7), warns about unreflected logs older than `warn_unreflected_days` (default 14) ## Part of the knowledge pipeline `/log` → `/reflect-logs` → `/distill-best-practices` Raw session logs are input for `/reflect-logs`, which routes entries into topic memory files. ## Gotchas - Trivial sessions can be skipped — the skill says so if nothing worth logging happened - `[topic]` tags on gotchas should match existing memory file topics for routing by `/reflect-logs`