Loading...
Loading...
Task decomposition, goal-oriented planning, and adaptive execution strategies for AI agents. Use when facing complex multi-step tasks that require structured approach.
npx skill4agent add alicoder001/agent-skills planningStructured approach for complex task execution.
flowchart TD
A[Complex Task] --> B[Subtask 1]
A --> C[Subtask 2]
A --> D[Subtask 3]
B --> E[Sub-subtask 1.1]
B --> F[Sub-subtask 1.2]## Task Breakdown Template
### Main Goal: [Description]
#### Phase 1: Research
- [ ] Understand requirements
- [ ] Explore existing code
- [ ] Identify dependencies
#### Phase 2: Implementation
- [ ] Create types/interfaces
- [ ] Implement core logic
- [ ] Add error handling
#### Phase 3: Verification
- [ ] Test functionality
- [ ] Check edge cases
- [ ] Review code quality// Dependency Graph Example
const taskDependencies = {
'create-api': [], // Independent
'create-types': [], // Independent
'create-service': ['create-types'], // Depends on types
'create-controller': ['create-service'], // Depends on service
'write-tests': ['create-controller'], // Depends on controller
};## Execution Strategy
1. **Parallel Tasks**: Independent tasks first
2. **Sequential Tasks**: Follow dependency order
3. **Validation Points**: Verify after each phase
4. **Rollback Plan**: Know how to undo## SMART Goals
- **S**pecific: Clear, unambiguous objective
- **M**easurable: Quantifiable success criteria
- **A**chievable: Realistic within constraints
- **R**elevant: Aligned with user needs
- **T**ime-bound: Has clear completion point## Re-Planning Protocol
1. **Detect**: Identify the blocker
2. **Analyze**: Why did the plan fail?
3. **Adapt**: Modify the approach
4. **Continue**: Resume with new plan
### Common Blockers
| Blocker | Response |
|---------|----------|
| Missing dependency | Install or find alternative |
| Type error | Fix types first |
| API unavailable | Mock or wait |
| Unclear requirement | Ask user |## Progress Template
### Task: [Name]
- Status: 🟡 In Progress
- Progress: 3/7 steps complete
- Blockers: None
- ETA: 2 more tool calls
### Completed
- [x] Step 1: Research
- [x] Step 2: Types
- [x] Step 3: Core logic
### Remaining
- [ ] Step 4: Error handling
- [ ] Step 5: Tests
- [ ] Step 6: Documentation
- [ ] Step 7: Review## Risk Matrix
| Risk | Probability | Impact | Mitigation |
|------|-------------|--------|------------|
| Breaking change | Medium | High | Test thoroughly |
| Performance issue | Low | Medium | Profile if needed |
| Type mismatch | High | Low | Use strict mode |