Skip to content

Commit 93c517d

Browse files
committed
Fix agent-specific paths in constitution update checklist
1 parent 60b015a commit 93c517d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/scripts/create-release-packages.sh

100644100755
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,22 @@ build_variant() {
137137
mkdir -p "$base_dir/.cursor/commands"
138138
generate_commands cursor md "\$ARGUMENTS" "$base_dir/.cursor/commands" "$script" ;;
139139
esac
140+
141+
# Replace agent-specific placeholders in constitution checklist
142+
local checklist="$base_dir/.specify/memory/constitution_update_checklist.md"
143+
if [[ -f "$checklist" ]]; then
144+
case $agent in
145+
claude)
146+
sed -i 's@__COMMANDS_PLAN_PATH__@/.claude/commands/plan.md@g; s@__COMMANDS_TASKS_PATH__@/.claude/commands/tasks.md@g; s@__AGENT_CONFIG_FILE__@/CLAUDE.md@g' "$checklist" ;;
147+
copilot)
148+
sed -i 's@__COMMANDS_PLAN_PATH__@/.github/prompts/plan.prompt.md@g; s@__COMMANDS_TASKS_PATH__@/.github/prompts/tasks.prompt.md@g; s@__AGENT_CONFIG_FILE__@/.github/copilot-instructions.md@g' "$checklist" ;;
149+
gemini)
150+
sed -i 's@__COMMANDS_PLAN_PATH__@/.gemini/commands/plan.toml@g; s@__COMMANDS_TASKS_PATH__@/.gemini/commands/tasks.toml@g; s@__AGENT_CONFIG_FILE__@/GEMINI.md@g' "$checklist" ;;
151+
cursor)
152+
sed -i 's@__COMMANDS_PLAN_PATH__@/.cursor/commands/plan.md@g; s@__COMMANDS_TASKS_PATH__@/.cursor/commands/tasks.md@g; s@__AGENT_CONFIG_FILE__@/CURSOR.md@g' "$checklist" ;;
153+
esac
154+
fi
155+
140156
( cd "$base_dir" && zip -r "../spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip" . )
141157
echo "Created spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip"
142158
}

memory/constitution_update_checklist.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ When amending the constitution (`/memory/constitution.md`), ensure all dependent
88
- [ ] `/templates/plan-template.md` - Update Constitution Check section
99
- [ ] `/templates/spec-template.md` - Update if requirements/scope affected
1010
- [ ] `/templates/tasks-template.md` - Update if new task types needed
11-
- [ ] `/.claude/commands/plan.md` - Update if planning process changes
12-
- [ ] `/.claude/commands/tasks.md` - Update if task generation affected
13-
- [ ] `/CLAUDE.md` - Update runtime development guidelines
11+
- [ ] `__COMMANDS_PLAN_PATH__` - Update if planning process changes
12+
- [ ] `__COMMANDS_TASKS_PATH__` - Update if task generation affected
13+
- [ ] `__AGENT_CONFIG_FILE__` - Update runtime development guidelines
1414

1515
### Article-specific updates:
1616

0 commit comments

Comments
 (0)