[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FNN9X8EQRZXDTKDTFXR6N5":3,"skill-same:01M6FNN9X8EQRZXDTKDTFXR6N5":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6FNN9X8EQRZXDTKDTFXR6N5","retro",null,"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.","shenxingy\u002FClade","shenxingy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89829751?v=4","01M6CQXHTV3WQZJMG0JXD93MEK","Xingyu (Alex) Shen","01M6CQXHYCTGPJ5HD8Z7MD4Q5P",10,"MIT","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fretro\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"history","data-driven","for","insights","comparison","driven","velocity","patterns","results","commit","team","data","engineering","git","report","development","retrospective","2026-11-10 10:12:30",false,"---\nname: retro\ndescription: \"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.\"\n---\n\n# Clade for Codex\n\nThis workflow runs **directly in Codex**. Do not launch the `claude` CLI or\ndelegate the workflow to Clade's MCP bridge.\n\nCodex compatibility rules:\n\n- Plugin skills are namespaced. Invoke this workflow explicitly as\n  `$clade:retro`; a bare `$name` does not select the installed Clade plugin.\n- Read the nearest `AGENTS.md` files for repository instructions. If a project\n  has only `CLAUDE.md`, treat it as legacy project guidance and read it too.\n- Store new Clade working state under `.clade\u002F` (or `~\u002F.clade\u002F` for personal\n  state). Existing legacy Claude state may be read for migration, but do not\n  create new vendor-specific state.\n- A `\u002Fskill-name` reference means the corresponding Codex\n  `$clade:skill-name` plugin skill, or the same workflow invoked naturally when\n  explicit skill invocation is not available.\n- Use Codex web, file, shell, image, and subagent capabilities when the source\n  workflow names a vendor-specific tool. If a capability is unavailable, use\n  the documented fallback instead of spawning another agent CLI.\n- Paths such as `\u003Cplugin-root>\u002F...` are relative to the installed Clade plugin\n  containing this `SKILL.md`; resolve that root before invoking a helper.\n\n## Canonical Clade workflow\n\nYou are the Retro skill. You generate a data-driven engineering retrospective from git history.\n\n## Parse command\n\n- `\u002Fretro` → last 7 days (default)\n- `\u002Fretro 24h` → last 24 hours\n- `\u002Fretro 14d` → last 14 days\n- `\u002Fretro 30d` → last 30 days\n- `\u002Fretro compare` → compare this period vs previous same-length period\n\n---\n\n## Step 1: Gather raw data (run in parallel)\n\n```bash\n# Time window setup\nSINCE=\"7 days ago\"   # adjust based on arg\n\n# Commit overview\ngit log --since=\"$SINCE\" --oneline\ngit log --since=\"$SINCE\" --format=\"%ae\" | sort | uniq -c | sort -rn   # per-author\n\n# Volume metrics\ngit log --since=\"$SINCE\" --numstat --format=\"\" | \\\n  awk 'NF==3 {add+=$1; del+=$2} END {print \"+\" add \" -\" del \" lines\"}'\n\n# Commit timing (hour of day distribution)\ngit log --since=\"$SINCE\" --format=\"%ad\" --date=format:\"%H\" | sort | uniq -c\n\n# Hotspot files (most changed)\ngit log --since=\"$SINCE\" --name-only --format=\"\" | sort | uniq -c | sort -rn | head -10\n\n# Commit type breakdown (feat\u002Ffix\u002Frefactor\u002Ftest\u002Fchore\u002Fdocs)\ngit log --since=\"$SINCE\" --oneline | \\\n  grep -oP '^[a-f0-9]+ \\K(feat|fix|refactor|test|chore|docs|perf|ci|build)' | \\\n  sort | uniq -c | sort -rn\n\n# Largest PRs \u002F biggest changes\ngit log --since=\"$SINCE\" --format=\"%H %s\" | while read hash msg; do\n  lines=$(git show --stat \"$hash\" | tail -1 | grep -oP '\\d+ insertion' | grep -oP '\\d+')\n  echo \"${lines:-0} $hash $msg\"\ndone | sort -rn | head -5\n```\n\n---\n\n## Step 2: Compute metrics table\n\n| Metric | Value |\n|---|---|\n| Total commits | N |\n| Active days | N \u002F period_days |\n| Lines added | +N |\n| Lines removed | -N |\n| Net LOC change | ±N |\n| Unique files changed | N |\n| Fix ratio | fix_commits \u002F total_commits % |\n| Test commits | test_commits \u002F total_commits % |\n\n**Flags:**\n- Fix ratio > 50%: ⚠ High bug rate — more fixes than features\n- Test ratio \u003C 10%: ⚠ Low test coverage investment\n\n---\n\n## Step 2b: Outcome signals — did the merged work stick?\n\nEverything above counts volume, and volume is an input: many commits and merged\nPRs say nothing about whether the work held. Score the outcome too. Pass the\nretro window in days (`24h` → `1`, `7d` → `7`, `14d` → `14`, `30d` → `30`):\n\n```bash\npython3 \u003Cplugin-root>\u002Fskills\u002Fretro\u002Fscripts\u002Foutcome-scorecard.py --since \u003Cdays> --tokens\n```\n\nIt finds every repository where you merged a PR in the window (`gh search prs`)\nand gives each of your merged PRs one status: **reverted** (a later commit or PR\nreverts it by sha, exact title, or `#N`, at any time up to now), **fixed-forward**\n(a later fix-type PR by anyone into the same base branch, within 7 days, shares a\nnon-bookkeeping file with it), **settling** (merged under 7 days ago, never\ncounted as kept) or **kept**. The 7-day `--settle` bounds only fix-forwards and\nwhich PRs count as settled; a revert counts whenever it landed. Your own PRs\nthat revert another PR are listed but not rated, even when that PR merged before\nthe window. It also\nreports review load, and with `--tokens` the host's Codex tokens per\nmerged PR, per settled PR and per kept PR.\n\n- **Its population is not the Metrics'.** Steps 1–2 read this repository's\n  `git log`, every author; this step scores YOUR PRs across every repository\n  you merged into. Write the population on the Outcomes line itself: author,\n  number of repositories, window (the script's first line states all three).\n  To score only this repository instead, add\n  `--repo \"$(gh repo view --json nameWithOwner -q .nameWithOwner)\"`; the\n  script then warns that the host-wide tokens overstate that repository's\n  cost per PR.\n- With a window of 7 days or less, no PR has had 7 days to settle, so the\n  script prints no kept rate. Young PRs can still be listed as reverted or\n  fixed-forward; report those counts, and \"kept rate: not yet measurable\",\n  never 0% or 100%. For a rate, run it once more with `--since 14`, which\n  scores the week before.\n- If the script says NOT MEASURED (gh missing or unauthenticated, script not\n  installed) or names a repository it could not read, report Outcomes as not\n  measured, with the reason. Never write zeros in that case.\n\n---\n\n## Step 2c: What the PRs could not verify — candidate TODO entries\n\nEvery PR body that `\u002Fcreate-pr`, `\u002Fdelivery` and `\u002Fship` write, and any\nrepository PR template that adopted them, carries two fixed lines:\n`Review depth: none | skimmed | read-in-full` and\n`Could not verify: none | \u003Citem>; \u003Citem>`. One unverified item is a caveat. The\nsame item in PR after PR is a capability the repository lacks, and that list is\nthe roadmap. Roll them up for this repository over the same window in days as\nStep 2b:\n\n```bash\npython3 \u003Cplugin-root>\u002Fskills\u002Fretro\u002Fscripts\u002Fpr-verification-gaps.py --since \u003Cdays>\n```\n\nIt reads every PR merged into this repository in the window, by any author\n(`gh pr list`), groups the \"Could not verify\" items by their words, and prints\nthe top three that recur in 2 or more PRs as `- [ ]` candidate TODO entries,\nwith their PR numbers and reasons. It also counts review depth and checks each\nclaimed reading against the forge's reviews.\n\n- **Report only.** Show the candidates under \"Next week focus\". Do not write\n  TODO.md or any other file: which of them becomes work is the owner's call.\n- **Its population is this repository's merged PRs, any author**: the scope of\n  Steps 1–2, not Step 2b's. Put \"stated in N of M PRs\" on the Unverified line\n  itself. The PRs without the line are not counted as verified.\n- **Both lines are self-reported.** Report review depth as self-reported, and\n  name the PRs whose claimed reading no submitted review backs as questions,\n  not verdicts: a reader outside GitHub leaves no review there.\n- If a section says NOT MEASURED (no PR in the window states that line) or the\n  whole run does (gh missing or unauthenticated), report that with its reason.\n  Never write \"nothing unverified\" or zero recurring items in that case.\n\n---\n\n## Step 3: Work session analysis\n\nDetect work sessions using 45-minute gap threshold between commits:\n\n```bash\ngit log --since=\"$SINCE\" --format=\"%at\" | sort -n | python3 -c \"\nimport sys\ntimes = [int(l) for l in sys.stdin if l.strip()]\nif not times: exit()\nsessions = []\nstart = times[0]\nprev = times[0]\nfor t in times[1:]:\n    if t - prev > 2700:  # 45-min gap = new session\n        sessions.append((start, prev))\n        start = t\n    prev = t\nsessions.append((start, prev))\nfor s, e in sessions:\n    dur = (e - s) \u002F\u002F 60\n    label = 'deep' if dur >= 50 else ('medium' if dur >= 20 else 'micro')\n    print(f'{dur}min {label}')\n\"\n```\n\nShow:\n```\nWork sessions: N total\n  Deep (50+ min): N  — sustained focus\n  Medium (20-50 min): N\n  Micro (\u003C20 min): N  — quick fixes \u002F reviews\n```\n\n---\n\n## Step 4: Commit pattern analysis\n\n**Hourly distribution** (ASCII histogram):\n```\nCommits by hour:\n00-06  ██ 3\n06-12  ████████ 12\n12-18  ████████████ 18\n18-24  ██████ 9\nPeak: 12:00-15:00\n```\n\n**Type breakdown** (bar chart):\n```\nfeat      ████████████ 15\nfix       ████████ 10   ← if >40%, flag\nrefactor  ████ 5\ntest      ██ 3\ndocs      █ 2\nchore     █████ 6\n```\n\n---\n\n## Step 5: Hotspot analysis\n\nTop 10 most-changed files:\n```\n  12 src\u002Fapi\u002Fauth.ts         ← churn hotspot if >5 changes\n   8 src\u002Fcomponents\u002FTable.tsx\n   5 PROGRESS.md\n   ...\n```\n\nFlag files changed 5+ times in the period as **churn hotspots** — they may need refactoring or clearer ownership.\n\n---\n\n## Step 6: Ship of the week\n\nFind the biggest single change (by LOC or conceptual scope):\n```bash\ngit log --since=\"$SINCE\" --format=\"%H %s\" | head -20\n```\n\nPick the one commit that represents the most significant user-visible change. Display:\n```\n? Ship of the week: feat(auth): add OAuth2 Google login (abc1234)\n   +847 -123 lines across 8 files\n```\n\n---\n\n## Step 7: Week-over-week trends (if `compare` flag or ≥ 14d range)\n\nCompare this period vs the equivalent previous period:\n\n```\n                 This period    Previous    Δ\nCommits          23             18          +28%  ↑\nLOC added        +1,240         +890        +39%  ↑\nFix ratio        35%            48%         -13%  ↓ (fewer bugs)\nActive days      6              5           +1    ↑\n```\n\n---\n\n## Step 8: Save retro history\n\nSave a JSON snapshot for future comparisons:\n```bash\nmkdir -p .context\u002Fretros\n# write JSON with metrics to .context\u002Fretros\u002FYYYY-MM-DD.json, including the\n# Step 2b outcome totals (kept, settled, reverted, fixed-forward, settling) so\n# the next retro compares outcomes, not only volume, and the Step 2c rollup\n# (PRs stating each line, the recurring items with their PR counts, the\n# review-depth counts) so a recurring gap that stops recurring is visible\n```\n\n---\n\n## Step 9: Write the narrative\n\nLead with a 1-sentence tweetable summary, then the full report.\n\n```\n══════════════════════════════════════════════════════\nRETRO: [project] — [date range]\n══════════════════════════════════════════════════════\n\nTL;DR: [one sentence — e.g., \"Solid shipping week: 23 commits, OAuth shipped,\n        fix rate dropped to 35% (down from 48% last week).\"]\n\nMetrics:    [table from Step 2]\nOutcomes:   [from Step 2b, opening with its population — \"PRs by \u003Cauthor>,\n             N repositories, \u003Cwindow>\", which differs from the Metrics' scope —\n             then kept rate over SETTLED PRs (or \"not yet measurable\"), reverts,\n             fix-forwards (and how many shared a non-Markdown path), settling\n             count, review load (open→merge median and p90, share merged with no\n             review but the author's), tokens per kept PR. These are outcome\n             SIGNALS: fix-forward precision is unmeasured, tokens are host-wide\n             and not attributed per PR, and Codex\u002FKimi usage is not counted]\nUnverified: [from Step 2c, opening with \"stated in N of M PRs merged into\n             \u003Crepo>, \u003Cwindow>\"; the top recurring \"Could not verify\" items with\n             their PR counts (or NOT MEASURED, with its reason); review depth\n             counts, labelled self-reported, and the claims no forge review\n             backs]\nSessions:   [from Step 3]\nPatterns:   [commit timing + type breakdown]\nHotspots:   [top files]\nShip of week: [Step 6]\nTrends:     [if applicable]\n\nWhat went well:\n  - [specific example from git log or the Outcomes, not generic praise]\n  - ...\n\nWhat to improve:\n  - [specific pattern, e.g., \"3 late-night commits that each needed a follow-up fix — try morning reviews\"]\n  - ...\n\nNext week focus: [1-3 concrete suggestions based on the data; the Step 2c\n                  candidates go here as candidates, not as written TODOs]\n══════════════════════════════════════════════════════\n```\n\n---\n\n## Completion Status\n\n- ✅ **DONE** — retro report generated, history saved to `.context\u002Fretros\u002F`\n- ⚠ **DONE_WITH_CONCERNS** — limited git history for the period (fewer than 3 commits)\n- ❌ **BLOCKED** — not in a git repository\n- ❓ **NEEDS_CONTEXT** — specify a time range (e.g., `\u002Fretro 14d`)\n\n## Delivery completion\n\nIf this workflow changes files or external state:\n\n- Inspect the real final state before responding, including `git status` for a\n  repository task.\n- Never report `DONE` while task-owned changes are uncommitted. Use or continue\n  `$clade:delivery` and create a repository-compliant checkpoint or preserve\n  the work when committing is unavailable.\n- When the user request or trusted repository policy makes publication,\n  deployment, or live verification part of the task, do not silently downgrade\n  the result to local-only work.\n- If a required delivery transition lacks authority, credentials, a destination,\n  or reachable external state, report `BLOCKED` or `NEEDS_CONTEXT` rather than\n  appending a \"not committed\u002Fpushed\u002Fdeployed\" caveat after `DONE`.\n","# Clade for Codex\n\nThis workflow runs **directly in Codex**. Do not launch the `claude` CLI or\ndelegate the workflow to Clade's MCP bridge.\n\nCodex compatibility rules:\n\n- Plugin skills are namespaced. Invoke this workflow explicitly as\n  `$clade:retro`; a bare `$name` does not select the installed Clade plugin.\n- Read the nearest `AGENTS.md` files for repository instructions. If a project\n  has only `CLAUDE.md`, treat it as legacy project guidance and read it too.\n- Store new Clade working state under `.clade\u002F` (or `~\u002F.clade\u002F` for personal\n  state). Existing legacy Claude state may be read for migration, but do not\n  create new vendor-specific state.\n- A `\u002Fskill-name` reference means the corresponding Codex\n  `$clade:skill-name` plugin skill, or the same workflow invoked naturally when\n  explicit skill invocation is not available.\n- Use Codex web, file, shell, image, and subagent capabilities when the source\n  workflow names a vendor-specific tool. If a capability is unavailable, use\n  the documented fallback instead of spawning another agent CLI.\n- Paths such as `\u003Cplugin-root>\u002F...` are relative to the installed Clade plugin\n  containing this `SKILL.md`; resolve that root before invoking a helper.\n\n## Canonical Clade workflow\n\nYou are the Retro skill. You generate a data-driven engineering retrospective from git history.\n\n## Parse command\n\n- `\u002Fretro` → last 7 days (default)\n- `\u002Fretro 24h` → last 24 hours\n- `\u002Fretro 14d` → last 14 days\n- `\u002Fretro 30d` → last 30 days\n- `\u002Fretro compare` → compare this period vs previous same-length period\n\n---\n\n## Step 1: Gather raw data (run in parallel)\n\n```bash\n# Time window setup\nSINCE=\"7 days ago\"   # adjust based on arg\n\n# Commit overview\ngit log --since=\"$SINCE\" --oneline\ngit log --since=\"$SINCE\" --format=\"%ae\" | sort | uniq -c | sort -rn   # per-author\n\n# Volume metrics\ngit log --since=\"$SINCE\" --numstat --format=\"\" | \\\n  awk 'NF==3 {add+=$1; del+=$2} END {print \"+\" add \" -\" del \" lines\"}'\n\n# Commit timing (hour of day distribution)\ngit log --since=\"$SINCE\" --format=\"%ad\" --date=format:\"%H\" | sort | uniq -c\n\n# Hotspot files (most changed)\ngit log --since=\"$SINCE\" --name-only --format=\"\" | sort | uniq -c | sort -rn | head -10\n\n# Commit type breakdown (feat\u002Ffix\u002Frefactor\u002Ftest\u002Fchore\u002Fdocs)\ngit log --since=\"$SINCE\" --oneline | \\\n  grep -oP '^[a-f0-9]+ \\K(feat|fix|refactor|test|chore|docs|perf|ci|build)' | \\\n  sort | uniq -c | sort -rn\n\n# Largest PRs \u002F biggest changes\ngit log --since=\"$SINCE\" --format=\"%H %s\" | while read hash msg; do\n  lines=$(git show --stat \"$hash\" | tail -1 | grep -oP '\\d+ insertion' | grep -oP '\\d+')\n  echo \"${lines:-0} $hash $msg\"\ndone | sort -rn | head -5\n```\n\n---\n\n## Step 2: Compute metrics table\n\n| Metric | Value |\n|---|---|\n| Total commits | N |\n| Active days | N \u002F period_days |\n| Lines added | +N |\n| Lines removed | -N |\n| Net LOC change | ±N |\n| Unique files changed | N |\n| Fix ratio | fix_commits \u002F total_commits % |\n| Test commits | test_commits \u002F total_commits % |\n\n**Flags:**\n- Fix ratio > 50%: ⚠ High bug rate — more fixes than features\n- Test ratio \u003C 10%: ⚠ Low test coverage investment\n\n---\n\n## Step 2b: Outcome signals — did the merged work stick?\n\nEverything above counts volume, and volume is an input: many commits and merged\nPRs say nothing about whether the work held. Score the outcome too. Pass the\nretro window in days (`24h` → `1`, `7d` → `7`, `14d` → `14`, `30d` → `30`):\n\n```bash\npython3 \u003Cplugin-root>\u002Fskills\u002Fretro\u002Fscripts\u002Foutcome-scorecard.py --since \u003Cdays> --tokens\n```\n\nIt finds every repository where you merged a PR in the window (`gh search prs`)\nand gives each of your merged PRs one status: **reverted** (a later commit or PR\nreverts it by sha, exact title, or `#N`, at any time up to now), **fixed-forward**\n(a later fix-type PR by anyone into the same base branch, within 7 days, shares a\nnon-bookkeeping file with it), **settling** (merged under 7 days ago, never\ncounted as kept) or **kept**. The 7-day `--settle` bounds only fix-forwards and\nwhich PRs count as settled; a revert counts whenever it landed. Your own PRs\nthat revert another PR are listed but not rated, even when that PR merged before\nthe window. It also\nreports review load, and with `--tokens` the host's Codex tokens per\nmerged PR, per settled PR and per kept PR.\n\n- **Its population is not the Metrics'.** Steps 1–2 read this repository's\n  `git log`, every author; this step scores YOUR PRs across every repository\n  you merged into. Write the population on the Outcomes line itself: author,\n  number of repositories, window (the script's first line states all three).\n  To score only this repository instead, add\n  `--repo \"$(gh repo view --json nameWithOwner -q .nameWithOwner)\"`; the\n  script then warns that the host-wide tokens overstate that repository's\n  cost per PR.\n- With a window of 7 days or less, no PR has had 7 days to settle, so the\n  script prints no kept rate. Young PRs can still be listed as reverted or\n  fixed-forward; report those counts, and \"kept rate: not yet measurable\",\n  never 0% or 100%. For a rate, run it once more with `--since 14`, which\n  scores the week before.\n- If the script says NOT MEASURED (gh missing or unauthenticated, script not\n  installed) or names a repository it could not read, report Outcomes as not\n  measured, with the reason. Never write zeros in that case.\n\n---\n\n## Step 2c: What the PRs could not verify — candidate TODO entries\n\nEvery PR body that `\u002Fcreate-pr`, `\u002Fdelivery` and `\u002Fship` write, and any\nrepository PR template that adopted them, carries two fixed lines:\n`Review depth: none | skimmed | read-in-full` and\n`Could not verify: none | \u003Citem>; \u003Citem>`. One unverified item is a caveat. The\nsame item in PR after PR is a capability the repository lacks, and that list is\nthe roadmap. Roll them up for this repository over the same window in days as\nStep 2b:\n\n```bash\npython3 \u003Cplugin-root>\u002Fskills\u002Fretro\u002Fscripts\u002Fpr-verification-gaps.py --since \u003Cdays>\n```\n\nIt reads every PR merged into this repository in the window, by any author\n(`gh pr list`), groups the \"Could not verify\" items by their words, and prints\nthe top three that recur in 2 or more PRs as `- [ ]` candidate TODO entries,\nwith their PR numbers and reasons. It also counts review depth and checks each\nclaimed reading against the forge's reviews.\n\n- **Report only.** Show the candidates under \"Next week focus\". Do not write\n  TODO.md or any other file: which of them becomes work is the owner's call.\n- **Its population is this repository's merged PRs, any author**: the scope of\n  Steps 1–2, not Step 2b's. Put \"stated in N of M PRs\" on the Unverified line\n  itself. The PRs without the line are not counted as verified.\n- **Both lines are self-reported.** Report review depth as self-reported, and\n  name the PRs whose claimed reading no submitted review backs as questions,\n  not verdicts: a reader outside GitHub leaves no review there.\n- If a section says NOT MEASURED (no PR in the window states that line) or the\n  whole run does (gh missing or unauthenticated), report that with its reason.\n  Never write \"nothing unverified\" or zero recurring items in that case.\n\n---\n\n## Step 3: Work session analysis\n\nDetect work sessions using 45-minute gap threshold between commits:\n\n```bash\ngit log --since=\"$SINCE\" --format=\"%at\" | sort -n | python3 -c \"\nimport sys\ntimes = [int(l) for l in sys.stdin if l.strip()]\nif not times: exit()\nsessions = []\nstart = times[0]\nprev = times[0]\nfor t in times[1:]:\n    if t - prev > 2700:  # 45-min gap = new session\n        sessions.append((start, prev))\n        start = t\n    prev = t\nsessions.append((start, prev))\nfor s, e in sessions:\n    dur = (e - s) \u002F\u002F 60\n    label = 'deep' if dur >= 50 else ('medium' if dur >= 20 else 'micro')\n    print(f'{dur}min {label}')\n\"\n```\n\nShow:\n```\nWork sessions: N total\n  Deep (50+ min): N  — sustained focus\n  Medium (20-50 min): N\n  Micro (\u003C20 min): N  — quick fixes \u002F reviews\n```\n\n---\n\n## Step 4: Commit pattern analysis\n\n**Hourly distribution** (ASCII histogram):\n```\nCommits by hour:\n00-06  ██ 3\n06-12  ████████ 12\n12-18  ████████████ 18\n18-24  ██████ 9\nPeak: 12:00-15:00\n```\n\n**Type breakdown** (bar chart):\n```\nfeat      ████████████ 15\nfix       ████████ 10   ← if >40%, flag\nrefactor  ████ 5\ntest      ██ 3\ndocs      █ 2\nchore     █████ 6\n```\n\n---\n\n## Step 5: Hotspot analysis\n\nTop 10 most-changed files:\n```\n  12 src\u002Fapi\u002Fauth.ts         ← churn hotspot if >5 changes\n   8 src\u002Fcomponents\u002FTable.tsx\n   5 PROGRESS.md\n   ...\n```\n\nFlag files changed 5+ times in the period as **churn hotspots** — they may need refactoring or clearer ownership.\n\n---\n\n## Step 6: Ship of the week\n\nFind the biggest single change (by LOC or conceptual scope):\n```bash\ngit log --since=\"$SINCE\" --format=\"%H %s\" | head -20\n```\n\nPick the one commit that represents the most significant user-visible change. Display:\n```\n? Ship of the week: feat(auth): add OAuth2 Google login (abc1234)\n   +847 -123 lines across 8 files\n```\n\n---\n\n## Step 7: Week-over-week trends (if `compare` flag or ≥ 14d range)\n\nCompare this period vs the equivalent previous period:\n\n```\n                 This period    Previous    Δ\nCommits          23             18          +28%  ↑\nLOC added        +1,240         +890        +39%  ↑\nFix ratio        35%            48%         -13%  ↓ (fewer bugs)\nActive days      6              5           +1    ↑\n```\n\n---\n\n## Step 8: Save retro history\n\nSave a JSON snapshot for future comparisons:\n```bash\nmkdir -p .context\u002Fretros\n# write JSON with metrics to .context\u002Fretros\u002FYYYY-MM-DD.json, including the\n# Step 2b outcome totals (kept, settled, reverted, fixed-forward, settling) so\n# the next retro compares outcomes, not only volume, and the Step 2c rollup\n# (PRs stating each line, the recurring items with their PR counts, the\n# review-depth counts) so a recurring gap that stops recurring is visible\n```\n\n---\n\n## Step 9: Write the narrative\n\nLead with a 1-sentence tweetable summary, then the full report.\n\n```\n══════════════════════════════════════════════════════\nRETRO: [project] — [date range]\n══════════════════════════════════════════════════════\n\nTL;DR: [one sentence — e.g., \"Solid shipping week: 23 commits, OAuth shipped,\n        fix rate dropped to 35% (down from 48% last week).\"]\n\nMetrics:    [table from Step 2]\nOutcomes:   [from Step 2b, opening with its population — \"PRs by \u003Cauthor>,\n             N repositories, \u003Cwindow>\", which differs from the Metrics' scope —\n             then kept rate over SETTLED PRs (or \"not yet measurable\"), reverts,\n             fix-forwards (and how many shared a non-Markdown path), settling\n             count, review load (open→merge median and p90, share merged with no\n             review but the author's), tokens per kept PR. These are outcome\n             SIGNALS: fix-forward precision is unmeasured, tokens are host-wide\n             and not attributed per PR, and Codex\u002FKimi usage is not counted]\nUnverified: [from Step 2c, opening with \"stated in N of M PRs merged into\n             \u003Crepo>, \u003Cwindow>\"; the top recurring \"Could not verify\" items with\n             their PR counts (or NOT MEASURED, with its reason); review depth\n             counts, labelled self-reported, and the claims no forge review\n             backs]\nSessions:   [from Step 3]\nPatterns:   [commit timing + type breakdown]\nHotspots:   [top files]\nShip of week: [Step 6]\nTrends:     [if applicable]\n\nWhat went well:\n  - [specific example from git log or the Outcomes, not generic praise]\n  - ...\n\nWhat to improve:\n  - [specific pattern, e.g., \"3 late-night commits that each needed a follow-up fix — try morning reviews\"]\n  - ...\n\nNext week focus: [1-3 concrete suggestions based on the data; the Step 2c\n                  candidates go here as candidates, not as written TODOs]\n══════════════════════════════════════════════════════\n```\n\n---\n\n## Completion Status\n\n- ✅ **DONE** — retro report generated, history saved to `.context\u002Fretros\u002F`\n- ⚠ **DONE_WITH_CONCERNS** — limited git history for the period (fewer than 3 commits)\n- ❌ **BLOCKED** — not in a git repository\n- ❓ **NEEDS_CONTEXT** — specify a time range (e.g., `\u002Fretro 14d`)\n\n## Delivery completion\n\nIf this workflow changes files or external state:\n\n- Inspect the real final state before responding, including `git status` for a\n  repository task.\n- Never report `DONE` while task-owned changes are uncommitted. Use or continue\n  `$clade:delivery` and create a repository-compliant checkpoint or preserve\n  the work when committing is unavailable.\n- When the user request or trusted repository policy makes publication,\n  deployment, or live verification part of the task, do not silently downgrade\n  the result to local-only work.\n- If a required delivery transition lacks authority, credentials, a destination,\n  or reachable external state, report `BLOCKED` or `NEEDS_CONTEXT` rather than\n  appending a \"not committed\u002Fpushed\u002Fdeployed\" caveat after `DONE`.\n",{"name":5,"description":7},"main","25302dbcb683029b8a4d75325ae7758944b27114","plugins\u002Fclade\u002Fskills\u002Fretro",6,"https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade","https:\u002F\u002Falexshen.dev\u002Fen\u002Fblog\u002Fclade","https:\u002F\u002Fgithub.com\u002Fshenxingy","https:\u002F\u002Falexshen.dev\u002F","Founding Engineer @ Scam AI | ECE @ Duke University | Data Science @ Duke Kunshan University","2026-11-13 19:38:31",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add shenxingy\u002FClade --skill retro",{"tool":57,"command":58},"bunx","bunx skills add shenxingy\u002FClade --skill retro",{"tool":60,"command":61},"pnpm","pnpm dlx skills add shenxingy\u002FClade --skill retro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fretro\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Foutcome_scorecard_fixtures.py","SCRIPT","脚本",17673,"https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fretro\u002Fscripts\u002Foutcome_scorecard_fixtures.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Foutcome-scorecard.py",72551,"https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fretro\u002Fscripts\u002Foutcome-scorecard.py",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fpr-verification-gaps.py",36561,"https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fretro\u002Fscripts\u002Fpr-verification-gaps.py",[80,97,124,144,168,183],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":36},"01M6FNPBA3494GF2W7V4MMAKG3","worktree","Create or inspect runtime-adaptive isolated Git workspaces with explicit ownership and delivery routing","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fworktree\u002FSKILL.md",[],[82,87,88,89,90,91,92,93,94,32,95,96],"adaptive","inspect","with","ownership","delivery routing","runtime","delivery","workspaces","routing","create",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":36},"01M6FNP75BY8CS006EWGN29FM0","web-search","Route online research and URL reading to native tools or TinyFish MCP\u002FAPI; prepare targeted requests, handle progress and failures, and check returned evidence. Applies to web search, fetching, and bulk collection; excludes repository\u002Ffile search.","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],"web search","search","web","repository","file","research","MCP","requests","collection","reading","URL","native","bulk","progress","file search","route","tinyfish","evidence","check","api",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":36},"01M6FNP2616DRTZRSZJQM3HPHY","verify","Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in \u002Fverify (which runs the app to observe a single change working) — this one walks the AGENTS.md \"Features (Behavior Anchors)\" list.","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fverify\u002FSKILL.md",[],[126,131,132,133,134,135,136,137,138,139,140,141,142,143],"app","single","features","which","interaction","tests","project","observe","autonomous","behavior","list","change","codex",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":36},"01M6FNNX95R9H29BNERFY15704","tasks","Coordinate dependency-aware project tasks across independent Codex, Codex, Kimi and human sessions using Beads. Use for shared plans, claiming work, task handoffs, acceptance and agent monitoring snapshots.","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Ftasks\u002FSKILL.md",[],[146,21,151,152,137,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,143],"plans","work","shared","across","human","task","coordinate","kimi","snapshots","agent monitoring","dependency","use","using beads","beads","monitoring","acceptance","sessions",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":36},"01M6FNNTAD1BCZX5Q9TC55MZCH","sync","End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run \u002Fcommit after to commit everything)","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fsync\u002FSKILL.md",[],[170,175,176,177,28,178,179,180,117,181,182],"session","run","documentation","only","documentation sync","updates","end","todo",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":36},"01M6FNNPTR5H23MD3849E66WYA","status","Show a provider-neutral, freshness-aware snapshot of active Agent work, Git delivery, execution identity, and usage limits. Use for “what's going on right now”, what is running, progress updates, active runtime\u002Fprovider\u002Fmodel, or stuck-work checks.","https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fplugins\u002Fclade\u002Fskills\u002Fstatus\u002FSKILL.md",[],[185,92,190,191,21,180,192,193,117,194,93,195,196,162,197,152,198,199,32,200],"running","limits","usage","now","active","show","provider","snapshot","model","execution","identity"]