get-goal-prompt
Installation
SKILL.md
Generate /goal Command for Spec Execution
Arguments: $ARGUMENTS
Build a /goal command that will autonomously execute all specs in an ideation project, then copy it to the user's clipboard.
Step 1: Find the Contract
- If a path was provided in
$ARGUMENTS, use it - Otherwise, glob for
./docs/ideation/*/contract.md - If multiple found, pick the most recently modified
Read contract.md and extract:
- Project name and directory from the contract path
- Phases — title, spec path, and dependency ordering from the Execution Plan section
- Already-completed phases — run
git log --oneline --grep="spec-phase"to find commits referencing spec files. Exclude completed phases from the goal.
If no uncompleted phases remain, tell the user and stop.