From f059a6cfb39542443845480070cc3339a463317e Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Thu, 22 Jan 2026 20:32:10 -0600 Subject: [PATCH] fix: use *-CONTEXT.md glob for filename variants Standardize on *-CONTEXT.md glob pattern to match files like 03-CONTEXT.md across all workflows. Files updated: - commands/gsd/plan-phase.md - commands/gsd/research-phase.md - get-shit-done/workflows/discuss-phase.md - get-shit-done/workflows/resume-project.md Closes #219 Co-Authored-By: Claude Opus 4.5 --- commands/gsd/plan-phase.md | 2 +- commands/gsd/research-phase.md | 2 +- get-shit-done/workflows/discuss-phase.md | 2 +- get-shit-done/workflows/resume-project.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/gsd/plan-phase.md b/commands/gsd/plan-phase.md index 237950ba4..4055c4b4b 100644 --- a/commands/gsd/plan-phase.md +++ b/commands/gsd/plan-phase.md @@ -173,7 +173,7 @@ REQUIREMENTS=$(cat .planning/REQUIREMENTS.md 2>/dev/null | grep -A100 "## Requir DECISIONS=$(grep -A20 "### Decisions Made" .planning/STATE.md 2>/dev/null) # Get phase context if exists -PHASE_CONTEXT=$(cat "${PHASE_DIR}/${PHASE}-CONTEXT.md" 2>/dev/null) +PHASE_CONTEXT=$(cat "${PHASE_DIR}"/*-CONTEXT.md 2>/dev/null) ``` Fill research prompt and spawn: diff --git a/commands/gsd/research-phase.md b/commands/gsd/research-phase.md index ee21d3336..209529f37 100644 --- a/commands/gsd/research-phase.md +++ b/commands/gsd/research-phase.md @@ -81,7 +81,7 @@ ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null ```bash grep -A20 "Phase ${PHASE}:" .planning/ROADMAP.md cat .planning/REQUIREMENTS.md 2>/dev/null -cat .planning/phases/${PHASE}-*/${PHASE}-CONTEXT.md 2>/dev/null +cat .planning/phases/${PHASE}-*/*-CONTEXT.md 2>/dev/null grep -A30 "### Decisions Made" .planning/STATE.md 2>/dev/null ``` diff --git a/get-shit-done/workflows/discuss-phase.md b/get-shit-done/workflows/discuss-phase.md index f12619a26..915bd1ace 100644 --- a/get-shit-done/workflows/discuss-phase.md +++ b/get-shit-done/workflows/discuss-phase.md @@ -132,7 +132,7 @@ Check if CONTEXT.md already exists: ```bash # Match both zero-padded (05-*) and unpadded (5-*) folders PADDED_PHASE=$(printf "%02d" ${PHASE}) -ls .planning/phases/${PADDED_PHASE}-*/CONTEXT.md .planning/phases/${PADDED_PHASE}-*/${PADDED_PHASE}-CONTEXT.md .planning/phases/${PHASE}-*/CONTEXT.md .planning/phases/${PHASE}-*/${PHASE}-CONTEXT.md 2>/dev/null +ls .planning/phases/${PADDED_PHASE}-*/*-CONTEXT.md .planning/phases/${PHASE}-*/*-CONTEXT.md 2>/dev/null ``` **If exists:** diff --git a/get-shit-done/workflows/resume-project.md b/get-shit-done/workflows/resume-project.md index 6047162a6..7165f7dc9 100644 --- a/get-shit-done/workflows/resume-project.md +++ b/get-shit-done/workflows/resume-project.md @@ -197,7 +197,7 @@ What would you like to do? **Note:** When offering phase planning, check for CONTEXT.md existence first: ```bash -ls .planning/phases/XX-name/CONTEXT.md 2>/dev/null +ls .planning/phases/XX-name/*-CONTEXT.md 2>/dev/null ``` If missing, suggest discuss-phase before plan. If exists, offer plan directly.