Agent Planning Skill
This skill provides a structured workflow for analyzing user requests and breaking them down into a comprehensive, verifiable plan before any implementation begins.
When to Use
- When a user request is complex, multi-faceted, or ambiguous.
- BEFORE creating tickets in a project management tool or any other tracking system.
- When you need to ensure the user agrees with the proposed technical approach.
- When breaking down large features into parallelizable subtasks.
Instructions
1. Intent Analysis
- Restate the user's core goal in a single sentence.
- Identify "what" needs to be done vs "how" it will be implemented.
- Perform an "XY Problem" check: Is the user's request a sub-optimal path to a deeper goal?
- Clarify any ambiguities with the user before proceeding.
2. Solution Exploration
- Brainstorm at least 3-5 different technical approaches.
- Evaluate each approach based on:
- Feasibility: Can it be done with existing tools/code?
- Complexity: How hard is it to implement and maintain?
- Performance: Does it meet efficiency requirements?
- Verifiability: How easily can it be tested?
- Parallelizability: Can subtasks be executed in parallel?
- Recommend the best approach and justify the choice.
- Present the analysis to the user for feedback if needed.
3. Plan Creation
Create a new markdown file in .cursor/plans/ using a slugified name (e.g., .cursor/plans/2026-01-29-implement-feature-x.md).
The plan MUST include:
- Context: Architectural decisions, constraints, requirements, related systems/components, high-level goals and rationale. This section provides the "why" and "what constraints exist" that will be inherited by all subtasks.
- Development Philosophy: High-level guiding principles for the implementation (e.g., Readability over Migration, No Lint Disables, Verifiable Changes).
- Summary: High-level overview of what will be accomplished.
- Phases: Group tasks into logical milestones (e.g., Discovery, Implementation, Verification).
- Mandatory Visualizations: For complex plans, you MUST include Mermaid diagrams for:
- System Architecture: (e.g.,
graph LR) Component relationships.
- Task Dependencies: (e.g.,
graph TD) The critical path and parallel work.
- Agent Orchestration: (e.g.,
sequenceDiagram) How subagents collaborate.
- Logic Sequence: (e.g.,
sequenceDiagram) The step-by-step logic flow.
- Atomic Tasks: Breakdown each phase into fine-grained, mutually exclusive tasks.
- Each task should be independent where possible to enable parallel execution.
- Tasks should have clear boundaries (no overlapping work).
- Tasks should be small enough for a single agent to complete efficiently.
- Acceptance Criteria: For each task, define what "Done" looks like.
- Test Plan: How each task will be verified (commands, expected output, test cases).
- Dependencies: Document which tasks depend on others (if any).
- Related Context: Links to ADRs, documentation, related work, or external references.
Plan File Template
# Plan: [Feature Name]
## Context
### Goals
[What we're trying to achieve - the "why" behind this work]
### Architectural Decisions
[Key technical choices and rationale - what approach we're taking and why]
### Constraints
[Limitations, requirements, dependencies - what we must work within]
### Related Systems
[Components this work affects or depends on - integration points]
## Development Philosophy
- **Readability over Migration**: Prioritize clean, readable code over maintaining legacy interfaces if they hinder the design.
- **No Lint Disables**: Ban `eslint-disable` or similar comments; fix the root cause instead.
- **Verifiable Changes**: Every task must end with a passing test or a dev-command verification.
## Summary
[One paragraph describing the overall goal]
## Visualizations
### System Architecture
```mermaid
graph LR
User[User/Client] --> API[API Gateway/Service]
API --> DB[(Database)]
API --> Cache((Redis))
```
### Task Dependencies
```mermaid
graph TD
Phase1[Phase 1: Setup] --> Phase2[Phase 2: Implementation]
Phase1 --> Phase3[Phase 3: Verification]
Task1[Task 1] --> Task2[Task 2]
```
### Agent Orchestration
```mermaid
sequenceDiagram
participant O as Orchestrator
participant W as Worker
participant E as Explore
O->>E: Research Codebase
E-->>O: Results
O->>W: Delegate Task #1
W-->>O: Task Complete
```
### Logic Sequence
```mermaid
sequenceDiagram
participant C as Component
participant S as Service
participant A as API
C->>S: triggerAction()
S->>A: fetchResource()
A-->>S: Response
S-->>C: Update State
```
## Phases
### Phase 1: [Phase Name]
- **Objective**: [What this phase accomplishes]
- **Context Inheritance**: [Note how this phase relates to the overall Context]
#### Tasks
1. **[Task Name]**
- **Acceptance Criteria**: [What "done" means]
- **Test Plan**: [How to verify]
- **Dependencies**: [None or list of prerequisite tasks]
2. **[Task Name]**
- ...
### Phase 2: [Phase Name]
...
## Related Context
- ADR #[number]: [Link to relevant architecture decision]
- Documentation: [Links to relevant docs]
- Related Work: [Links to related features or tasks]
4. User Verification
- Present the plan to the user.
- DO NOT proceed to ticket creation or implementation until the user has explicitly approved the plan or the plan file is finalized.
- If the user requests changes, update the plan file and re-present for approval.
5. Handoff
- Once the plan is verified, the planning phase is complete.
- Syncing this plan to external tracking systems (e.g., Vibe Kanban, Jira, GitHub Issues) is the responsibility of the calling agent (the "Orchestrator") using their specialized management skills.
Best Practices
- Atomic Tasks: Break work into the smallest meaningful units that can be verified independently.
- Mutually Exclusive: Ensure tasks don't overlap to prevent conflicts during parallel execution.
- Clear Criteria: Each task should have unambiguous acceptance criteria.
- Testable: Every task should have a clear test plan.
- Parallelizable: Design tasks to maximize opportunities for parallel execution.
References
- Use
.cursor/rules/development_workflow.mdc for lifecycle alignment.
- Refer to Orchestrator agent definitions (e.g.,
.cursor/agents/vibe-orchestrator.md) for how this skill integrates with specific project management workflows.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: plan-tasks3description: General-purpose planning skill to break down complex goals into atomic, verifiable units of work. Independent of specific tracking tools. Use when this capability is needed.4---56# Agent Planning Skill78This skill provides a structured workflow for analyzing user requests and breaking them down into a comprehensive, verifiable plan before any implementation begins.910## When to Use1112- When a user request is complex, multi-faceted, or ambiguous.13- BEFORE creating tickets in a project management tool or any other tracking system.14- When you need to ensure the user agrees with the proposed technical approach.15- When breaking down large features into parallelizable subtasks.1617## Instructions1819### 1. Intent Analysis2021- Restate the user's core goal in a single sentence.22- Identify "what" needs to be done vs "how" it will be implemented.23- Perform an "XY Problem" check: Is the user's request a sub-optimal path to a deeper goal?24- Clarify any ambiguities with the user before proceeding.2526### 2. Solution Exploration2728- Brainstorm at least 3-5 different technical approaches.29- Evaluate each approach based on:30 - **Feasibility**: Can it be done with existing tools/code?31 - **Complexity**: How hard is it to implement and maintain?32 - **Performance**: Does it meet efficiency requirements?33 - **Verifiability**: How easily can it be tested?34 - **Parallelizability**: Can subtasks be executed in parallel?35- Recommend the best approach and justify the choice.36- Present the analysis to the user for feedback if needed.3738### 3. Plan Creation3940Create a new markdown file in `.cursor/plans/` using a slugified name (e.g., `.cursor/plans/2026-01-29-implement-feature-x.md`).4142The plan **MUST** include:4344- **Context**: Architectural decisions, constraints, requirements, related systems/components, high-level goals and rationale. This section provides the "why" and "what constraints exist" that will be inherited by all subtasks.45- **Development Philosophy**: High-level guiding principles for the implementation (e.g., Readability over Migration, No Lint Disables, Verifiable Changes).46- **Summary**: High-level overview of what will be accomplished.47- **Phases**: Group tasks into logical milestones (e.g., Discovery, Implementation, Verification).48- **Mandatory Visualizations**: For complex plans, you MUST include Mermaid diagrams for:49 - **System Architecture**: (e.g., `graph LR`) Component relationships.50 - **Task Dependencies**: (e.g., `graph TD`) The critical path and parallel work.51 - **Agent Orchestration**: (e.g., `sequenceDiagram`) How subagents collaborate.52 - **Logic Sequence**: (e.g., `sequenceDiagram`) The step-by-step logic flow.53- **Atomic Tasks**: Breakdown each phase into fine-grained, mutually exclusive tasks.54 - Each task should be independent where possible to enable parallel execution.55 - Tasks should have clear boundaries (no overlapping work).56 - Tasks should be small enough for a single agent to complete efficiently.57- **Acceptance Criteria**: For each task, define what "Done" looks like.58- **Test Plan**: How each task will be verified (commands, expected output, test cases).59- **Dependencies**: Document which tasks depend on others (if any).60- **Related Context**: Links to ADRs, documentation, related work, or external references.6162#### Plan File Template6364````markdown65# Plan: [Feature Name]6667## Context6869### Goals7071[What we're trying to achieve - the "why" behind this work]7273### Architectural Decisions7475[Key technical choices and rationale - what approach we're taking and why]7677### Constraints7879[Limitations, requirements, dependencies - what we must work within]8081### Related Systems8283[Components this work affects or depends on - integration points]8485## Development Philosophy8687- **Readability over Migration**: Prioritize clean, readable code over maintaining legacy interfaces if they hinder the design.88- **No Lint Disables**: Ban `eslint-disable` or similar comments; fix the root cause instead.89- **Verifiable Changes**: Every task must end with a passing test or a dev-command verification.9091## Summary9293[One paragraph describing the overall goal]9495## Visualizations9697### System Architecture9899```mermaid100graph LR101 User[User/Client] --> API[API Gateway/Service]102 API --> DB[(Database)]103 API --> Cache((Redis))104```105106### Task Dependencies107108```mermaid109graph TD110 Phase1[Phase 1: Setup] --> Phase2[Phase 2: Implementation]111 Phase1 --> Phase3[Phase 3: Verification]112 Task1[Task 1] --> Task2[Task 2]113```114115### Agent Orchestration116117```mermaid118sequenceDiagram119 participant O as Orchestrator120 participant W as Worker121 participant E as Explore122 O->>E: Research Codebase123 E-->>O: Results124 O->>W: Delegate Task #1125 W-->>O: Task Complete126```127128### Logic Sequence129130```mermaid131sequenceDiagram132 participant C as Component133 participant S as Service134 participant A as API135 C->>S: triggerAction()136 S->>A: fetchResource()137 A-->>S: Response138 S-->>C: Update State139```140141## Phases142143### Phase 1: [Phase Name]144145- **Objective**: [What this phase accomplishes]146- **Context Inheritance**: [Note how this phase relates to the overall Context]147148#### Tasks1491501. **[Task Name]**151 - **Acceptance Criteria**: [What "done" means]152 - **Test Plan**: [How to verify]153 - **Dependencies**: [None or list of prerequisite tasks]1541552. **[Task Name]**156 - ...157158### Phase 2: [Phase Name]159160...161162## Related Context163164- ADR #[number]: [Link to relevant architecture decision]165- Documentation: [Links to relevant docs]166- Related Work: [Links to related features or tasks]167````168169### 4. User Verification170171- Present the plan to the user.172- **DO NOT** proceed to ticket creation or implementation until the user has explicitly approved the plan or the plan file is finalized.173- If the user requests changes, update the plan file and re-present for approval.174175### 5. Handoff176177- Once the plan is verified, the planning phase is complete.178- Syncing this plan to external tracking systems (e.g., Vibe Kanban, Jira, GitHub Issues) is the responsibility of the calling agent (the "Orchestrator") using their specialized management skills.179180## Best Practices181182- **Atomic Tasks**: Break work into the smallest meaningful units that can be verified independently.183- **Mutually Exclusive**: Ensure tasks don't overlap to prevent conflicts during parallel execution.184- **Clear Criteria**: Each task should have unambiguous acceptance criteria.185- **Testable**: Every task should have a clear test plan.186- **Parallelizable**: Design tasks to maximize opportunities for parallel execution.187188## References189190- Use `.cursor/rules/development_workflow.mdc` for lifecycle alignment.191- Refer to Orchestrator agent definitions (e.g., `.cursor/agents/vibe-orchestrator.md`) for how this skill integrates with specific project management workflows.192193---194> Converted and distributed by [TomeVault](https://tomevault.io/claim/yu-iskw) — claim your Tome and manage your conversions.195<!-- tomevault:4.0:skill_md:2026-04-15 -->