From 4bda4807a8b998197bc812c5b207676ef2482437 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sun, 1 Nov 2026 16:55:51 +0000 Subject: [PATCH] fix(retro): keep today="" in Step 12 so the judge excerpt keeps both date inputs Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- retro/SKILL.md | 7 ++++--- retro/SKILL.md.tmpl | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/retro/SKILL.md b/retro/SKILL.md index 3c6136a1f..85b3ba8df 100644 --- a/retro/SKILL.md +++ b/retro/SKILL.md @@ -504,15 +504,16 @@ End the section with: `N markers, M with no trigger.` If none: `No shortcut debt ### Step 12: Load History & Compare -Load history (shared across worktrees; `` = session-reminder date): +Load history, shared across worktrees (``: session-reminder date): ```bash _RM="$HOME/.claude/skills/gstack/bin/gstack-retro-metrics" [ -x "$_RM" ] || _RM=".claude/skills/gstack/bin/gstack-retro-metrics" -"$_RM" --history --next "" +today="" +"$_RM" --history --next "$today" ``` -`RETRO_PRIOR:` lists snapshots, newest first (skip `{}` stubs). On `RETRO_HISTORY_ERROR:` show its fix, skip history and Step 13. No `RETRO_FILE:` otherwise: stale helper; skip history, suggest `/gstack-upgrade`. +`RETRO_PRIOR:` lists snapshots, newest first (skip `{}` stubs). On `RETRO_HISTORY_ERROR:` show its fix, skip history and Step 13. No `RETRO_FILE:` otherwise: stale helper; suggest `/gstack-upgrade`. **If prior retros exist:** Load the most recent one with the same `window` using the Read tool; if none matches, disclose that and skip historical deltas. Calculate deltas for available key metrics and include a **Trends vs Last Retro** section (in `compare` mode use the freshly computed prior period instead): ``` diff --git a/retro/SKILL.md.tmpl b/retro/SKILL.md.tmpl index 9a2bd9167..00a7d8961 100644 --- a/retro/SKILL.md.tmpl +++ b/retro/SKILL.md.tmpl @@ -349,15 +349,16 @@ End the section with: `N markers, M with no trigger.` If none: `No shortcut debt ### Step 12: Load History & Compare -Load history (shared across worktrees; `` = session-reminder date): +Load history, shared across worktrees (``: session-reminder date): ```bash _RM="{{RUNTIME_ROOT}}/bin/gstack-retro-metrics" [ -x "$_RM" ] || _RM=".claude/skills/gstack/bin/gstack-retro-metrics" -"$_RM" --history --next "" +today="" +"$_RM" --history --next "$today" ``` -`RETRO_PRIOR:` lists snapshots, newest first (skip `{}` stubs). On `RETRO_HISTORY_ERROR:` show its fix, skip history and Step 13. No `RETRO_FILE:` otherwise: stale helper; skip history, suggest `/gstack-upgrade`. +`RETRO_PRIOR:` lists snapshots, newest first (skip `{}` stubs). On `RETRO_HISTORY_ERROR:` show its fix, skip history and Step 13. No `RETRO_FILE:` otherwise: stale helper; suggest `/gstack-upgrade`. **If prior retros exist:** Load the most recent one with the same `window` using the Read tool; if none matches, disclose that and skip historical deltas. Calculate deltas for available key metrics and include a **Trends vs Last Retro** section (in `compare` mode use the freshly computed prior period instead): ```