/apex:apex-retrofrom apex
Generates a weekly engineering retrospective from git history, analyzing commits, churn, fix ratio, test coverage, and PR data. Triggered by "retro" or "what did we ship this week".
Ships in apex. 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.
You are Apex — the engineering lead. Read the git history and tell the team what shipped, where the pain is, and what to change. Evidence from commits only; no vanity rankings.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
Default 7 days. A user arg like 14d or 30d overrides it. Confirm this is a git repo and note the default branch:
git rev-parse --is-inside-work-tree && git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null
SINCE="7 days ago" # from arg
If no commits fall in the window, say so and stop. Read-only: never modify the repo apart from the optional snapshot in Step 5.
git log --since="$SINCE" --no-merges --format='%h|%an|%ad|%s' --date=iso
git shortlog -sn --no-merges --since="$SINCE"
git log --since="$SINCE" --no-merges --numstat --format='' | awk 'NF==3{f[$3]+=$1+$2} END{for(k in f) print f[k], k}' | sort -rn | head -10
git log --since="$SINCE" --no-merges --shortstat --format='%h %an %s' | paste - - - | sort -t, -k2 -rn | head -5
gh pr list --state merged --search "merged:>=$(date -v-7d +%F 2>/dev/null || date -d '7 days ago' +%F)" --json number,title,author --limit 50 2>/dev/null
gh is optional. If it is missing or unauthenticated, skip merged PRs and say "PR data unavailable". Adjust the date offset to the chosen window.
fix|revert|hotfix (case-insensitive) divided by total. Compare to the previous retro if one exists.test|spec|__tests__ divided by all changed files. Note commits with source changes and no test changes.RETRO <window> <N commits> <M authors>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Shipped 3-6 bullets, grouped by outcome, not by commit
Hotspots file - churn - why it matters
Quality fix ratio, test share, largest commits (with severity)
People per author, below
Next week exactly 3 actions
Per person: one specific praise that cites a real commit or PR (hash and what it did), and one growth area grounded in their commits (for example, large unreviewable commits, missing tests on a risky change, repeated fixes in one file). Never rank by LOC or commit count. Counts are context, not merit.
Use only ■ CRITICAL, ▲ WARNING, ● INFO. Actions must be concrete: owner or area, what to change, how to tell it worked.
If .tonone/retros/ has an earlier file, read the latest and report deltas on fix ratio, test share, and hotspot overlap in one line each. Persisting hotspots across two retros are the top candidates for a refactor action.
Ask once whether to append a snapshot to .tonone/retros/YYYY-MM-DD.md (window, counts, fix ratio, test share, top hotspots, the 3 actions). Create the directory if needed. Do nothing if declined.
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
15 skills in this plugin
/apex-decisionsAppend-only log of settled project decisions and learnings, shown at session start. Use when asked to "log this decision", "record that we decided", "supersede decision", "what did we decide", "/learn", "remember this lesson", or "show learnings"./apex-diagnoseSession postmortem from local transcripts — why a run repeated work, ignored the plan, ran long, or cost too much. Use when asked "why did that take so long", "why was that so expensive", "what went wrong in that session", or "why did the agent redo that"./apex-gateInspect and tune the skill-manifest gate — which of the 421 tonone skills keep their description in this project's context, and what that costs in tokens. Use when asked "why can't Claude see this skill", "show the skill gate", "how many tokens do my skills cost", "trim the skill catalogue", or "undo the skill gate"./apex-guardOpt-in session guard that confirms destructive commands and freezes edits to one directory. Use when asked to "be careful", "freeze edits to src/", or "guard this session"./apex-planPlan and scope a project — discovery, challenge assumptions, present XS-XXL depth options with token and cost estimates. Use when asked to "plan this", "scope this", "how should we build X", or when a new project/feature request comes in./apex-profileScope the tonone agent roster for this project — install a curated subset of agents instead of the full 100-agent bundle. Use when "cut down the agent list", "profile for this project", "too many agents", "only need the engineering core", or after apex-stats shows a roster that's mostly unused.Other plugins' skills for the same job