opengstack 0.13.9 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/{skills/land-and-deploy/SKILL.md → commands/autoplan.md} +0 -16
  2. package/{skills/benchmark/SKILL.md → commands/benchmark.md} +0 -17
  3. package/{skills/browse/SKILL.md → commands/browse.md} +0 -17
  4. package/{skills/ship/SKILL.md → commands/canary.md} +0 -18
  5. package/{skills/careful/SKILL.md → commands/careful.md} +0 -20
  6. package/{skills/canary/SKILL.md → commands/codex.md} +0 -17
  7. package/{skills/connect-chrome/SKILL.md → commands/connect-chrome.md} +0 -15
  8. package/commands/cso.md +72 -0
  9. package/commands/design-consultation.md +72 -0
  10. package/commands/design-review.md +72 -0
  11. package/commands/design-shotgun.md +72 -0
  12. package/commands/document-release.md +72 -0
  13. package/{skills/freeze/SKILL.md → commands/freeze.md} +0 -26
  14. package/{skills/gstack-upgrade/SKILL.md → commands/gstack-upgrade.md} +0 -14
  15. package/{skills/guard/SKILL.md → commands/guard.md} +0 -31
  16. package/commands/investigate.md +72 -0
  17. package/commands/land-and-deploy.md +72 -0
  18. package/commands/office-hours.md +72 -0
  19. package/commands/plan-ceo-review.md +72 -0
  20. package/commands/plan-design-review.md +72 -0
  21. package/commands/plan-eng-review.md +72 -0
  22. package/commands/qa-only.md +72 -0
  23. package/commands/qa.md +72 -0
  24. package/commands/retro.md +72 -0
  25. package/commands/review.md +72 -0
  26. package/{skills/setup-browser-cookies/SKILL.md → commands/setup-browser-cookies.md} +0 -14
  27. package/commands/setup-deploy.md +72 -0
  28. package/commands/ship.md +72 -0
  29. package/{skills/unfreeze/SKILL.md → commands/unfreeze.md} +0 -12
  30. package/package.json +4 -4
  31. package/scripts/install-commands.js +45 -0
  32. package/scripts/install-skills.js +4 -7
  33. package/skills/autoplan/SKILL.md +0 -96
  34. package/skills/autoplan/SKILL.md.tmpl +0 -694
  35. package/skills/benchmark/SKILL.md.tmpl +0 -222
  36. package/skills/browse/SKILL.md.tmpl +0 -131
  37. package/skills/browse/bin/find-browse +0 -21
  38. package/skills/browse/bin/remote-slug +0 -14
  39. package/skills/browse/scripts/build-node-server.sh +0 -48
  40. package/skills/browse/src/activity.ts +0 -208
  41. package/skills/browse/src/browser-manager.ts +0 -959
  42. package/skills/browse/src/buffers.ts +0 -137
  43. package/skills/browse/src/bun-polyfill.cjs +0 -109
  44. package/skills/browse/src/cli.ts +0 -678
  45. package/skills/browse/src/commands.ts +0 -128
  46. package/skills/browse/src/config.ts +0 -150
  47. package/skills/browse/src/cookie-import-browser.ts +0 -625
  48. package/skills/browse/src/cookie-picker-routes.ts +0 -230
  49. package/skills/browse/src/cookie-picker-ui.ts +0 -688
  50. package/skills/browse/src/find-browse.ts +0 -61
  51. package/skills/browse/src/meta-commands.ts +0 -550
  52. package/skills/browse/src/platform.ts +0 -17
  53. package/skills/browse/src/read-commands.ts +0 -358
  54. package/skills/browse/src/server.ts +0 -1192
  55. package/skills/browse/src/sidebar-agent.ts +0 -280
  56. package/skills/browse/src/sidebar-utils.ts +0 -21
  57. package/skills/browse/src/snapshot.ts +0 -407
  58. package/skills/browse/src/url-validation.ts +0 -95
  59. package/skills/browse/src/write-commands.ts +0 -364
  60. package/skills/browse/test/activity.test.ts +0 -120
  61. package/skills/browse/test/adversarial-security.test.ts +0 -32
  62. package/skills/browse/test/browser-manager-unit.test.ts +0 -17
  63. package/skills/browse/test/bun-polyfill.test.ts +0 -72
  64. package/skills/browse/test/commands.test.ts +0 -2075
  65. package/skills/browse/test/compare-board.test.ts +0 -342
  66. package/skills/browse/test/config.test.ts +0 -316
  67. package/skills/browse/test/cookie-import-browser.test.ts +0 -519
  68. package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
  69. package/skills/browse/test/file-drop.test.ts +0 -271
  70. package/skills/browse/test/find-browse.test.ts +0 -50
  71. package/skills/browse/test/findport.test.ts +0 -191
  72. package/skills/browse/test/fixtures/basic.html +0 -33
  73. package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
  74. package/skills/browse/test/fixtures/dialog.html +0 -15
  75. package/skills/browse/test/fixtures/empty.html +0 -2
  76. package/skills/browse/test/fixtures/forms.html +0 -55
  77. package/skills/browse/test/fixtures/iframe.html +0 -30
  78. package/skills/browse/test/fixtures/network-idle.html +0 -30
  79. package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
  80. package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
  81. package/skills/browse/test/fixtures/qa-eval.html +0 -51
  82. package/skills/browse/test/fixtures/responsive.html +0 -49
  83. package/skills/browse/test/fixtures/snapshot.html +0 -55
  84. package/skills/browse/test/fixtures/spa.html +0 -24
  85. package/skills/browse/test/fixtures/states.html +0 -17
  86. package/skills/browse/test/fixtures/upload.html +0 -25
  87. package/skills/browse/test/gstack-config.test.ts +0 -138
  88. package/skills/browse/test/gstack-update-check.test.ts +0 -514
  89. package/skills/browse/test/handoff.test.ts +0 -235
  90. package/skills/browse/test/path-validation.test.ts +0 -91
  91. package/skills/browse/test/platform.test.ts +0 -37
  92. package/skills/browse/test/server-auth.test.ts +0 -65
  93. package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
  94. package/skills/browse/test/sidebar-agent.test.ts +0 -199
  95. package/skills/browse/test/sidebar-integration.test.ts +0 -320
  96. package/skills/browse/test/sidebar-unit.test.ts +0 -96
  97. package/skills/browse/test/snapshot.test.ts +0 -467
  98. package/skills/browse/test/state-ttl.test.ts +0 -35
  99. package/skills/browse/test/test-server.ts +0 -57
  100. package/skills/browse/test/url-validation.test.ts +0 -72
  101. package/skills/browse/test/watch.test.ts +0 -129
  102. package/skills/canary/SKILL.md.tmpl +0 -212
  103. package/skills/careful/SKILL.md.tmpl +0 -56
  104. package/skills/careful/bin/check-careful.sh +0 -112
  105. package/skills/codex/SKILL.md +0 -90
  106. package/skills/codex/SKILL.md.tmpl +0 -417
  107. package/skills/connect-chrome/SKILL.md.tmpl +0 -195
  108. package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
  109. package/skills/cso/SKILL.md +0 -93
  110. package/skills/cso/SKILL.md.tmpl +0 -606
  111. package/skills/design-consultation/SKILL.md +0 -94
  112. package/skills/design-consultation/SKILL.md.tmpl +0 -415
  113. package/skills/design-review/SKILL.md +0 -94
  114. package/skills/design-review/SKILL.md.tmpl +0 -290
  115. package/skills/design-shotgun/SKILL.md +0 -91
  116. package/skills/design-shotgun/SKILL.md.tmpl +0 -285
  117. package/skills/document-release/SKILL.md +0 -91
  118. package/skills/document-release/SKILL.md.tmpl +0 -359
  119. package/skills/freeze/SKILL.md.tmpl +0 -77
  120. package/skills/freeze/bin/check-freeze.sh +0 -79
  121. package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
  122. package/skills/guard/SKILL.md.tmpl +0 -77
  123. package/skills/investigate/SKILL.md +0 -105
  124. package/skills/investigate/SKILL.md.tmpl +0 -194
  125. package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
  126. package/skills/office-hours/SKILL.md +0 -96
  127. package/skills/office-hours/SKILL.md.tmpl +0 -645
  128. package/skills/plan-ceo-review/SKILL.md +0 -94
  129. package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
  130. package/skills/plan-design-review/SKILL.md +0 -92
  131. package/skills/plan-design-review/SKILL.md.tmpl +0 -446
  132. package/skills/plan-eng-review/SKILL.md +0 -93
  133. package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
  134. package/skills/qa/SKILL.md +0 -95
  135. package/skills/qa/SKILL.md.tmpl +0 -316
  136. package/skills/qa/references/issue-taxonomy.md +0 -85
  137. package/skills/qa/templates/qa-report-template.md +0 -126
  138. package/skills/qa-only/SKILL.md +0 -89
  139. package/skills/qa-only/SKILL.md.tmpl +0 -101
  140. package/skills/retro/SKILL.md +0 -89
  141. package/skills/retro/SKILL.md.tmpl +0 -820
  142. package/skills/review/SKILL.md +0 -92
  143. package/skills/review/SKILL.md.tmpl +0 -281
  144. package/skills/review/TODOS-format.md +0 -62
  145. package/skills/review/checklist.md +0 -220
  146. package/skills/review/design-checklist.md +0 -132
  147. package/skills/review/greptile-triage.md +0 -220
  148. package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
  149. package/skills/setup-deploy/SKILL.md +0 -92
  150. package/skills/setup-deploy/SKILL.md.tmpl +0 -215
  151. package/skills/ship/SKILL.md.tmpl +0 -636
  152. package/skills/unfreeze/SKILL.md.tmpl +0 -36
@@ -1,820 +0,0 @@
1
- ---
2
- name: retro
3
- preamble-tier: 2
4
- version: 2.0.0
5
- description: |
6
- Weekly engineering retrospective. Analyzes commit history, work patterns,
7
- and code quality metrics with persistent history and trend tracking.
8
- Team-aware: breaks down per-person contributions with praise and growth areas.
9
- Use when asked to "weekly retro", "what did we ship", or "engineering retrospective".
10
- Proactively suggest at the end of a work week or sprint.
11
- allowed-tools:
12
- - Bash
13
- - Read
14
- - Write
15
- - Glob
16
- - AskUserQuestion
17
- ---
18
-
19
- {{PREAMBLE}}
20
-
21
- {{BASE_BRANCH_DETECT}}
22
-
23
- # /retro — Weekly Engineering Retrospective
24
-
25
- Generates a comprehensive engineering retrospective analyzing commit history, work patterns, and code quality metrics. Team-aware: identifies the user running the command, then analyzes every contributor with per-person praise and growth opportunities. Designed for a senior IC/CTO-level builder using Claude Code as a force multiplier.
26
-
27
- ## User-invocable
28
- When the user types `/retro`, run this skill.
29
-
30
- ## Arguments
31
- - `/retro` — default: last 7 days
32
- - `/retro 24h` — last 24 hours
33
- - `/retro 14d` — last 14 days
34
- - `/retro 30d` — last 30 days
35
- - `/retro compare` — compare current window vs prior same-length window
36
- - `/retro compare 14d` — compare with explicit window
37
- - `/retro global` — cross-project retro across all AI coding tools (7d default)
38
- - `/retro global 14d` — cross-project retro with explicit window
39
-
40
- ## Instructions
41
-
42
- Parse the argument to determine the time window. Default to 7 days if no argument given. All times should be reported in the user's **local timezone** (use the system default — do NOT set `TZ`).
43
-
44
- **Midnight-aligned windows:** For day (`d`) and week (`w`) units, compute an absolute start date at local midnight, not a relative string. For example, if today is 2026-03-18 and the window is 7 days: the start date is 2026-03-11. Use `--since="2026-03-11T00:00:00"` for git log queries — the explicit `T00:00:00` suffix ensures git starts from midnight. Without it, git uses the current wall-clock time (e.g., `--since="2026-03-11"` at 11pm means 11pm, not midnight). For week units, multiply by 7 to get days (e.g., `2w` = 14 days back). For hour (`h`) units, use `--since="N hours ago"` since midnight alignment does not apply to sub-day windows.
45
-
46
- **Argument validation:** If the argument doesn't match a number followed by `d`, `h`, or `w`, the word `compare` (optionally followed by a window), or the word `global` (optionally followed by a window), show this usage and stop:
47
-
48
- Usage: /retro [window | compare | global]
49
- /retro — last 7 days (default)
50
- /retro 24h — last 24 hours
51
- /retro 14d — last 14 days
52
- /retro 30d — last 30 days
53
- /retro compare — compare this period vs prior period
54
- /retro compare 14d — compare with explicit window
55
- /retro global — cross-project retro across all AI tools (7d default)
56
- /retro global 14d — cross-project retro with explicit window
57
-
58
- **If the first argument is `global`:** Skip the normal repo-scoped retro (Steps 1-14). Instead, follow the **Global Retrospective** flow at the end of this document. The optional second argument is the time window (default 7d). This mode does NOT require being inside a git repo.
59
-
60
- ### Step 1: Gather Raw Data
61
-
62
- First, fetch origin and identify the current user:
63
- ```bash
64
- git fetch origin <default> --quiet
65
- # Identify who is running the retro
66
- git config user.name
67
- git config user.email
68
-
69
- The name returned by `git config user.name` is **"you"** — the person reading this retro. All other authors are teammates. Use this to orient the narrative: "your" commits vs teammate contributions.
70
-
71
- Run ALL of these git commands in parallel (they are independent):
72
-
73
- ```bash
74
- # 1. All commits in window with timestamps, subject, hash, AUTHOR, files changed, insertions, deletions
75
- git log origin/<default> --since="<window>" --format="%H|%aN|%ae|%ai|%s" --shortstat
76
-
77
- # 2. Per-commit test vs total LOC breakdown with author
78
- # Each commit block starts with COMMIT:<hash>|<author>, followed by numstat lines.
79
- # Separate test files (matching test/|spec/|__tests__/) from production files.
80
- git log origin/<default> --since="<window>" --format="COMMIT:%H|%aN" --numstat
81
-
82
- # 3. Commit timestamps for session detection and hourly distribution (with author)
83
- git log origin/<default> --since="<window>" --format="%at|%aN|%ai|%s" | sort -n
84
-
85
- # 4. Files most frequently changed (hotspot analysis)
86
- git log origin/<default> --since="<window>" --format="" --name-only | grep -v '^$' | sort | uniq -c | sort -rn
87
-
88
- # 5. PR/MR numbers from commit messages (GitHub #NNN, GitLab !NNN)
89
- git log origin/<default> --since="<window>" --format="%s" | grep -oE '[#!][0-9]+' | sort -t'#' -k1 | uniq
90
-
91
- # 6. Per-author file hotspots (who touches what)
92
- git log origin/<default> --since="<window>" --format="AUTHOR:%aN" --name-only
93
-
94
- # 7. Per-author commit counts (quick summary)
95
- git shortlog origin/<default> --since="<window>" -sn --no-merges
96
-
97
- # 8. Greptile triage history (if available)
98
- cat ~/.gstack/greptile-history.md 2>/dev/null || true
99
-
100
- # 9. TODOS.md backlog (if available)
101
- cat TODOS.md 2>/dev/null || true
102
-
103
- # 10. Test file count
104
- find . -name '*.test.*' -o -name '*.spec.*' -o -name '*_test.*' -o -name '*_spec.*' 2>/dev/null | grep -v node_modules | wc -l
105
-
106
- # 11. Regression test commits in window
107
- git log origin/<default> --since="<window>" --oneline --grep="test(qa):" --grep="test(design):" --grep="test: coverage"
108
-
109
- # 12. gstack skill usage telemetry (if available)
110
- cat ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
111
-
112
- # 12. Test files changed in window
113
- git log origin/<default> --since="<window>" --format="" --name-only | grep -E '\.(test|spec)\.' | sort -u | wc -l
114
-
115
- ### Step 2: Compute Metrics
116
-
117
- Calculate and present these metrics in a summary table:
118
-
119
- | Metric | Value |
120
- |--------|-------|
121
- | Commits to main | N |
122
- | Contributors | N |
123
- | PRs merged | N |
124
- | Total insertions | N |
125
- | Total deletions | N |
126
- | Net LOC added | N |
127
- | Test LOC (insertions) | N |
128
- | Test LOC ratio | N% |
129
- | Version range | vX.Y.Z.W → vX.Y.Z.W |
130
- | Active days | N |
131
- | Detected sessions | N |
132
- | Avg LOC/session-hour | N |
133
- | Greptile signal | N% (Y catches, Z FPs) |
134
- | Test Health | N total tests · M added this period · K regression tests |
135
-
136
- Then show a **per-author leaderboard** immediately below:
137
-
138
-
139
- Contributor Commits +/- Top area
140
- You (garry) 32 +2400/-300 browse/
141
- alice 12 +800/-150 app/services/
142
- bob 3 +120/-40 tests/
143
-
144
- Sort by commits descending. The current user (from `git config user.name`) always appears first, labeled "You (name)".
145
-
146
- **Greptile signal (if history exists):** Read `~/.gstack/greptile-history.md` (fetched in Step 1, command 8). Filter entries within the retro time window by date. Count entries by type: `fix`, `fp`, `already-fixed`. Compute signal ratio: `(fix + already-fixed) / (fix + already-fixed + fp)`. If no entries exist in the window or the file doesn't exist, skip the Greptile metric row. Skip unparseable lines silently.
147
-
148
- **Backlog Health (if TODOS.md exists):** Read `TODOS.md` (fetched in Step 1, command 9). Compute:
149
- - Total open TODOs (exclude items in `## Completed` section)
150
- - P0/P1 count (critical/urgent items)
151
- - P2 count (important items)
152
- - Items completed this period (items in Completed section with dates within the retro window)
153
- - Items added this period (cross-reference git log for commits that modified TODOS.md within the window)
154
-
155
- Include in the metrics table:
156
-
157
- | Backlog Health | N open (X P0/P1, Y P2) · Z completed this period |
158
-
159
- If TODOS.md doesn't exist, skip the Backlog Health row.
160
-
161
- **Skill Usage (if analytics exist):** Read `~/.gstack/analytics/skill-usage.jsonl` if it exists. Filter entries within the retro time window by `ts` field. Separate skill activations (no `event` field) from hook fires (`event: "hook_fire"`). Aggregate by skill name. Present as:
162
-
163
-
164
- | Skill Usage | /ship(12) /qa(8) /review(5) · 3 safety hook fires |
165
-
166
- If the JSONL file doesn't exist or has no entries in the window, skip the Skill Usage row.
167
-
168
- **Eureka Moments (if logged):** Read `~/.gstack/analytics/eureka.jsonl` if it exists. Filter entries within the retro time window by `ts` field. For each eureka moment, show the skill that flagged it, the branch, and a one-line summary of the insight. Present as:
169
-
170
-
171
- | Eureka Moments | 2 this period |
172
-
173
- If moments exist, list them:
174
-
175
- EUREKA /office-hours (branch: garrytan/auth-rethink): "Session tokens don't need server storage — browser crypto API makes client-side JWT validation viable"
176
- EUREKA /plan-eng-review (branch: garrytan/cache-layer): "Redis isn't needed here — Bun's built-in LRU cache handles this workload"
177
-
178
- If the JSONL file doesn't exist or has no entries in the window, skip the Eureka Moments row.
179
-
180
- ### Step 3: Commit Time Distribution
181
-
182
- Show hourly histogram in local time using bar chart:
183
-
184
-
185
- Hour Commits ████████████████
186
- 00: 4 ████
187
- 07: 5 █████
188
- ...
189
-
190
- Identify and call out:
191
- - Peak hours
192
- - Dead zones
193
- - Whether pattern is bimodal (morning/evening) or continuous
194
- - Late-night coding clusters (after 10pm)
195
-
196
- ### Step 4: Work Session Detection
197
-
198
- Detect sessions using **45-minute gap** threshold between consecutive commits. For each session report:
199
- - Start/end time (Pacific)
200
- - Number of commits
201
- - Duration in minutes
202
-
203
- Classify sessions:
204
- - **Deep sessions** (50+ min)
205
- - **Medium sessions** (20-50 min)
206
- - **Micro sessions** (<20 min, typically single-commit fire-and-forget)
207
-
208
- Calculate:
209
- - Total active coding time (sum of session durations)
210
- - Average session length
211
- - LOC per hour of active time
212
-
213
- ### Step 5: Commit Type Breakdown
214
-
215
- Categorize by conventional commit prefix (feat/fix/refactor/test/chore/docs). Show as percentage bar:
216
-
217
-
218
- feat: 20 (40%) ████████████████████
219
- fix: 27 (54%) ███████████████████████████
220
- refactor: 2 ( 4%) ██
221
-
222
- Flag if fix ratio exceeds 50% — this signals a "ship fast, fix fast" pattern that may indicate review gaps.
223
-
224
- ### Step 6: Hotspot Analysis
225
-
226
- Show top 10 most-changed files. Flag:
227
- - Files changed 5+ times (churn hotspots)
228
- - Test files vs production files in the hotspot list
229
- - VERSION/CHANGELOG frequency (version discipline indicator)
230
-
231
- ### Step 7: PR Size Distribution
232
-
233
- From commit diffs, estimate PR sizes and bucket them:
234
- - **Small** (<100 LOC)
235
- - **Medium** (100-500 LOC)
236
- - **Large** (500-1500 LOC)
237
- - **XL** (1500+ LOC)
238
-
239
- ### Step 8: Focus Score + Ship of the Week
240
-
241
- **Focus score:** Calculate the percentage of commits touching the single most-changed top-level directory (e.g., `app/services/`, `app/views/`). Higher score = deeper focused work. Lower score = scattered context-switching. Report as: "Focus score: 62% (app/services/)"
242
-
243
- **Ship of the week:** Auto-identify the single highest-LOC PR in the window. Highlight it:
244
- - PR number and title
245
- - LOC changed
246
- - Why it matters (infer from commit messages and files touched)
247
-
248
- ### Step 9: Team Member Analysis
249
-
250
- For each contributor (including the current user), compute:
251
-
252
- 1. **Commits and LOC** — total commits, insertions, deletions, net LOC
253
- 2. **Areas of focus** — which directories/files they touched most (top 3)
254
- 3. **Commit type mix** — their personal feat/fix/refactor/test breakdown
255
- 4. **Session patterns** — when they code (their peak hours), session count
256
- 5. **Test discipline** — their personal test LOC ratio
257
- 6. **Biggest ship** — their single highest-impact commit or PR in the window
258
-
259
- **For the current user ("You"):** This section gets the deepest treatment. Include all the detail from the solo retro — session analysis, time patterns, focus score. Frame it in first person: "Your peak hours...", "Your biggest ship..."
260
-
261
- **For each teammate:** Write 2-3 sentences covering what they worked on and their pattern. Then:
262
-
263
- - **Praise** (1-2 specific things): Anchor in actual commits. Not "great work" — say exactly what was good. Examples: "Shipped the entire auth middleware rewrite in 3 focused sessions with 45% test coverage", "Every PR under 200 LOC — disciplined decomposition."
264
- - **Opportunity for growth** (1 specific thing): Frame as a leveling-up suggestion, not criticism. Anchor in actual data. Examples: "Test ratio was 12% this week — adding test coverage to the payment module before it gets more complex would pay off", "5 fix commits on the same file suggest the original PR could have used a review pass."
265
-
266
- **If only one contributor (solo repo):** Skip the team breakdown and proceed as before — the retro is personal.
267
-
268
- **If there are Co-Authored-By trailers:** Parse `Co-Authored-By:` lines in commit messages. Credit those authors for the commit alongside the primary author. Note AI co-authors (e.g., `noreply@anthropic.com`) but do not include them as team members — instead, track "AI-assisted commits" as a separate metric.
269
-
270
- ### Step 10: Week-over-Week Trends (if window >= 14d)
271
-
272
- If the time window is 14 days or more, split into weekly buckets and show trends:
273
- - Commits per week (total and per-author)
274
- - LOC per week
275
- - Test ratio per week
276
- - Fix ratio per week
277
- - Session count per week
278
-
279
- ### Step 11: Streak Tracking
280
-
281
- Count consecutive days with at least 1 commit to origin/<default>, going back from today. Track both team streak and personal streak:
282
-
283
- ```bash
284
- # Team streak: all unique commit dates (local time) — no hard cutoff
285
- git log origin/<default> --format="%ad" --date=format:"%Y-%m-%d" | sort -u
286
-
287
- # Personal streak: only the current user's commits
288
- git log origin/<default> --author="<user_name>" --format="%ad" --date=format:"%Y-%m-%d" | sort -u
289
-
290
- Count backward from today — how many consecutive days have at least one commit? This queries the full history so streaks of any length are reported accurately. Display both:
291
- - "Team shipping streak: 47 consecutive days"
292
- - "Your shipping streak: 32 consecutive days"
293
-
294
- ### Step 12: Load History & Compare
295
-
296
- Before saving the new snapshot, check for prior retro history:
297
-
298
- ```bash
299
- setopt +o nomatch 2>/dev/null || true # zsh compat
300
- ls -t .context/retros/*.json 2>/dev/null
301
-
302
- **If prior retros exist:** Load the most recent one using the Read tool. Calculate deltas for key metrics and include a **Trends vs Last Retro** section:
303
-
304
- Last Now Delta
305
- Test ratio: 22% → 41% ↑19pp
306
- Sessions: 10 → 14 ↑4
307
- LOC/hour: 200 → 350 ↑75%
308
- Fix ratio: 54% → 30% ↓24pp (improving)
309
- Commits: 32 → 47 ↑47%
310
- Deep sessions: 3 → 5 ↑2
311
-
312
- **If no prior retros exist:** Skip the comparison section and append: "First retro recorded — run again next week to see trends."
313
-
314
- ### Step 13: Save Retro History
315
-
316
- After computing all metrics (including streak) and loading any prior history for comparison, save a JSON snapshot:
317
-
318
- ```bash
319
- mkdir -p .context/retros
320
-
321
- Determine the next sequence number for today (substitute the actual date for `$(date +%Y-%m-%d)`):
322
- ```bash
323
- setopt +o nomatch 2>/dev/null || true # zsh compat
324
- # Count existing retros for today to get next sequence number
325
- today=$(date +%Y-%m-%d)
326
- existing=$(ls .context/retros/${today}-*.json 2>/dev/null | wc -l | tr -d ' ')
327
- next=$((existing + 1))
328
- # Save as .context/retros/${today}-${next}.json
329
-
330
- Use the Write tool to save the JSON file with this schema:
331
- ```json
332
- {
333
- "date": "2026-03-08",
334
- "window": "7d",
335
- "metrics": {
336
- "commits": 47,
337
- "contributors": 3,
338
- "prs_merged": 12,
339
- "insertions": 3200,
340
- "deletions": 800,
341
- "net_loc": 2400,
342
- "test_loc": 1300,
343
- "test_ratio": 0.41,
344
- "active_days": 6,
345
- "sessions": 14,
346
- "deep_sessions": 5,
347
- "avg_session_minutes": 42,
348
- "loc_per_session_hour": 350,
349
- "feat_pct": 0.40,
350
- "fix_pct": 0.30,
351
- "peak_hour": 22,
352
- "ai_assisted_commits": 32
353
- },
354
- "authors": {
355
- "OpenGStack": { "commits": 32, "insertions": 2400, "deletions": 300, "test_ratio": 0.41, "top_area": "browse/" },
356
- "Alice": { "commits": 12, "insertions": 800, "deletions": 150, "test_ratio": 0.35, "top_area": "app/services/" }
357
- },
358
- "version_range": ["1.16.0.0", "1.16.1.0"],
359
- "streak_days": 47,
360
- "tweetable": "Week of Mar 1: 47 commits (3 contributors), 3.2k LOC, 38% tests, 12 PRs, peak: 10pm",
361
- "greptile": {
362
- "fixes": 3,
363
- "fps": 1,
364
- "already_fixed": 2,
365
- "signal_pct": 83
366
- }
367
- }
368
-
369
- **Note:** Only include the `greptile` field if `~/.gstack/greptile-history.md` exists and has entries within the time window. Only include the `backlog` field if `TODOS.md` exists. Only include the `test_health` field if test files were found (command 10 returns > 0). If any has no data, omit the field entirely.
370
-
371
- Include test health data in the JSON when test files exist:
372
- ```json
373
- "test_health": {
374
- "total_test_files": 47,
375
- "tests_added_this_period": 5,
376
- "regression_test_commits": 3,
377
- "test_files_changed": 8
378
- }
379
-
380
- Include backlog data in the JSON when TODOS.md exists:
381
- ```json
382
- "backlog": {
383
- "total_open": 28,
384
- "p0_p1": 2,
385
- "p2": 8,
386
- "completed_this_period": 3,
387
- "added_this_period": 1
388
- }
389
-
390
- ### Step 14: Write the Narrative
391
-
392
- Structure the output as:
393
-
394
- ---
395
-
396
- **Tweetable summary** (first line, before everything else):
397
-
398
- Week of Mar 1: 47 commits (3 contributors), 3.2k LOC, 38% tests, 12 PRs, peak: 10pm | Streak: 47d
399
-
400
- ## Engineering Retro: [date range]
401
-
402
- ### Summary Table
403
- (from Step 2)
404
-
405
- ### Trends vs Last Retro
406
- (from Step 11, loaded before save — skip if first retro)
407
-
408
- ### Time & Session Patterns
409
- (from Steps 3-4)
410
-
411
- Narrative interpreting what the team-wide patterns mean:
412
- - When the most productive hours are and what drives them
413
- - Whether sessions are getting longer or shorter over time
414
- - Estimated hours per day of active coding (team aggregate)
415
- - Notable patterns: do team members code at the same time or in shifts?
416
-
417
- ### Shipping Velocity
418
- (from Steps 5-7)
419
-
420
- Narrative covering:
421
- - Commit type mix and what it reveals
422
- - PR size distribution and what it reveals about shipping cadence
423
- - Fix-chain detection (sequences of fix commits on the same subsystem)
424
- - Version bump discipline
425
-
426
- ### Code Quality Signals
427
- - Test LOC ratio trend
428
- - Hotspot analysis (are the same files churning?)
429
- - Greptile signal ratio and trend (if history exists): "Greptile: X% signal (Y valid catches, Z false positives)"
430
-
431
- ### Test Health
432
- - Total test files: N (from command 10)
433
- - Tests added this period: M (from command 12 — test files changed)
434
- - Regression test commits: list `test(qa):` and `test(design):` and `test: coverage` commits from command 11
435
- - If prior retro exists and has `test_health`: show delta "Test count: {last} → {now} (+{delta})"
436
- - If test ratio < 20%: flag as growth area — "100% test coverage is the goal. Tests make vibe coding safe."
437
-
438
- ### Plan Completion
439
- Check review JSONL logs for plan completion data from /ship runs this period:
440
-
441
- ```bash
442
- setopt +o nomatch 2>/dev/null || true # zsh compat
443
- eval "$(~/.claude/skills/opengstack/bin/gstack-slug 2>/dev/null)"
444
- cat ~/.gstack/projects/$SLUG/*-reviews.jsonl 2>/dev/null | grep '"skill":"ship"' | grep '"plan_items_total"' || echo "NO_PLAN_DATA"
445
-
446
- If plan completion data exists within the retro time window:
447
- - Count branches shipped with plans (entries that have `plan_items_total` > 0)
448
- - Compute average completion: sum of `plan_items_done` / sum of `plan_items_total`
449
- - Identify most-skipped item category if data supports it
450
-
451
- Output:
452
-
453
- Plan Completion This Period:
454
- {N} branches shipped with plans
455
- Average completion: {X}% ({done}/{total} items)
456
-
457
- If no plan data exists, skip this section silently.
458
-
459
- ### Focus & Highlights
460
- (from Step 8)
461
- - Focus score with interpretation
462
- - Ship of the week callout
463
-
464
- ### Your Week (personal deep-dive)
465
- (from Step 9, for the current user only)
466
-
467
- This is the section the user cares most about. Include:
468
- - Their personal commit count, LOC, test ratio
469
- - Their session patterns and peak hours
470
- - Their focus areas
471
- - Their biggest ship
472
- - **What you did well** (2-3 specific things anchored in commits)
473
- - **Where to level up** (1-2 specific, actionable suggestions)
474
-
475
- ### Team Breakdown
476
- (from Step 9, for each teammate — skip if solo repo)
477
-
478
- For each teammate (sorted by commits descending), write a section:
479
-
480
- #### [Name]
481
- - **What they shipped**: 2-3 sentences on their contributions, areas of focus, and commit patterns
482
- - **Praise**: 1-2 specific things they did well, anchored in actual commits. Be genuine — what would you actually say in a 1:1? Examples:
483
- - "Cleaned up the entire auth module in 3 small, reviewable PRs — textbook decomposition"
484
- - "Added integration tests for every new endpoint, not just happy paths"
485
- - "Fixed the N+1 query that was causing 2s load times on the dashboard"
486
- - **Opportunity for growth**: 1 specific, constructive suggestion. Frame as investment, not criticism. Examples:
487
- - "Test coverage on the payment module is at 8% — worth investing in before the next feature lands on top of it"
488
- - "Most commits land in a single burst — spacing work across the day could reduce context-switching fatigue"
489
- - "All commits land between 1-4am — sustainable pace matters for code quality long-term"
490
-
491
- **AI collaboration note:** If many commits have `Co-Authored-By` AI trailers (e.g., Claude, Copilot), note the AI-assisted commit percentage as a team metric. Frame it neutrally — "N% of commits were AI-assisted" — without judgment.
492
-
493
- ### Top 3 Team Wins
494
- Identify the 3 highest-impact things shipped in the window across the whole team. For each:
495
- - What it was
496
- - Who shipped it
497
- - Why it matters (product/architecture impact)
498
-
499
- ### 3 Things to Improve
500
- Specific, actionable, anchored in actual commits. Mix personal and team-level suggestions. Phrase as "to get even better, the team could..."
501
-
502
- ### 3 Habits for Next Week
503
- Small, practical, realistic. Each must be something that takes <5 minutes to adopt. At least one should be team-oriented (e.g., "review each other's PRs same-day").
504
-
505
- ### Week-over-Week Trends
506
- (if applicable, from Step 10)
507
-
508
- ---
509
-
510
- ## Global Retrospective Mode
511
-
512
- When the user runs `/retro global` (or `/retro global 14d`), follow this flow instead of the repo-scoped Steps 1-14. This mode works from any directory — it does NOT require being inside a git repo.
513
-
514
- ### Global Step 1: Compute time window
515
-
516
- Same midnight-aligned logic as the regular retro. Default 7d. The second argument after `global` is the window (e.g., `14d`, `30d`, `24h`).
517
-
518
- ### Global Step 2: Run discovery
519
-
520
- Locate and run the discovery script using this fallback chain:
521
-
522
- ```bash
523
- DISCOVER_BIN=""
524
- [ -x ~/.claude/skills/opengstack/bin/gstack-global-discover ] && DISCOVER_BIN=~/.claude/skills/opengstack/bin/gstack-global-discover
525
- [ -z "$DISCOVER_BIN" ] && [ -x .claude/skills/gstack/bin/gstack-global-discover ] && DISCOVER_BIN=.claude/skills/gstack/bin/gstack-global-discover
526
- [ -z "$DISCOVER_BIN" ] && which gstack-global-discover >/dev/null 2>&1 && DISCOVER_BIN=$(which gstack-global-discover)
527
- [ -z "$DISCOVER_BIN" ] && [ -f bin/gstack-global-discover.ts ] && DISCOVER_BIN="bun run bin/gstack-global-discover.ts"
528
- echo "DISCOVER_BIN: $DISCOVER_BIN"
529
-
530
- If no binary is found, tell the user: "Discovery script not found. Run `bun run build` in the gstack directory to compile it." and stop.
531
-
532
- Run the discovery:
533
- ```bash
534
- $DISCOVER_BIN --since "<window>" --format json 2>/tmp/gstack-discover-stderr
535
-
536
- Read the stderr output from `/tmp/gstack-discover-stderr` for diagnostic info. Parse the JSON output from stdout.
537
-
538
- If `total_sessions` is 0, say: "No AI coding sessions found in the last <window>. Try a longer window: `/retro global 30d`" and stop.
539
-
540
- ### Global Step 3: Run git log on each discovered repo
541
-
542
- For each repo in the discovery JSON's `repos` array, find the first valid path in `paths[]` (directory exists with `.git/`). If no valid path exists, skip the repo and note it.
543
-
544
- **For local-only repos** (where `remote` starts with `local:`): skip `git fetch` and use the local default branch. Use `git log HEAD` instead of `git log origin/$DEFAULT`.
545
-
546
- **For repos with remotes:**
547
-
548
- ```bash
549
- git -C <path> fetch origin --quiet 2>/dev/null
550
-
551
- Detect the default branch for each repo: first try `git symbolic-ref refs/remotes/origin/HEAD`, then check common branch names (`main`, `master`), then fall back to `git rev-parse --abbrev-ref HEAD`. Use the detected branch as `<default>` in the commands below.
552
-
553
- ```bash
554
- # Commits with stats
555
- git -C <path> log origin/$DEFAULT --since="<start_date>T00:00:00" --format="%H|%aN|%ai|%s" --shortstat
556
-
557
- # Commit timestamps for session detection, streak, and context switching
558
- git -C <path> log origin/$DEFAULT --since="<start_date>T00:00:00" --format="%at|%aN|%ai|%s" | sort -n
559
-
560
- # Per-author commit counts
561
- git -C <path> shortlog origin/$DEFAULT --since="<start_date>T00:00:00" -sn --no-merges
562
-
563
- # PR/MR numbers from commit messages (GitHub #NNN, GitLab !NNN)
564
- git -C <path> log origin/$DEFAULT --since="<start_date>T00:00:00" --format="%s" | grep -oE '[#!][0-9]+' | sort -t'#' -k1 | uniq
565
-
566
- For repos that fail (deleted paths, network errors): skip and note "N repos could not be reached."
567
-
568
- ### Global Step 4: Compute global shipping streak
569
-
570
- For each repo, get commit dates (capped at 365 days):
571
-
572
- ```bash
573
- git -C <path> log origin/$DEFAULT --since="365 days ago" --format="%ad" --date=format:"%Y-%m-%d" | sort -u
574
-
575
- Union all dates across all repos. Count backward from today — how many consecutive days have at least one commit to ANY repo? If the streak hits 365 days, display as "365+ days".
576
-
577
- ### Global Step 5: Compute context switching metric
578
-
579
- From the commit timestamps gathered in Step 3, group by date. For each date, count how many distinct repos had commits that day. Report:
580
- - Average repos/day
581
- - Maximum repos/day
582
- - Which days were focused (1 repo) vs. fragmented (3+ repos)
583
-
584
- ### Global Step 6: Per-tool productivity patterns
585
-
586
- From the discovery JSON, analyze tool usage patterns:
587
- - Which AI tool is used for which repos (exclusive vs. shared)
588
- - Session count per tool
589
- - Behavioral patterns (e.g., "Codex used exclusively for myapp, Claude Code for everything else")
590
-
591
- ### Global Step 7: Aggregate and generate narrative
592
-
593
- Structure the output with the **shareable personal card first**, then the full
594
- team/project breakdown below. The personal card is designed to be screenshot-friendly
595
- — everything someone would want to share on X/Twitter in one clean block.
596
-
597
- ---
598
-
599
- **Tweetable summary** (first line, before everything else):
600
-
601
- Week of Mar 14: 5 projects, 138 commits, 250k LOC across 5 repos | 48 AI sessions | Streak: 52d 🔥
602
-
603
- ## 🚀 Your Week: [user name] — [date range]
604
-
605
- This section is the **shareable personal card**. It contains ONLY the current user's
606
- stats — no team data, no project breakdowns. Designed to screenshot and post.
607
-
608
- Use the user identity from `git config user.name` to filter all per-repo git data.
609
- Aggregate across all repos to compute personal totals.
610
-
611
- Render as a single visually clean block. Left border only — no right border (LLMs
612
- can't align right borders reliably). Pad repo names to the longest name so columns
613
- align cleanly. Never truncate project names.
614
-
615
-
616
- ╔═══════════════════════════════════════════════════════════════
617
- ║ [USER NAME] — Week of [date]
618
- ╠═══════════════════════════════════════════════════════════════
619
-
620
- ║ [N] commits across [M] projects
621
- ║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net
622
- ║ [N] AI coding sessions (CC: X, Codex: Y, Gemini: Z)
623
- ║ [N]-day shipping streak 🔥
624
-
625
- ║ PROJECTS
626
- ║ ─────────────────────────────────────────────────────────
627
- ║ [repo_name_full] [N] commits +[X]k LOC [solo/team]
628
- ║ [repo_name_full] [N] commits +[X]k LOC [solo/team]
629
- ║ [repo_name_full] [N] commits +[X]k LOC [solo/team]
630
-
631
- ║ SHIP OF THE WEEK
632
- ║ [PR title] — [LOC] lines across [N] files
633
-
634
- ║ TOP WORK
635
- ║ • [1-line description of biggest theme]
636
- ║ • [1-line description of second theme]
637
- ║ • [1-line description of third theme]
638
-
639
- ║ Powered by gstack
640
- ╚═══════════════════════════════════════════════════════════════
641
-
642
- **Rules for the personal card:**
643
- - Only show repos where the user has commits. Skip repos with 0 commits.
644
- - Sort repos by user's commit count descending.
645
- - **Never truncate repo names.** Use the full repo name (e.g., `analyze_transcripts`
646
- not `analyze_trans`). Pad the name column to the longest repo name so all columns
647
- align. If names are long, widen the box — the box width adapts to content.
648
- - For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010").
649
- - Role: "solo" if user is the only contributor, "team" if others contributed.
650
- - Ship of the Week: the user's single highest-LOC PR across ALL repos.
651
- - Top Work: 3 bullet points summarizing the user's major themes, inferred from
652
- commit messages. Not individual commits — synthesize into themes.
653
- E.g., "Built /retro global — cross-project retrospective with AI session discovery"
654
- not "feat: gstack-global-discover" + "feat: /retro global template".
655
- - The card must be self-contained. Someone seeing ONLY this block should understand
656
- the user's week without any surrounding context.
657
- - Do NOT include team members, project totals, or context switching data here.
658
-
659
- **Personal streak:** Use the user's own commits across all repos (filtered by
660
- `--author`) to compute a personal streak, separate from the team streak.
661
-
662
- ---
663
-
664
- ## Global Engineering Retro: [date range]
665
-
666
- Everything below is the full analysis — team data, project breakdowns, patterns.
667
- This is the "deep dive" that follows the shareable card.
668
-
669
- ### All Projects Overview
670
- | Metric | Value |
671
- |--------|-------|
672
- | Projects active | N |
673
- | Total commits (all repos, all contributors) | N |
674
- | Total LOC | +N / -N |
675
- | AI coding sessions | N (CC: X, Codex: Y, Gemini: Z) |
676
- | Active days | N |
677
- | Global shipping streak (any contributor, any repo) | N consecutive days |
678
- | Context switches/day | N avg (max: M) |
679
-
680
- ### Per-Project Breakdown
681
- For each repo (sorted by commits descending):
682
- - Repo name (with % of total commits)
683
- - Commits, LOC, PRs merged, top contributor
684
- - Key work (inferred from commit messages)
685
- - AI sessions by tool
686
-
687
- **Your Contributions** (sub-section within each project):
688
- For each project, add a "Your contributions" block showing the current user's
689
- personal stats within that repo. Use the user identity from `git config user.name`
690
- to filter. Include:
691
- - Your commits / total commits (with %)
692
- - Your LOC (+insertions / -deletions)
693
- - Your key work (inferred from YOUR commit messages only)
694
- - Your commit type mix (feat/fix/refactor/chore/docs breakdown)
695
- - Your biggest ship in this repo (highest-LOC commit or PR)
696
-
697
- If the user is the only contributor, say "Solo project — all commits are yours."
698
- If the user has 0 commits in a repo (team project they didn't touch this period),
699
- say "No commits this period — [N] AI sessions only." and skip the breakdown.
700
-
701
- Format:
702
-
703
- **Your contributions:** 47/244 commits (19%), +4.2k/-0.3k LOC
704
- Key work: Writer Chat, email blocking, security hardening
705
- Biggest ship: PR #605 — Writer Chat eats the admin bar (2,457 ins, 46 files)
706
- Mix: feat(3) fix(2) chore(1)
707
-
708
- ### Cross-Project Patterns
709
- - Time allocation across projects (% breakdown, use YOUR commits not total)
710
- - Peak productivity hours aggregated across all repos
711
- - Focused vs. fragmented days
712
- - Context switching trends
713
-
714
- ### Tool Usage Analysis
715
- Per-tool breakdown with behavioral patterns:
716
- - Claude Code: N sessions across M repos — patterns observed
717
- - Codex: N sessions across M repos — patterns observed
718
- - Gemini: N sessions across M repos — patterns observed
719
-
720
- ### Ship of the Week (Global)
721
- Highest-impact PR across ALL projects. Identify by LOC and commit messages.
722
-
723
- ### 3 Cross-Project Insights
724
- What the global view reveals that no single-repo retro could show.
725
-
726
- ### 3 Habits for Next Week
727
- Considering the full cross-project picture.
728
-
729
- ---
730
-
731
- ### Global Step 8: Load history & compare
732
-
733
- ```bash
734
- setopt +o nomatch 2>/dev/null || true # zsh compat
735
- ls -t ~/.gstack/retros/global-*.json 2>/dev/null | head -5
736
-
737
- **Only compare against a prior retro with the same `window` value** (e.g., 7d vs 7d). If the most recent prior retro has a different window, skip comparison and note: "Prior global retro used a different window — skipping comparison."
738
-
739
- If a matching prior retro exists, load it with the Read tool. Show a **Trends vs Last Global Retro** table with deltas for key metrics: total commits, LOC, sessions, streak, context switches/day.
740
-
741
- If no prior global retros exist, append: "First global retro recorded — run again next week to see trends."
742
-
743
- ### Global Step 9: Save snapshot
744
-
745
- ```bash
746
- mkdir -p ~/.gstack/retros
747
-
748
- Determine the next sequence number for today:
749
- ```bash
750
- setopt +o nomatch 2>/dev/null || true # zsh compat
751
- today=$(date +%Y-%m-%d)
752
- existing=$(ls ~/.gstack/retros/global-${today}-*.json 2>/dev/null | wc -l | tr -d ' ')
753
- next=$((existing + 1))
754
-
755
- Use the Write tool to save JSON to `~/.gstack/retros/global-${today}-${next}.json`:
756
-
757
- ```json
758
- {
759
- "type": "global",
760
- "date": "2026-03-21",
761
- "window": "7d",
762
- "projects": [
763
- {
764
- "name": "gstack",
765
- "remote": "<detected from git remote get-url origin, normalized to HTTPS>",
766
- "commits": 47,
767
- "insertions": 3200,
768
- "deletions": 800,
769
- "sessions": { "claude_code": 15, "codex": 3, "gemini": 0 }
770
- }
771
- ],
772
- "totals": {
773
- "commits": 182,
774
- "insertions": 15300,
775
- "deletions": 4200,
776
- "projects": 5,
777
- "active_days": 6,
778
- "sessions": { "claude_code": 48, "codex": 8, "gemini": 3 },
779
- "global_streak_days": 52,
780
- "avg_context_switches_per_day": 2.1
781
- },
782
- "tweetable": "Week of Mar 14: 5 projects, 182 commits, 15.3k LOC | CC: 48, Codex: 8, Gemini: 3 | Focus: gstack (58%) | Streak: 52d"
783
- }
784
-
785
- ---
786
-
787
- ## Compare Mode
788
-
789
- When the user runs `/retro compare` (or `/retro compare 14d`):
790
-
791
- 1. Compute metrics for the current window (default 7d) using the midnight-aligned start date (same logic as the main retro — e.g., if today is 2026-03-18 and window is 7d, use `--since="2026-03-11T00:00:00"`)
792
- 2. Compute metrics for the immediately prior same-length window using both `--since` and `--until` with midnight-aligned dates to avoid overlap (e.g., for a 7d window starting 2026-03-11: prior window is `--since="2026-03-04T00:00:00" --until="2026-03-11T00:00:00"`)
793
- 3. Show a side-by-side comparison table with deltas and arrows
794
- 4. Write a brief narrative highlighting the biggest improvements and regressions
795
- 5. Save only the current-window snapshot to `.context/retros/` (same as a normal retro run); do **not** persist the prior-window metrics.
796
-
797
- ## Tone
798
-
799
- - Encouraging but candid, no coddling
800
- - Specific and concrete — always anchor in actual commits/code
801
- - Skip generic praise ("great job!") — say exactly what was good and why
802
- - Frame improvements as leveling up, not criticism
803
- - **Praise should feel like something you'd actually say in a 1:1** — specific, earned, genuine
804
- - **Growth suggestions should feel like investment advice** — "this is worth your time because..." not "you failed at..."
805
- - Never compare teammates against each other negatively. Each person's section stands on its own.
806
- - Keep total output around 3000-4500 words (slightly longer to accommodate team sections)
807
- - Use markdown tables and code blocks for data, prose for narrative
808
- - Output directly to the conversation — do NOT write to filesystem (except the `.context/retros/` JSON snapshot)
809
-
810
- ## Important Rules
811
-
812
- - ALL narrative output goes directly to the user in the conversation. The ONLY file written is the `.context/retros/` JSON snapshot.
813
- - Use `origin/<default>` for all git queries (not local main which may be stale)
814
- - Display all timestamps in the user's local timezone (do not override `TZ`)
815
- - If the window has zero commits, say so and suggest a different window
816
- - Round LOC/hour to nearest 50
817
- - Treat merge commits as PR boundaries
818
- - Do not read CLAUDE.md or other docs — this skill is self-contained
819
- - On first run (no prior retros), skip comparison sections gracefully
820
- - **Global mode:** Does NOT require being inside a git repo. Saves snapshots to `~/.gstack/retros/` (not `.context/retros/`). Gracefully skip AI tools that aren't installed. Only compare against prior global retros with the same window value. If streak hits 365d cap, display as "365+ days".