Plan technical research (enters plan mode)
Optional implementation guidelines: $ARGUMENTS Examples:
Enter plan mode:
Call the EnterPlanMode tool to begin planning.
Get current feature from branch:
BRANCH=$(git rev-parse --abbrev-ref HEAD)
# Extract: alg-27-feature-name -> 27
NUM=$(echo "$BRANCH" | grep -oE 'alg-([0-9]+)' | grep -oE '[0-9]+')
Read the spec:
specs/alg-${NUM}-*/spec.mdIncorporate user guidelines (if $ARGUMENTS provided):
Explore codebase to identify:
Propose research plan in the plan file: Write to the plan file (NOT research.md yet) with:
Exit plan mode:
Call ExitPlanMode to get user approval of the research plan.
After approval, conduct research:
Write research.md:
# Research: {Feature Title}
**Date**: {ISO date}
**Feature**: ALG-{NUM}
**Implementation Guidance**: {$ARGUMENTS if provided}
## Executive Summary
{Brief overview of key decisions}
## Key Decisions
### 1. {Decision Title}
**Decision**: {What was decided}
**Rationale**: {Why this approach}
**Alternatives Considered**:
- {Alternative 1}: {Why rejected}
- {Alternative 2}: {Why rejected}
## Implementation Patterns
{Code snippets from codebase showing patterns to follow}
## Files to Modify
- `path/to/file.ts`: {What changes}
Commit the research:
git add specs/alg-${NUM}-*/research.md
git commit -m "spec: ALG-${NUM} - research and decisions"