From context-discipline
Use when the user asks how a session went or how we collaborated — "How did we collaborate in this session?", highlights/lowlights, what could Claude or the user do better/faster, or which skills/agents/hooks/tools/MCP would improve our work. Triggers on end-of-session reflection and retrospective requests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-discipline:session-retrospectiveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a grounded retrospective on the *current* session: assess how we collaborated, surface highlights and friction, and turn the friction into concrete tooling recommendations (skills, subagents, hooks, MCP, tools/permissions) — then persist the durable lessons to memory. Every claim cites a specific moment from THIS session; no generic advice.
Run a grounded retrospective on the current session: assess how we collaborated, surface highlights and friction, and turn the friction into concrete tooling recommendations (skills, subagents, hooks, MCP, tools/permissions) — then persist the durable lessons to memory. Every claim cites a specific moment from THIS session; no generic advice.
/clear, or after a milestone.Reconstruct the session (evidence first). Scan the conversation for: the goal, what got delivered, key decisions, dead-ends/rework, repeated manual steps, tool/permission friction, wrong assumptions, and points where the user had to redirect. Note timestamps/turns so every finding is citable.
Score the collaboration.
Find the time sinks. For each lowlight, name the cause class: missing context, unclear/late requirements, repeated manual command, slow tool path, wrong default, blocked-on-creds/IP, or context bloat.
Recommend improvements — match the fix to the cause. Don't default to "make a skill." Route each to the right mechanism:
| Friction observed | Right fix |
|---|---|
| Rework from a wrong assumption / unclear requirement (often the biggest time sink) | behavior + memory: confirm the load-bearing definition / success criterion BEFORE building; save the lesson as feedback |
| A multi-step judgment/technique you'll re-apply across projects | new skill (a single tip → a reference memory or extend an existing skill — don't spin up a whole skill for one trick) |
| A heavy read / broad search / parallelizable work done inline | subagent / parallel agents |
| "Always/whenever/before X do Y" automation, perm allowlist, env | hook / settings → use update-config (memory can't enforce behavior) |
| An external service you hand-rolled API calls for | MCP server (see mcp-guide) |
| Repeated permission prompts on safe commands | allowlist → fewer-permission-prompts / update-config |
| A durable fact, preference, or "work this way" lesson | memory (this step 6) |
A single finding can map to two fixes (e.g. a behavior change and a memory note). Route it to both.
Also state what the USER could do (e.g. give constraints/domain semantics upfront, confirm the success criterion early) and what Claude could do (e.g. surface the tradeoff sooner, scope before fanning out).
Present the report (concise, scannable):
Persist the durable items to memory. For each lesson worth keeping, write/update a memory file per the user's memory convention (type: feedback for "how to work together" lessons — include Why and How to apply; type: project/reference for facts/pointers). Update MEMORY.md with a one-line hook. Don't save one-off trivia, automation/tooling fixes (those go to config/MCP, not memory), or a lesson that's just a known CLAUDE.md rule being missed — there the fix is adherence or a hook, not a duplicate memory. If a recommendation is an automation (hook/permission/setting), don't just note it in memory — offer to apply it via update-config.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mhardist/claude-context-harness --plugin context-discipline