Plan specification (enters plan mode)
Run /fetch-issue <ALG-XX> first to fetch issue context and create branch.
Enter plan mode:
Call the EnterPlanMode tool to begin planning.
Analyze fetched issue context from the conversation:
Ask up to 5 clarifying questions using AskUserQuestion:
Focus on:
Explore related code if needed:
Propose spec structure in the plan file: Write to the plan file (NOT spec.md yet) with:
@specs/alg-14-discover-chat)Exit plan mode:
Call ExitPlanMode to get user approval of the proposed spec structure.
After approval, write the spec file:
Get branch info: git rev-parse --abbrev-ref HEAD
Extract issue number from branch name (e.g., alg-27-* -> 27)
Write specs/alg-{NUM}-*/spec.md with the approved structure
Include header:
# Feature Specification: {Title}
**Feature Branch**: `{branch-name}`
**Created**: {ISO date}
**Status**: Draft
**Linear Issue**: [ALG-{NUM}](https://linear.app/algojuke/issue/ALG-{NUM})
**Input**: {Original issue description}
Commit the spec:
git add specs/alg-{NUM}-*/spec.md
git commit -m "spec: ALG-{NUM} - initial specification"
Follow the structure from existing specs like specs/alg-14-discover-chat/spec.md: