Plan
Create a detailed implementation plan.
terminal Command: /ak_cm_plan
Usage
/ak_cm_plan user authentication system
/ak_cm_plan refactor database layer
/ak_cm_plan add dark mode
Workflow
- UNDERSTAND - Clarify requirements through Socratic questioning
- RESEARCH - Check existing patterns and dependencies
- BREAK DOWN - Create 2-5 minute sub-tasks
- DOCUMENT - Write plan to
memory/plans/
Output Format
# Plan: [Feature Name]
## Overview
Brief description of goal.
## Tasks
1. [ ] Task 1 - file.ts
2. [ ] Task 2 - component.tsx
3. [ ] Task 3 - api.ts
...
## Dependencies
- List dependencies
## Risks
- Potential issues
## Verification
- How to verify completion
Example
/ak_cm_plan user authentication system
# AIKit generates:
# Plan: User Authentication System
## Overview
Implement JWT-based authentication with login/logout.
## Tasks
1. [ ] Create auth utility - src/utils/auth.ts
2. [ ] Create login API - src/api/login.ts
3. [ ] Create logout API - src/api/logout.ts
4. [ ] Create login page - src/pages/login.tsx
5. [ ] Add tests - tests/auth.test.ts
## Dependencies
- JWT library
- User model
## Risks
- JWT secret management
- Token refresh logic
## Verification
- Login works
- Logout clears token
- Tokens are stored securely
Best Practices
- Break down into small tasks - 2-5 minutes each
- Specify exact files - Clear where changes go
- List dependencies - What depends on what
- Identify risks - What could go wrong
- Define verification - How to know it's done
Related Commands
- /ak_cm_create - Create task first
- /ak_cm_implement - Implement the plan