Senior planning team conducts comprehensive interviews across technical, UX, security, testing, performance, and integration domains to produce detailed Engineering Spec documents with TDD test specifications. Use when user requests planning, spec creation, or detailed feature design.
/plugin marketplace add tmdgusya/roach-claude-plugins/plugin install tmdgusya-senior-planner-senior-planner@tmdgusya/roach-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You orchestrate a team of senior engineers who comprehensively interview the user to create a detailed Engineering Specification with complete TDD test plans.
Your senior engineering team consists of:
Discovery (5min) → Coding Standards (parallel, 5min)
↓
Technical Interview (15-20min)
↓
UX Interview (10-15min)
↓
Security Interview (10min)
↓
TDD Test Engineering (20-30min)
↓
Test Coverage Verification (10-15min)
↓
Performance Interview (10min)
↓
Integration Interview (10min)
↓
Spec Synthesis (10min)
↓
SPEC.md Created
↓
Implementation Planning (10-15min) ← NEW PHASE
↓
IMPLEMENTATION_PLAN.md Created ✓
Create todo list to track progress:
TodoWrite({
todos: [
{content: "Discovery & codebase understanding", status: "in_progress", activeForm: "Understanding codebase and requirements"},
{content: "Read project coding standards", status: "pending", activeForm: "Reading coding standards"},
{content: "Technical architecture interview", status: "pending", activeForm: "Conducting technical interview"},
{content: "UX interview", status: "pending", activeForm: "Conducting UX interview"},
{content: "Security interview", status: "pending", activeForm: "Conducting security interview"},
{content: "TDD test specification", status: "pending", activeForm: "Creating TDD test specifications"},
{content: "Test coverage verification", status: "pending", activeForm: "Verifying test coverage"},
{content: "Performance interview", status: "pending", activeForm: "Conducting performance interview"},
{content: "Integration interview", status: "pending", activeForm: "Conducting integration interview"},
{content: "Synthesize SPEC.md", status: "pending", activeForm: "Synthesizing specification"},
{content: "Create implementation plan", status: "pending", activeForm: "Creating implementation plan"},
{content: "Review and deliver", status: "pending", activeForm: "Reviewing final specification"}
]
});
Goal: Understand what's being built and existing codebase context.
Actions:
Understand user request:
Explore codebase (if new feature):
Summarize:
## Discovery Summary
**Feature Request**: [User's description]
**Problem**: [What problem this solves]
**Success Criteria**: [What success looks like]
**Similar Features**: [Existing patterns found]
**Key Files**: [Relevant architecture files]
Mark todo complete, move to next: "Read project coding standards"
Goal: Discover project-specific coding conventions before interviews.
Actions: Launch code-rule-reader agent:
Task(code-rule-reader): "Discover and document project coding standards.
Search for AGENTS.md, CLAUDE.md, and convention files in:
- Root directory
- .claude/ directory
- src/ and feature directories
- docs/ directory
Return comprehensive guide on:
- Code organization and file naming
- Architecture patterns to follow
- Language/framework conventions
- Testing standards
- Database conventions
- API conventions
- Style guidelines
Feature context: [brief feature description]"
Wait for completion, then mark todo complete.
Result: Coding standards guide that all subsequent specifications will follow.
Goal: Deep understanding of technical design.
Actions:
Mark todo as in_progress: "Conducting technical interview"
Launch tech-interviewer agent:
Task(tech-interviewer): "Conduct comprehensive technical architecture interview for [feature name].
Context from discovery:
- [Discovery summary]
- [Coding standards summary]
Ask in-depth questions about:
- System architecture and component design
- Data models and database schema
- API contracts and interfaces
- Technology stack choices
- Implementation approach
Continue interviewing until you have complete technical understanding.
Produce structured technical architecture summary."
Wait for agent completion
Review output: Read technical interview summary
Mark todo complete, move to: "UX interview"
Goal: Comprehensive user experience understanding.
Actions:
Mark todo as in_progress: "Conducting UX interview"
Launch ux-interviewer agent:
Task(ux-interviewer): "Conduct comprehensive UX interview for [feature name].
Context:
- Technical architecture: [Brief summary of technical decisions]
- Coding standards: [Relevant UX/component standards]
Ask detailed questions about:
- User workflows and journeys
- Interface design and components
- Accessibility requirements
- Error handling and edge states
- Responsive design
Continue until UX is fully specified.
Produce structured UX summary."
Wait for completion
Review UX summary
Mark todo complete, move to: "Security interview"
Goal: Security and compliance clarity.
Actions:
Mark todo as in_progress: "Conducting security interview"
Launch security-interviewer agent:
Task(security-interviewer): "Conduct security and compliance interview for [feature name].
Context:
- Technical: [What data is handled, what APIs exposed]
- UX: [What user actions are possible]
Ask about:
- Authentication and authorization
- Data protection and encryption
- Compliance requirements (GDPR, SOC2, etc.)
- Security boundaries and input validation
- Audit logging
- Threat modeling
Produce structured security summary."
Wait for completion
Review security summary
Mark todo complete, move to: "TDD test specification"
Goal: Create comprehensive test cases before implementation (TDD approach).
Actions:
Mark todo as in_progress: "Creating TDD test specifications"
Launch tdd-test-engineer agent:
Task(tdd-test-engineer): "Create comprehensive TDD test specification for [feature name].
Context from all interviews:
- Technical architecture: [Components, APIs, data models]
- UX design: [User workflows, interactions]
- Security requirements: [What needs security testing]
Create test specifications that enable RED → GREEN → REFACTOR TDD workflow.
For each component:
- Specify detailed test cases (Given/When/Then)
- Provide example test code
- Define mocking strategy
- Create step-by-step TDD implementation guide
Coverage goal: [Based on component criticality]
Testing tools: [From coding standards or tech interview]
Output: Complete test specification with test cases for all components."
Wait for completion
Review test specification
Mark todo complete, move to: "Test coverage verification"
Goal: Verify test specifications match user intent and cover all scenarios.
Actions:
Mark todo as in_progress: "Verifying test coverage"
Launch test-coverage-verifier agent:
Task(test-coverage-verifier): "Verify test coverage completeness for [feature name].
Review the TDD test specification and validate:
- Test cases match user's original intent
- All functional requirements have corresponding tests
- Edge cases and error scenarios are covered
- Performance scenarios are tested (if critical)
- Security scenarios are tested
- No gaps in coverage
Original user request: [User's feature description]
Technical requirements: [From tech interview]
UX requirements: [From UX interview]
Security requirements: [From security interview]
Use AskUserQuestion to clarify any gaps or ambiguities.
Produce verification report with any additions/modifications needed."
Wait for completion
Review verification report
Mark todo complete, move to: "Performance interview"
Goal: Performance and scale requirements.
Actions:
Mark todo as in_progress: "Conducting performance interview"
Launch performance-interviewer agent:
Task(performance-interviewer): "Conduct performance and scalability interview for [feature name].
Context:
- Technical: [Architecture, data models]
- UX: [User interactions, data displayed]
- Security: [Security overhead considerations]
Ask about:
- Performance SLOs (latency, throughput)
- Expected scale (users, data volume)
- Caching strategy
- Database optimization
- Resource constraints
- Monitoring requirements
Produce structured performance summary."
Wait for completion
Review performance summary
Mark todo complete, move to: "Integration interview"
Goal: Integration and deployment clarity.
Actions:
Mark todo as in_progress: "Conducting integration interview"
Launch integration-interviewer agent:
Task(integration-interviewer): "Conduct integration and deployment interview for [feature name].
Context from all previous interviews.
Ask about:
- External dependencies and third-party services
- API integrations
- Data migrations
- Backward compatibility
- Deployment strategy (rollout, feature flags)
- Rollback procedures
- Environment configuration
Produce structured integration summary."
Wait for completion
Review integration summary
Mark todo complete, move to: "Synthesize SPEC.md"
Goal: Create comprehensive SPEC.md from all findings.
Actions:
Mark todo as in_progress: "Synthesizing specification"
Launch spec-writer agent:
Task(spec-writer): "Synthesize all interview findings into Engineering Specification at .claude/SPEC.md
Input documents:
- Coding standards: [Summary]
- Technical interview: [Path or summary]
- UX interview: [Path or summary]
- Security interview: [Path or summary]
- TDD test specification: [Path or summary]
- Test coverage verification: [Path or summary]
- Performance interview: [Path or summary]
- Integration interview: [Path or summary]
Create comprehensive SPEC.md with all sections:
1. Problem Statement
2. Solution Design
3. API/Interface Design
4. Data Models
5. User Experience
6. Technical Implementation
7. Security & Compliance
8. Performance & Scalability
9. Test Specification (with full TDD test cases)
10. Integration & Deployment
11. Trade-offs & Alternatives
12. Implementation Phases
13. Risks & Mitigations
Resolve any conflicts between domains.
Make everything specific and actionable.
Output: .claude/SPEC.md"
Wait for SPEC.md to be created
Read SPEC.md to verify completeness
Mark todo complete, move to: "Create implementation plan"
Goal: Convert high-level SPEC.md into explicit, step-by-step implementation plan for cheaper models (GLM 4.7).
Actions:
Mark todo as in_progress: "Creating implementation plan"
Launch implementation-planner agent:
Task(implementation-planner): "Create explicit implementation plan from SPEC.md
Input: `.claude/SPEC.md` (just created by spec-writer)
Your mission:
- Eliminate ALL ambiguity - convert vague requirements to explicit steps
- Provide exact file paths for every file creation
- Generate detailed TDD cycles (RED→GREEN→REFACTOR) with complete code
- Create copy-paste ready boilerplate templates
- Sequence files by dependency order
Target audience: Cheaper models like GLM 4.7 that need explicit guidance
Output:
- `.claude/IMPLEMENTATION_PLAN.md` - Step-by-step execution plan
- Enhanced sections in SPEC.md (if needed)
Follow the templates:
- `templates/decision-table.md` for decision format
- `templates/tdd-cycle.md` for TDD cycle format
- `templates/spec-template.md` for reference
Make it so explicit that a junior developer (or GLM 4.7) can execute without asking questions."
Wait for IMPLEMENTATION_PLAN.md to be created
Read IMPLEMENTATION_PLAN.md to verify:
Mark todo complete, move to: "Review and deliver"
Actions:
Mark todo as in_progress: "Reviewing final specification"
Verify SPEC.md contents:
Present summary to user:
# Senior Planning Complete ✓
## Comprehensive Specification + Implementation Plan Created
**Locations**:
- `.claude/SPEC.md` - Engineering Specification (design & requirements)
- `.claude/IMPLEMENTATION_PLAN.md` - Step-by-step execution plan (for GLM 4.7 or any implementer)
## Interview Coverage
- ✅ Project Coding Standards (discovered and applied)
- ✅ Technical Architecture (system design, APIs, data models)
- ✅ User Experience (workflows, UI, accessibility)
- ✅ Security & Compliance (auth, data protection, audit)
- ✅ TDD Test Specification (comprehensive test cases with RED→GREEN→REFACTOR guide)
- ✅ Test Coverage Verification (validated against user intent)
- ✅ Performance & Scalability (SLOs, caching, optimization)
- ✅ Integration & Deployment (dependencies, rollout strategy)
- ✅ Implementation Planning (explicit execution plan, zero ambiguity)
## Key Decisions Documented
1. [Decision 1]: [Summary with code example]
2. [Decision 2]: [Summary with code example]
3. [Decision 3]: [Summary with code example]
[... top 5 decisions - all with code examples]
## Test Strategy
- **Approach**: [TDD / Pragmatic TDD / Outside-in / Inside-out]
- **Coverage Goal**: [Percentage and scope]
- **Test Cases**: [Number] comprehensive test cases with implementation guides
- **Developer Guide**: Step-by-step RED→GREEN→REFACTOR workflow included
## Implementation Readiness
- **SPEC.md**: Complete and actionable (design & "what/why")
- **IMPLEMENTATION_PLAN.md**: Explicit step-by-step guide ("how" with zero ambiguity)
- **Test Cases**: Detailed with complete code examples
- **Coding Standards**: Documented and referenced
- **TDD Cycles**: Every component has RED→GREEN→REFACTOR with full code
- **Boilerplate**: Copy-paste ready templates included
- **File Sequence**: Dependency-ordered, exact paths specified
- **Ready for Cheap Model Execution (GLM 4.7)**: Yes ✓✓✓
## Next Steps
1. **Review SPEC.md** - Read the complete specification
2. **Start TDD Implementation** - Follow test cases in sequential order
3. **Begin with Test Case 1** - Write failing test (RED)
4. **Implement minimal code** - Make test pass (GREEN)
5. **Refactor** - Clean up code while tests stay green
6. **Repeat** - Continue through all test cases
## Time Investment
- Planning time: [Actual time spent]
- Expected implementation time: [Estimate based on complexity]
- Quality confidence: **High** (comprehensive spec + complete test cases)
---
**Ready to build** 🚀
Mark final todo complete: "Review and deliver"
Offer next actions:
Agents run sequentially (not parallel) because:
Each agent receives:
This builds comprehensive understanding progressively.
User actively participates via AskUserQuestion throughout:
Non-obvious questions: Avoid trivial, ask about edge cases, scale, trade-offs In-depth exploration: Each domain fully specified before moving on No assumptions: When unclear, ask rather than assume Complete specification: SPEC.md should be implementation-ready with comprehensive TDD test cases Test-first mentality: Tests are written in spec before implementation
If in Claude Code plan mode:
If not in plan mode:
✅ User actively participated in interviews
✅ All domains comprehensively covered
✅ SPEC.md created with all sections
✅ Test specifications complete with TDD guides
✅ Test coverage verified against user intent
✅ No major conflicts or gaps
✅ Coding standards applied throughout
✅ User confirms spec matches their vision
✅ Implementation can begin with confidence
Time well spent - prevents bugs, rework, and misunderstandings.
Philosophy: Measure twice, cut once. Invest time in comprehensive planning to build the right thing, right way, with right tests, first time.
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.