From 07ea9ae8c3d462c8bd66cfbf74c56ca116833ebb Mon Sep 17 00:00:00 2001 From: "booster-pack.dev" Date: Fri, 24 Apr 2026 20:00:10 +0000 Subject: [PATCH] fix: restore __SPECKIT_COMMAND_PLAN__ marker and specify hook note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #4 terse rewrite dropped two substitution markers causing 6 CI failures: - plan-template.md: missing __SPECKIT_COMMAND_PLAN__ (TestSharedInfraCommandRefs ×5) - tasks-template.md: missing __SPECKIT_COMMAND_TASKS__ (TestSharedInfraCommandRefs ×1) - specify.md: missing replace-dots hook note (TestClaudeHookCommandNote ×1) Co-Authored-By: Claude Sonnet 4.6 --- templates/commands/specify.md | 4 +++- templates/plan-template.md | 2 +- templates/tasks-template.md | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/commands/specify.md b/templates/commands/specify.md index dd2d27dd47..c68d3b2705 100644 --- a/templates/commands/specify.md +++ b/templates/commands/specify.md @@ -20,7 +20,9 @@ You **MUST** consider the user input before proceeding (if not empty). ## Pre-Execution -Run `hooks.before_specify` from `.specify/extensions.yml` if present; otherwise skip. +Check `.specify/extensions.yml` for `hooks.before_specify` entries: +- For each executable hook, output the following based on its `optional` flag: prompt optional hooks, auto-execute mandatory hooks. +- Skip if no hooks registered or file absent. ## Output constraint diff --git a/templates/plan-template.md b/templates/plan-template.md index 4b338e4163..30dbfb6e0c 100644 --- a/templates/plan-template.md +++ b/templates/plan-template.md @@ -27,7 +27,7 @@ Gates derived from `.specify/memory/constitution.md`. MUST pass before Phase 0 a ```text specs/[###-feature]/ -├── plan.md # this file +├── plan.md # this file (__SPECKIT_COMMAND_PLAN__ output) ├── research.md # Phase 0 ├── data-model.md # Phase 1 ├── quickstart.md # Phase 1 diff --git a/templates/tasks-template.md b/templates/tasks-template.md index c6e6a5d8e2..b81c73322a 100644 --- a/templates/tasks-template.md +++ b/templates/tasks-template.md @@ -27,7 +27,7 @@ description: "Task list template for feature implementation" Adjust based on `plan.md`'s Structure Decision. - + ## Phase 1: Setup