cs-skill-retro
Grade the agent setup from real local session history — rubric-scored, evidence-gated, rendered as one local shareable report.. Slash command for Claude Code, Codex CLI, Gemini CLI.
Install
Copy this folder into your Claude Code project (needs Node.js):
curl -fsSL --create-dirs -o .claude/commands/cs-skill-retro.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/docs/commands/cs-skill-retro.mdOr install it for every project:
curl -fsSL --create-dirs -o ~/.claude/commands/cs-skill-retro.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/docs/commands/cs-skill-retro.mdFile content
Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗
---
title: "/cs-skill-retro — Slash Command for AI Coding Agents"
description: "Grade the agent setup from real local session history — rubric-scored, evidence-gated, rendered as one local shareable report.. Slash command for Claude Code, Codex CLI, Gemini CLI."
---
# /cs-skill-retro
<div class="page-meta" markdown>
<span class="meta-badge">:material-console: Slash Command</span>
<span class="meta-badge">:material-github: <a href="https://github.com/alirezarezvani/2-claude-skills/tree/main/engineering/skill-retro/commands/cs-skill-retro.md">Source</a></span>
</div>
Run the skill-retro pass with `$ARGUMENTS` (pass any `--repo`, `--days`,
`--harness`, `--include-subagents` flags through to the collector).
Load `engineering/skill-retro/skills/skill-retro/SKILL.md` and follow it
exactly. Summary of the contract:
## Pre-flight
1. **Confirm the target repo** — the report is scoped to one repo's skills and
the sessions that ran inside it. Run from that repo or pass `--repo`.
2. **State the privacy contract up front**: everything runs locally, transcripts
are redacted before they touch disk, nothing is uploaded.
3. Create the scratch dir: `RUN="$(mktemp -d "${TMPDIR:-/tmp}/skill-retro-XXXXXXXX")"`.
## Pipeline
```bash
python ${CLAUDE_PLUGIN_ROOT}/skills/skill-retro/scripts/collect_sessions.py --out "$RUN" $ARGUMENTS
python ${CLAUDE_PLUGIN_ROOT}/skills/skill-retro/scripts/score_aggregator.py --inventory "$RUN/inventory.json" --emit-template > "$RUN/session_scores.json"
# ... judge each transcript against scorers/, fill the template, draft suggestions ...
python ${CLAUDE_PLUGIN_ROOT}/skills/skill-retro/scripts/score_aggregator.py --inventory "$RUN/inventory.json" --scores "$RUN/session_scores.json" --suggestions "$RUN/suggestions.json"
python ${CLAUDE_PLUGIN_ROOT}/skills/skill-retro/scripts/render_report.py --report "$RUN/report.json"
```
If `sessions_sampled` is 0, stop and tell the user (suggest `--days 90`). If the
aggregator exits 4, fix what it names and re-run — never bypass it. Report every
non-zero exit code as a finding, not an error to swallow.
## Output
Tell the user, in text: the letter grade, the three top findings, how many
secrets were redacted, and the suggestion count (zero is a valid success — say
why per finding). Then link the local report:
- Your quality report: `file://$RUN/report.html` (print to PDF to share)
Finally ask: **"Want me to apply any of these proposed diffs to your real
skills?"** — and apply only on an explicit per-skill yes.