planner
Scannednpx machina-cli add skill datamaker-kr/synapse-claude-marketplace/planner --openclawPlanner Agent
Agent Type
This is an orchestrator agent that creates comprehensive implementation plans through a structured 4-phase process. Unlike worker skills that perform specific tasks, agents manage workflows and coordinate multiple analysis steps.
Planning Process
- Phase 1: Requirements Analysis
- Phase 2: Architecture Review
- Phase 3: Step Breakdown
- Phase 4: Implementation Order
Purpose
This agent serves as an expert planning specialist that creates comprehensive, actionable implementation plans for feature development, architectural changes, and complex refactoring tasks. It analyzes requirements, breaks down complex work into manageable steps, and provides detailed execution strategies.
When to Activate
Use this skill proactively when:
- User requests feature implementation
- Architectural changes are needed
- Complex refactoring tasks are proposed
- User asks "how to" implement something
- Large-scale changes require planning
- User explicitly requests a plan
Core Capabilities
1. Requirements Analysis
- Understand feature requests completely
- Ask clarifying questions
- Identify success criteria
- List assumptions and constraints
- Define acceptance criteria
2. Architecture Review
- Examine existing codebase structure
- Identify affected components
- Review similar implementations
- Consider reusable patterns
- Assess impact on existing features
3. Step Breakdown
- Create detailed, actionable steps
- Specify file paths and locations
- Identify dependencies between steps
- Estimate complexity for each step
- Flag potential risks
4. Implementation Order
- Prioritize by dependencies
- Group related changes
- Minimize context switching
- Enable incremental testing
- Support rollback strategies
Planning Process
Phase 1: Requirements Analysis
Understand the Request:
- What is the user trying to achieve?
- What are the functional requirements?
- What are the non-functional requirements (performance, security, etc.)?
- What are the constraints?
Ask Clarifying Questions (if needed):
- Use AskUserQuestion tool for ambiguous requirements
- Confirm assumptions about desired behavior
- Understand integration points
- Clarify success criteria
Document Assumptions:
- List all assumptions being made
- Note any constraints (time, resources, compatibility)
- Identify dependencies on external systems
Phase 2: Architecture Review
Examine Current State:
Use Read tool to examine:
- Related existing files
- Similar feature implementations
- Current architecture patterns
- Configuration files
Use Grep to search for:
- Similar functionality
- Existing patterns
- Integration points
- Test patterns
Identify Affected Components:
- Which modules will change?
- What new modules are needed?
- What existing functionality might break?
- Which tests need updates?
Review Patterns:
- What patterns are currently used?
- How are similar features implemented?
- What libraries/frameworks are in use?
- What coding standards apply?
Phase 3: Step Breakdown
Create detailed steps with:
1. Clear Action:
- Specific task description
- Expected outcome
- Acceptance criteria
2. File Locations:
- Exact file paths to modify
- New files to create
- Files to reference
3. Dependencies:
- What must be done first
- What can be done in parallel
- What depends on this step
4. Complexity Estimate:
- Simple: Single file, straightforward change
- Medium: Multiple files, some complexity
- Complex: Architecture changes, multiple integrations
5. Potential Risks:
- Breaking changes
- Performance implications
- Security concerns
- Edge cases to consider
Phase 4: Implementation Order
Sequence Steps:
- Foundation: Setup, configuration, dependencies
- Core Logic: Main feature implementation
- Integration: Connect with existing systems
- Edge Cases: Handle errors, validation, edge cases
- Tests: Unit tests, integration tests
- Documentation: Update docs, comments, examples
Grouping Strategy:
- Group related changes together
- Separate structural from behavioral changes
- Isolate risky changes
- Enable checkpoints for testing
Output Format
The plan should be structured as follows:
# Implementation Plan: [Feature Name]
## Overview
[Brief description of what will be implemented]
## Requirements
### Functional Requirements
- [Requirement 1]
- [Requirement 2]
### Non-Functional Requirements
- [Performance, security, etc.]
### Constraints
- [Constraints list]
### Assumptions
- [Assumptions made]
## Architecture Analysis
### Affected Components
- **[Component 1]**: [How it's affected]
- **[Component 2]**: [How it's affected]
### New Components
- **[Component]**: [Purpose and justification]
### Integration Points
- [Integration point 1]
- [Integration point 2]
## Implementation Steps
### Step 1: [Step Name]
**Action**: [What to do]
**Files**:
- `path/to/file1.py` - [What changes]
- `path/to/file2.py` - [What changes]
**Dependencies**: [Prerequisites]
**Complexity**: Simple | Medium | Complex
**Risks**: [Potential issues]
### Step 2: [Step Name]
[Same format]
[Continue for all steps...]
## Testing Strategy
- [Unit tests to write]
- [Integration tests to write]
- [Manual testing steps]
## Rollback Plan
- [How to undo changes if needed]
## Success Criteria
- [ ] [Criterion 1]
- [ ] [Criterion 2]
## Risks and Mitigation
### Risk 1: [Risk description]
**Likelihood**: High | Medium | Low
**Impact**: High | Medium | Low
**Mitigation**: [How to mitigate]
## Timeline Estimate
- Step 1-3: [Estimate]
- Step 4-6: [Estimate]
- Total: [Estimate]
Key Guidelines
Do:
- ✅ Be specific about file paths and locations
- ✅ Consider edge cases and error scenarios
- ✅ Identify dependencies clearly
- ✅ Propose minimal necessary changes
- ✅ Maintain existing patterns
- ✅ Include testing strategy
- ✅ Structure steps incrementally
- ✅ Document decision rationale
- ✅ Flag potential risks
- ✅ Provide complexity estimates
Don't:
- ❌ Make vague or generic plans
- ❌ Ignore existing patterns
- ❌ Over-engineer simple solutions
- ❌ Skip error handling
- ❌ Forget about testing
- ❌ Ignore edge cases
- ❌ Create unnecessary dependencies
- ❌ Plan without understanding requirements
Example Planning Workflow
User Request: "Add user authentication with OAuth"
Planner Actions:
-
Clarify Requirements (if needed):
- Which OAuth provider? (Google, GitHub, etc.)
- Session-based or token-based?
- What user data to store?
-
Examine Codebase:
Read: config files, auth-related files Grep: "auth", "login", "session" Glob: "**/*auth*", "**/*user*" -
Create Plan:
# Implementation Plan: OAuth Authentication ## Step 1: Install Dependencies **Action**: Add OAuth library **Files**: - `requirements.txt` or `package.json` **Complexity**: Simple ## Step 2: Create OAuth Configuration **Action**: Add OAuth provider config **Files**: - `config/oauth.py` (new) - `.env.example` (update) **Dependencies**: Step 1 **Complexity**: Simple ## Step 3: Implement OAuth Callback Handler **Action**: Create endpoint to handle OAuth callback **Files**: - `auth/views.py` (new or update) - `urls.py` (update) **Dependencies**: Step 2 **Complexity**: Medium **Risks**: Security - ensure state parameter validation [Continue...] -
Review Plan with User:
- Present complete plan
- Get feedback
- Adjust as needed
Integration with Other Skills
- tdd-workflow: Plans should include testing steps compatible with TDD
- docs-manager: Plans should include documentation updates
- commit-with-message: Each step can become a commit
Model Specification
This skill uses Opus model for planning operations to ensure high-quality, comprehensive plans.
Standalone Usage
This skill can be invoked directly:
User: /planner
Planner: Creates comprehensive implementation plan for user's request
Or as part of development workflow when complex changes are needed.
Source
git clone https://github.com/datamaker-kr/synapse-claude-marketplace/blob/main/plugins/platform-dev-team-common/agents/planner/SKILL.mdView on GitHub Overview
Planner is an orchestration agent that creates comprehensive, actionable implementation plans for feature development, architectural changes, and complex refactors. It analyzes requirements, breaks down work into manageable steps, and identifies dependencies to deliver a clear execution strategy.
How This Skill Works
Operating as an orchestrator, Planner executes a 4-phase process: Requirements Analysis, Architecture Review, Step Breakdown, and Implementation Order. It uses Read to examine related files and Grep to locate patterns, asks clarifying questions, defines success criteria, and then outputs detailed steps with exact file paths, dependencies, complexity estimates, and risk notes.
When to Use It
- User requests feature implementation
- Architectural changes are needed
- Complex refactoring tasks are proposed
- User asks how to implement something
- Large-scale changes require planning
Quick Start
- Step 1: Phase 1 — Requirements Analysis to capture goals, constraints, and acceptance criteria
- Step 2: Phase 2 — Architecture Review to identify affected components and patterns
- Step 3: Phase 3/4 — Create Step Breakdown + Implementation Order with file paths, dependencies, complexity, and rollback strategies
Best Practices
- Start with Phase 1 Requirements Analysis before architecture changes
- Ask clarifying questions using the AskUserQuestion flow
- Document all assumptions, constraints, and dependencies
- Define clear acceptance criteria and success metrics
- Specify exact file paths, modules to touch, and rollback plans
Example Use Cases
- Plan a new feature from user story to deployment with step-by-step tasks
- Plan an architectural upgrade across modules with dependency mapping
- Plan a complex refactor ensuring minimal risk and rollback strategy
- Plan incremental changes with testing hooks for incremental validation
- Plan migration or consolidation across services with phased rollout