.claude/skills/sagerstack-planner/SKILL.md
SDLC planning skill that spawns a 4-member agent team to plan one epic at a time from project-context.md. Produces epics, user stories with FR/TR/AC, implementation plans, and critical analyses. Use when planning an epic for full SDLC execution with agent teams.
npx skillsauth add sagerstack/agentic-sdlc sagerstack:plannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<essential_principles>
These principles ALWAYS apply when planning an epic.
Plan ONE epic from docs/project-context.md per invocation. Never plan multiple epics simultaneously. Each epic produces a complete artifact set before moving to the next.
Input: docs/project-context.md (from /sagerstack:code-planning)
Output: docs/phases/epic-{NNN}-{desc}/ with epic, stories, plans, research, critical analyses
Research is the default mode. The Researcher investigates the epic BEFORE the BA creates stories. Research findings inform story creation, complexity scoring, and technical decisions.
When --skip-research flag is passed:
Three mandatory Q&A points where the user MUST confirm before proceeding:
Solution Architect MUST flag ALL non-zero costs and prefer zero/low-cost solutions. Cost flags require explicit user approval before proceeding.
Cost Flag Format:
COST FLAG:
- Item: {service/tool/subscription name}
- Monthly cost: ${amount}
- Alternative: {zero-cost or lower-cost alternative}
- Trade-off: {what is lost with cheaper option}
- Recommendation: {architect's recommendation}
Critical Analyst reviews IMPLEMENTATION PLANS (not user stories), AFTER they are generated. Reviews check:
Max 2 refinement cycles. After 2nd cycle, proceed with documented risks.
Agents read and write to project memory files:
docs/project_notes/decisions.md + docs/project_notes/issues.mddocs/project_notes/decisions.md + docs/project_notes/key_facts.mddocs/project_notes/decisions.md + docs/project_notes/bugs.mdThe BA can modify docs/project-context.md at user request:
</essential_principles>
<intake>Epic Planning Intake
docs/project-context.md to identify available epicsWhich epic would you like to plan?
Options:
Optional flags:
--skip-research — Skip research phase and architect web research. Use for straightforward epics with well-understood requirements.Wait for response before proceeding.
</intake> <routing>| Response | Action |
|----------|--------|
| Epic number (e.g., "001", "epic 002") | Read workflows/plan-epic.md, execute planning workflow for specified epic |
| "next", "next epic", "continue" | Identify next unplanned epic from project-context.md, execute planning workflow |
| "manage", "manage epics", "insert", "remove", "reorder", "split", "merge" | Read workflows/manage-phases.md, execute epic management |
| "stories", "generate stories" | Read workflows/generate-stories.md (story generation sub-workflow) |
| "plans", "impl plans", "implementation plans" | Read workflows/generate-impl-plan.md (impl plan sub-workflow) |
| "review", "critical review" | Read workflows/critical-review.md (critical review sub-workflow) |
| "hotfix", "bugfix", "bug fix", "fix bug" | Read workflows/hotfix.md, execute hotfix workflow |
<team_configuration>
planner-epic-{NNN} (e.g., planner-epic-001)planner-researcher--skip-research flag is active. All research-related tasks are skipped.planner-baplanner-architect--skip-research flag is active. Work from codebase analysis, project-context.md, and user story artifacts only.planner-critic</team_configuration>
<workflow_steps>
Actor: Team Lead (you)
docs/project-context.mdTeamCreate(team_name="planner-epic-{NNN}")Actor: Team Lead delegates to Researcher
If --skip-research is active: Skip this step entirely. Do not spawn the Researcher agent. Proceed directly to Step 3. Note in epic metadata that research was skipped.
Default (research enabled):
docs/phases/epic-{NNN}-{desc}/research/findings.mdResearch Output Format (saved to docs/phases/epic-{NNN}-{desc}/research/findings.md):
# Research Findings: EP-{NNN} - {Epic Name}
## Date
{YYYY-MM-DD}
## Research Scope
{What was investigated and why}
## Codebase Analysis
### Existing Patterns
{Relevant code patterns found in the project}
### Reusable Components
{Existing code that can be leveraged}
### Technical Debt
{Relevant tech debt that may impact this epic}
## External Technology Research
### {Technology/API/Service Name}
- **Purpose**: {Why this is relevant}
- **Documentation**: {URLs}
- **Key Capabilities**: {What it provides}
- **Limitations**: {Constraints, rate limits}
- **Cost**: {Free / $X per month / usage-based}
- **Alternatives**: {Other options considered}
## Integration Requirements
{How components need to connect}
## Technical Risks
{Identified risks and concerns}
## Recommendations
{Suggested approaches based on research}
Actor: Team Lead delegates to BA
references/complexity-scoring.md)Actor: Team Lead presents to user
Present the BA's proposals to the user:
Ask: "Does this direction look right? Any adjustments to scope, stories, or priorities?"
Loop: If user requests adjustments, send feedback to BA, who revises. Repeat until user confirms.
Actor: Team Lead delegates to BA, then presents to user
docs/phases/epic-{NNN}-{desc}/epic.md)docs/phases/epic-{NNN}-{desc}/stories/story-{NNN}-{desc}.md)[INSERT_USER_INPUT] placeholdersAsk: "Here is the story breakdown. Are the FR/TR/AC complete? Any clarifications needed?"
Loop: If user requests changes, send to BA for revision. Repeat until confirmed. BA updates status from Draft to Final.
Actor: Team Lead delegates to Solution Architect, then presents to user
Ask: "The Solution Architect has the following technical questions and cost considerations before generating implementation plans:"
Actor: Solution Architect
After receiving user answers:
If --skip-research is active:
story-{NNN}-{desc}-tech-research.md)Default (research enabled):
docs/phases/epic-{NNN}-{desc}/research/story-{NNN}-{desc}-tech-research.md)docs/phases/epic-{NNN}-{desc}/plans/story-{NNN}-{desc}-plan.md)docs/project_notes/decisions.md for architectural choicesActor: Team Lead delegates to Critical Analyst
docs/phases/epic-{NNN}-{desc}/plans/story-{NNN}-{desc}-critical-analysis.mdActor: Team Lead
docs/phases/epic-{NNN}-{desc}/
epic.md
stories/
story-001-{desc}.md
story-002-{desc}.md
...
plans/
story-001-{desc}-plan.md
story-001-{desc}-critical-analysis.md
story-002-{desc}-plan.md
story-002-{desc}-critical-analysis.md
...
research/
findings.md
story-001-{desc}-tech-research.md (if applicable)
...
shutdown_requestTeamDelete</workflow_steps>
<artifact_templates>
Templates for epic, user story, and implementation plan artifacts are in
references/artifact-templates.md. Load when generating artifacts in Steps 3, 5, and 7.
</artifact_templates>
<reference_index>
All in references/:
| File | Purpose | |------|---------| | story-patterns.md | User story creation patterns, FR/TR/AC category definitions, coverage rules | | impl-plan-patterns.md | Implementation plan structure, task markers, API field extraction requirements | | epic-template.md | Epic creation patterns, dependency types, sequencing rules | | critical-analysis.md | Critical analysis methodology, review checklist, severity levels | | complexity-scoring.md | AI Complexity Scoring Framework (4-factor scoring, calibration) | | quality-standards.md | Code quality standards, data policies, configuration management | | cost-assessment.md | Cost evaluation methodology, flagging protocol, approval process | | artifact-templates.md | Epic, User Story, and Implementation Plan templates |
</reference_index>
<workflows_index>
All in workflows/:
| File | Purpose | |------|---------| | plan-epic.md | Full 9-step planning workflow for a single epic | | manage-phases.md | Insert, remove, reorder, split, merge epics in project-context.md | | generate-stories.md | Story generation sub-workflow (Steps 3-5 detail) | | generate-impl-plan.md | Implementation plan generation sub-workflow (Steps 6-7 detail) | | critical-review.md | Critical review and refinement sub-workflow (Step 8 detail) | | hotfix.md | Abbreviated 5-step workflow for bug fixes (always --skip-research) |
</workflows_index>
<verification>After completing epic planning, verify:
docs/phases/epic-{NNN}-{desc}/epic.md createddocs/phases/epic-{NNN}-{desc}/stories/story-{NNN}-{desc}.md for each storydocs/phases/epic-{NNN}-{desc}/plans/story-{NNN}-{desc}-plan.md for each storydocs/phases/epic-{NNN}-{desc}/plans/story-{NNN}-{desc}-critical-analysis.md for each storydocs/phases/epic-{NNN}-{desc}/research/findings.md created (skip if --skip-research)[INSERT_USER_INPUT] placeholders resolveddocs/project_notes/decisions.mddocs/project_notes/issues.mddocs/project_notes/key_facts.mddevelopment
Interactive UAT verification skill. Walks the user through acceptance criteria one at a time, records pass/fail/skip results, generates UAT report, and routes remediation gaps to /sagerstack:builder. Solo skill (no agent team).
development
Python code architecture with Vertical Slice + DDD and Clean Architecture. Use when designing Python projects, structuring code, creating domain models, defining bounded contexts, or reviewing architecture. Enforces strict domain purity, CamelCase naming, and proper layer separation.
testing
Testing infrastructure, local environment simulation, and deployment scripts. Use when setting up pytest fixtures, Docker Compose, LocalStack, mocking external services, or creating local deployment scripts. Focuses on HOW to test and run locally, not coding principles (TDD is in software-engineering).
testing
AWS infrastructure deployment with Terraform. Use when deploying to AWS, writing Terraform configurations, setting up CI/CD with GitHub Actions, or managing AWS resources (EKS, Lambda, S3, SNS, SQS, Secrets Manager).