plugins/clade/skills/retro/SKILL.md
Engineering retrospective — generates a data-driven report of development velocity, commit patterns, hotspots, and team insights from git history. Saves results for week-over-week comparison.
npx skillsauth add shenxingy/claude-code-kit retroInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This workflow runs directly in Codex. Do not launch the claude CLI or
delegate the workflow to Clade's MCP bridge.
Codex compatibility rules:
AGENTS.md files for repository instructions. If a project
has only CLAUDE.md, treat it as legacy project guidance and read it too..clade/ (or ~/.clade/ for personal
state). Existing legacy Claude state may be read for migration, but do not
create new vendor-specific state./skill-name reference means the corresponding Codex $skill-name skill,
or the same workflow invoked naturally when explicit skill invocation is not
available.<plugin-root>/... are relative to the installed Clade plugin
containing this SKILL.md; resolve that root before invoking a helper.You are the Retro skill. You generate a data-driven engineering retrospective from git history.
/retro → last 7 days (default)/retro 24h → last 24 hours/retro 14d → last 14 days/retro 30d → last 30 days/retro compare → compare this period vs previous same-length period# Time window setup
SINCE="7 days ago" # adjust based on arg
# Commit overview
git log --since="$SINCE" --oneline
git log --since="$SINCE" --format="%ae" | sort | uniq -c | sort -rn # per-author
# Volume metrics
git log --since="$SINCE" --numstat --format="" | \
awk 'NF==3 {add+=$1; del+=$2} END {print "+" add " -" del " lines"}'
# Commit timing (hour of day distribution)
git log --since="$SINCE" --format="%ad" --date=format:"%H" | sort | uniq -c
# Hotspot files (most changed)
git log --since="$SINCE" --name-only --format="" | sort | uniq -c | sort -rn | head -10
# Commit type breakdown (feat/fix/refactor/test/chore/docs)
git log --since="$SINCE" --oneline | \
grep -oP '^[a-f0-9]+ \K(feat|fix|refactor|test|chore|docs|perf|ci|build)' | \
sort | uniq -c | sort -rn
# Largest PRs / biggest changes
git log --since="$SINCE" --format="%H %s" | while read hash msg; do
lines=$(git show --stat "$hash" | tail -1 | grep -oP '\d+ insertion' | grep -oP '\d+')
echo "${lines:-0} $hash $msg"
done | sort -rn | head -5
| Metric | Value | |---|---| | Total commits | N | | Active days | N / period_days | | Lines added | +N | | Lines removed | -N | | Net LOC change | ±N | | Unique files changed | N | | Fix ratio | fix_commits / total_commits % | | Test commits | test_commits / total_commits % |
Flags:
Detect work sessions using 45-minute gap threshold between commits:
git log --since="$SINCE" --format="%at" | sort -n | python3 -c "
import sys
times = [int(l) for l in sys.stdin if l.strip()]
if not times: exit()
sessions = []
start = times[0]
prev = times[0]
for t in times[1:]:
if t - prev > 2700: # 45-min gap = new session
sessions.append((start, prev))
start = t
prev = t
sessions.append((start, prev))
for s, e in sessions:
dur = (e - s) // 60
label = 'deep' if dur >= 50 else ('medium' if dur >= 20 else 'micro')
print(f'{dur}min {label}')
"
Show:
Work sessions: N total
Deep (50+ min): N — sustained focus
Medium (20-50 min): N
Micro (<20 min): N — quick fixes / reviews
Hourly distribution (ASCII histogram):
Commits by hour:
00-06 ██ 3
06-12 ████████ 12
12-18 ████████████ 18
18-24 ██████ 9
Peak: 12:00-15:00
Type breakdown (bar chart):
feat ████████████ 15
fix ████████ 10 ← if >40%, flag
refactor ████ 5
test ██ 3
docs █ 2
chore █████ 6
Top 10 most-changed files:
12 src/api/auth.ts ← churn hotspot if >5 changes
8 src/components/Table.tsx
5 PROGRESS.md
...
Flag files changed 5+ times in the period as churn hotspots — they may need refactoring or clearer ownership.
Find the biggest single change (by LOC or conceptual scope):
git log --since="$SINCE" --format="%H %s" | head -20
Pick the one commit that represents the most significant user-visible change. Display:
🚀 Ship of the week: feat(auth): add OAuth2 Google login (abc1234)
+847 -123 lines across 8 files
compare flag or ≥ 14d range)Compare this period vs the equivalent previous period:
This period Previous Δ
Commits 23 18 +28% ↑
LOC added +1,240 +890 +39% ↑
Fix ratio 35% 48% -13% ↓ (fewer bugs)
Active days 6 5 +1 ↑
Save a JSON snapshot for future comparisons:
mkdir -p .context/retros
# write JSON with metrics to .context/retros/YYYY-MM-DD.json
Lead with a 1-sentence tweetable summary, then the full report.
══════════════════════════════════════════════════════
RETRO: [project] — [date range]
══════════════════════════════════════════════════════
TL;DR: [one sentence — e.g., "Solid shipping week: 23 commits, OAuth shipped,
fix rate dropped to 35% (down from 48% last week)."]
Metrics: [table from Step 2]
Sessions: [from Step 3]
Patterns: [commit timing + type breakdown]
Hotspots: [top files]
Ship of week: [Step 6]
Trends: [if applicable]
What went well:
- [specific example from git log, not generic praise]
- ...
What to improve:
- [specific pattern, e.g., "3 late-night commits that each needed a follow-up fix — try morning reviews"]
- ...
Next week focus: [1-3 concrete suggestions based on the data]
══════════════════════════════════════════════════════
.context/retros//retro 14d)development
Orchestrate a fleet of parallel `codex exec` workers with you (Claude Code) as the supervisor — spawn one per isolated git worktree, dispatch headless, verify each INDEPENDENTLY, PR/merge. The manual "codex-ultracode" pattern for fanning out real implementation, research, or review work onto Codex. Bakes in the hard gotchas (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers on — orchestrate codex, codex workers, codex fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (use the `second-opinion-codex` agent), NOT for web-UI worker decomposition (use `/orchestrate`).
development
Create and manage git worktrees for parallel Codex sessions
development
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
documentation
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)