/grey-matter:retrofrom grey-matter
Conduct a retrospective on a coding session and propose proportionate environment improvements, classified mechanical vs judgement. Use when a session ends, after a build that went sideways, or when wrap-session reaches its retro step.
Ships in grey-matter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user has asked for a retrospective. You are suggesting improvements to the coding agent's environment to improve future runs.
Call the Skill tool with writing-for-agents for the writing style guide.
Read the primary sources for the session the user specifies (default: the current one). This may mean searching session logs on this machine; where logs aren't reachable, work from the session the user points at. Use an independent reader when the decision is consequential or the available trace leaves a material self-observation gap, and only when delegation is authorized and available. Otherwise inspect the relevant source artifacts yourself and state the evidence limits; an independent report is not proof of completeness.
Use one compact coverage statement to identify the corpus (with trace/file references when available) and inspected scope, sampling or extraction limits, truncated output and focused rereads, and areas left unverified. If a reference is unavailable, report that as a coverage gap. If a tool result truncates, reread the relevant slice or name the remaining gap. Focused rereads are enough; do not replay the entire trace just to claim completeness or infer completeness from a nonempty subagent report.
Look for candidates for improvement in these categories.
Navigation: how easy was it for the agent to find the right files? Are there hidden dependencies between files? Would a navigation pointer make it easier? Use when the session took a long time to find a piece of information.
Automated checks: are there automated checks that could catch errors the agent made? Linting, typing, tests, filesystem linters? Read the repo's own check command first (its package.json/build-tool lint/check scripts, its CI workflow), so a check that already exists but sits unwired or silently broken is the finding, not a reinvention. A repo with no runnable lint/typecheck/test command is itself a finding. Gating a stage with it is a separate, rarer finding: only for a key area that passes the admission rules in local gates. Time existing Git hooks and checks; a slow commit or push, or a check over its stage budget, is a finding too. Use when the agent made a mistake an automated check could have caught, the repo has no check command, or its Git hooks are slow.
Coding standards: should the reviewer agent be given a new rule to enforce? Should an existing rule be removed or clarified? Classify the violation first: a mechanical one (a fixed syntactic pattern, a banned API, an import shape, a file-location rule) gets a deterministic check, full stop: a custom rule in the repo's own linter or check script, run on demand; admit it to a stage only when it passes local gates. Default to building the check over writing the rule. Reserve CODING_STANDARDS.md for genuine judgement calls (cross-file consistency, "matches the surrounding style," anything no guardrail could ever substitute for). Use when the reviewer agent failed to catch a mistake.
Global AGENTS.md: are there any steering instructions that should be moved to coding standards (or automated checks) instead? Use when the AGENTS.md file is particularly large, in the repo OR the user's global scope.
Cumulative concentration / erosion: inspect whether repeated tickets have piled lines or cyclomatic/cognitive complexity into a single file or function (e.g., multi-thousand-LOC modules or high-complexity hotspots) even though each individual diff passed review. Use when file sizes or complexity concentrate faster than module boundaries grow; propose a mechanical ceiling/linter or a scoped decomposition ticket.
Tool economy: did the agent make expensive tool calls that could be streamlined? Is there any custom tooling (CLI's, MCP's) that is particularly token-inefficient? Use when the agent made an expensive tool call.
No-ops: look for instructions in steering files that don't modify the agent's behavior. Use when the steering files are large and unwieldy.
Information access: look for opportunities to increase the agent's access to information. Teeing dev server logs, readonly access to third-party services. Use when a crucial piece of information was not available to the agent.
Keep the evidence and status distinct: an observed defect is what the trace or source
shows; a corrected verification gap is what the check was missing and how it was resolved;
an already-landed repair with an existing regression is repaired work; a remaining
recommendation is work not yet done. Inspecting a test file is source inspection, not a
fresh test result. Say not run unless the check actually ran; only report success from
complete execution evidence, following local-gates.
Scenario fixtures for the report:
not run; make no fresh test success claim.Before choosing an intervention, classify what the evidence shows: missing guidance; existing guidance that was not followed; a missing execution path for an existing rule; or an observed syntactic/data-contract defect. Use the relevant skill's judgment criteria for contextual decisions such as ownership or retention. For a demonstrated contract defect, reuse the owning validator or narrowly extend its existing check. When the class is unclear, inspect the failure and current workflow first. Prefer the smallest intervention that closes the evidenced gap; do not turn one incident into a global rule, hook, or policy engine. For review-fix and qualification/debugging loops, use the convergence reference when repeated rounds or growing scope make progress unclear.
Present these candidates to the user, in order of severity.
File the remaining candidates the user accepts as tickets (see the issue-tracker doc). First check existing tickets for overlap (tkt query): when a candidate matches or extends an open ticket, update that ticket rather than filing a near-duplicate. Do not create implementation work for a repair already landed and covered by an existing regression. Only genuinely new, unimplemented work becomes a new ticket.
Retro grooms the environment. To groom the ticket board in the same session wrap-up (make open tickets current, capture untracked work, set the frontier ordering), pair this with reconcile-tickets. Both run at session end; orient is the session-start bookend that picks up where they leave off.
Remember that all work goes through two stages: implementation and review. The implementation agent has the most context pressure. They are responsible for exploration, writing code, and debugging failures.
The review agent has the least context pressure, it receives a diff, so no exploration needed. It often does not need to write code or debug.
This means that the review agent should be responsible for imposing coding standards, not the implementation agent.
AGENTS.md: the primary agent-instructions file, pushed to the context window of any agent working in this repo. Use it incredibly sparingly, usually only for navigation pointers to other files. CLAUDE.md just points to AGENTS.md, so every harness reads one source; keep the real content in AGENTS.md.CODING_STANDARDS.md: read during review, not implementation. Add navigation pointers to docs folders if the standards file gets more than 1,000 lines long.writing-for-agents skill.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smileynet/grey-matter --plugin grey-matterOther plugins' skills for the same job
51 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands".