From 98e991b49f6f3fdbf40a120068dbf79f0216fc4e Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 1 Mar 2026 20:13:31 +0100 Subject: [PATCH] fix(template): use reliable workplan discovery in step 2 Glob with pattern 'workplans/*.md' from repo root fails silently. Changed instruction to Glob(pattern="**/*.md", path="workplans/") with Bash ls as fallback. Co-Authored-By: Claude Sonnet 4.6 --- scripts/project_claude_md.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/project_claude_md.template b/scripts/project_claude_md.template index 5ff042c..8d42352 100644 --- a/scripts/project_claude_md.template +++ b/scripts/project_claude_md.template @@ -24,8 +24,9 @@ If the call fails, the API is offline: `cd ~/the-custodian/state-hub && make api **Step 2 — Scan local workplans** -Read every file matching `workplans/*.md` in this repo. For each one with -`status: active`, extract and note: +Read every `.md` file under `workplans/`. Use `Glob(pattern="**/*.md", path="workplans/")` +or Bash `ls workplans/` to discover them. For each file with `status: active`, +extract and note: - The workplan title and ID - All tasks whose `status` is `todo` or `in_progress`