Skill Retro skill for Claude

Use when the user wants their skills graded from real session history, asks which installed skills actually work, or wants evidence-backed skill edits. Collects local sessions with collect_sessions.py, scores them against two rubrics and gates edits with score_aggregator.py.

Skill Retro SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

skill-retro — grade the agent setup from real sessions

Privacy is the contract. Everything runs locally. Transcripts are condensed, secret-redacted, chmod-0600, and never uploaded — the only shareable artifact is the report the user chooses to share.

Run from the repo being graded. Every artifact goes to one fresh scratch dir, never into the repo:

RUN="$(mktemp -d "${TMPDIR:-/tmp}/skill-retro-XXXXXXXX")"
python scripts/collect_sessions.py --out "$RUN"          # 1 — harvest + redact

1 — Collect. Scans Claude Code project-history JSONL and Codex rollouts, discovers repo skills (.claude/skills, .agents/skills, .codex/skills, plugin layouts), detects skill usage (Skill invocations, slash commands, SKILL.md paths), samples newest-first, and writes redacted transcripts. Read $RUN/inventory.json: if sessions_sampled is 0, tell the user there is nothing recent to score (suggest --days 90 or --repo) and stop. skills_found 0 is fine — the report becomes a case for creating skills. To grade headless runs (for example skill evals saved as stream-json), add --sessions-dir <dir>.

2 — Score. python scripts/score_aggregator.py --inventory "$RUN/inventory.json" --emit-template > "$RUN/session_scores.json". Read each transcript in $RUN/transcripts/ and judge it against both rubrics — scorers/efficiency.md and scorers/code-quality.md. Fill the template with a label from the rubric's table and a 1–3 sentence reason citing transcript specifics. Never invent numeric scores — the aggregator derives them from labels. Use insufficient_evidence when a transcript shows no judgeable diff. Also write 1–5 top_findings: the most impactful cross-session patterns, concrete and specific.

3 — Draft edits. Follow references/skill_edit_governance.md (the filing bar: would a competent agent with the current instructions still fail this way?). For each suggestion that clears it, write the full improved SKILL.md to $RUN/proposed/<skill>/SKILL.md, produce diff -u <current> <proposed>, and record it in $RUN/suggestions.json citing the sampled session id(s) that motivated it. Zero suggestions is a valid success — say why per finding. Never modify the user's real skill files in this step.

4 — Aggregate (the gate). python scripts/score_aggregator.py --inventory "$RUN/inventory.json" --scores "$RUN/session_scores.json" --suggestions "$RUN/suggestions.json". It validates labels against the rubric tables, refuses scores for unsampled sessions, requires substantive reasons, rejects suggestions that cite no scored session, computes overall = 0.5·efficiency + 0.35·code_quality + 0.15·skill_coverage, and writes report.json. Exit 4 is a stop: fix what it names and re-run; never hand-edit report.json around it.

5 — Render + tell. python scripts/render_report.py --report "$RUN/report.json" → one self-contained report.html (no JS, no CDN, dark-mode + print-to-PDF). Then tell the user the grade and the top findings in text, link file://$RUN/report.html, and ask whether to apply the proposed diffs to their real skills — apply only on an explicit yes, skill by skill.

Hard rules

  1. Never upload transcripts, session files, or any excerpt. Local only.
  2. Labels only, from the rubric tables. The aggregator owns all arithmetic.
  3. Every suggestion traces to a scored session — or it is dropped. Generic best practice is not evidence.
  4. Zero suggestions is a success, not a failure to report around.
  5. Exit 4 from the aggregator is a stop, not an error to swallow or bypass.
  6. Never touch the user's real skill files without an explicit per-skill yes; proposed edits live under $RUN/proposed/.
  7. A proposed skill edit follows write-a-skill discipline — trigger phrase in the description, smallest change that expresses the rule, replace over append.

Scripts

ScriptRoleExit codes
scripts/collect_sessions.pyHarvest Claude Code + Codex sessions, redact secrets, sample, inventory0 · 3 bad input
scripts/score_aggregator.pyValidate labels/reasons/suggestions, compute grade, emit report.json0 · 2 warnings · 3 bad input · 4 validation failure
scripts/render_report.pyreport.json → single self-contained report.html0 · 3 bad input

All support --help, --output json, and --sample (no real history needed).

References and assets

How to install Skill Retro

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/skill-retro/skills/skill-retro#main ~/.claude/skills/skill-retro

Codex

npx degit alirezarezvani/claude-skills/engineering/skill-retro/skills/skill-retro#main ~/.codex/skills/skill-retro

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Skill Retro skill do?

Use when the user wants their skills graded from real session history, asks which installed skills actually work, or wants evidence-backed skill edits. Collects local sessions with collect_sessions.py, scores them against two rubrics and gates edits with score_aggregator.py.

+How do I install Skill Retro in Claude Code?

Copy the skill folder into ~/.claude/skills/skill-retro, for example with "npx degit alirezarezvani/claude-skills/engineering/skill-retro/skills/skill-retro#main ~/.claude/skills/skill-retro". Claude Code loads it automatically and uses it when a task matches.

+Does Skill Retro work with ChatGPT or Codex?

Yes. Skill Retro uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/skill-retro. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Skill Retro free?

Skill Retro is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Snowflake Development

    Use for Snowflake work: SQL, Dynamic Tables, Streams and Tasks, Cortex AI functions and agents, Snowpark Python, dbt on Snowflake, or…

    alirezarezvani/claude-skills★ 30k
  5. Spec To Repo

    Use when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea…

    alirezarezvani/claude-skills★ 30k
  6. Strict Api

    Use when the user says 'no hallucinations', 'verify APIs' or 'don't invent functions', or code depends on a library version you have not…

    alirezarezvani/claude-skills★ 30k
  7. Tc Tracker

    Use when tracking technical changes as records, or handing work between AI sessions with a change record.

    alirezarezvani/claude-skills★ 30k
  8. Tdd Guide

    Test-first development and test generation for Jest, Pytest, JUnit, Vitest or Mocha: red-green-refactor, fixtures and mocks, coverage gaps.

    alirezarezvani/claude-skills★ 30k
  9. Team Communications

    Use for any internal communication: 3P updates, weekly or status reports, newsletters, FAQs, incident reports, leadership updates ('write…

    alirezarezvani/claude-skills★ 30k

See all software development skills →

More skills from alirezarezvani

  1. Skill Security Auditor

    Use before installing any skill or plugin from an untrusted source, or when asked if a skill is safe.

    alirezarezvani/claude-skills★ 30k
  2. Skill Tester

    Use when authoring or auditing a skill in this ecosystem, before release.

    alirezarezvani/claude-skills★ 30k
  3. Skillopt Sleep

    Use when the user wants their Claude agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle,…

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.