aegis plan
The /aegis plan
command is a primary entry point for new projects, focusing on creating and maintaining the project planning document and automatically creating initial tasks. It guides users through defining project goals, technical architecture, and implementation approach, then converts the implementation phases into planned tasks.
Usage
/aegis plan
Important Rules
File Scope:
Works with
planning_document.md
in project rootCreates initial tasks in
.context/tasks/planned
Uses task template from
.context/tasks/TEMPLATE.md
DO NOT update current_state.md
DO NOT modify .context directory structure
Document Focus:
Clear project objectives
Concrete technical decisions
Specific implementation steps
Defined success criteria
Phase-based implementation
Task-ready structure
Workflow
Document Creation/Loading:
Check for existing planning_document.md
Create new document if none exists
Load existing document for updates
Validate document structure
Planning Process:
Project goals and requirements
Technical architecture decisions
Implementation approach
Timeline and milestones
Success criteria definition
Document Updates:
Incorporate user feedback
Refine existing sections
Add missing details
Clarify ambiguous points
Maintain document focus
Task Creation:
Extract implementation phases
Create task files from phases
Set task priorities from timeline
Link task dependencies
Maintain phase order
Document Structure
# Project Title
## Project Overview
- Current State
- Target State
- Success Criteria
## Goals and Requirements
- Primary Objectives
- Technical Requirements
- Success Metrics
## Technical Architecture
- System Design
- Technology Choices
- Integration Points
- Security Considerations
## Implementation Approach
### Phase 1: [Phase Name]
1. [Task Description]
2. [Task Description]
3. [Task Description]
### Phase 2: [Phase Name]
1. [Task Description]
2. [Task Description]
3. [Task Description]
## Timeline and Milestones
- Phase Breakdown
- Key Deliverables
- Target Dates
- Dependencies
Task Creation Rules
Task Structure:
Each phase becomes a task
Phase name becomes task title
Phase content becomes task description
Tasks numbered sequentially
Initial status set to "planned"
Task Naming:
Format:
NN_phase_name
NN: Sequential number (01, 02, etc.)
phase_name: Lowercase, underscored
Task Priority:
Derived from timeline position
Earlier phases get higher priority
Maintains implementation order
Task Dependencies:
Based on phase order
Earlier phases link to later ones
Maintains project flow
Validation Rules
Document Format:
Valid markdown syntax
Required sections present
Clear section hierarchy
Consistent formatting
Phase-based implementation
Content Quality:
Clear objectives
Specific requirements
Actionable steps
Measurable criteria
Task-ready phases
Document Focus:
Project-specific content
Technical clarity
Implementation details
Timeline realism
Phase dependencies
Success Criteria
Planning document exists and is valid
All required sections are complete
Goals and requirements are clear
Technical decisions are documented
Implementation steps are defined
Timeline is realistic and detailed
Tasks created for all phases
Task dependencies correctly linked
Error Handling
Missing Document:
Error: No planning document found Solution: Creating new planning_document.md
Invalid Format:
Error: Invalid document structure Solution: Restructuring document to match template
Incomplete Sections:
Error: Missing required sections Solution: Adding template sections with guidance
Task Creation Failed:
Error: Failed to create tasks from phases Solution: Check phase structure and task template
Next Steps
After planning completion:
Review planning document
Review created tasks in .context/tasks/planned
Begin implementation with
/aegis start
Activate first planned task
Start development work
Related Documentation
Last updated