Implement Plan
Execute the implementation plan, making code changes and committing according to guidelines.
Instructions
- •
Find and Load Plan
- •Detect workflow folder from current git branch
- •Read
.ai/<folder>/plan.md - •If no plan exists, suggest running
/create-planfirst
- •
Verify Prerequisites
- •Confirm on correct feature branch
- •Check working directory is clean (
git status) - •Ensure tests pass before starting:
go test ./...
- •
Load Guidelines
- •Read CODING_GUIDELINES.md for implementation standards
- •Read COMMIT_GUIDELINES.md for commit format
- •Read GIT_TEST_SCENARIOS.md when implementing tests (required for Git scenario setup)
- •
Execute Tasks
For each task in the plan:
Before Each Task
- •Review task requirements and identify all files to modify
- •Read CODING_GUIDELINES.md rules relevant to the change
Code Changes
- •Make focused, atomic changes
- •Follow existing patterns in the codebase
- •Keep changes minimal — don't over-engineer
After Each Task
- •Verify build:
go build ./... - •Run tests:
go test ./... - •Review changes:
git diff
- •
Commit Strategy
When to Commit
- •After completing a logical unit of work
- •After each checkpoint in the plan
- •Keep commits atomic and focused
- •Use
/commitskill for proper formatting
- •
Checkpoint Verification
At each checkpoint in the plan:
- • Build succeeds:
go build ./... - • Tests pass:
go test ./... - • Expected behavior works
- • Changes committed
- • Build succeeds:
- •
Track Progress
Update plan.md checkboxes as tasks complete:
markdown- [x] Completed task - [ ] Pending task
- •
Handle Issues
If problems arise:
- •Document the issue
- •Check if it affects the plan
- •Adjust approach if needed
- •Ask for clarification if blocked
Completion
When all tasks are done:
- •Verify all tests pass
- •Check all checkboxes in plan.md are complete
- •Suggest running
/local-reviewbefore PR