code-review
Comprehensive code review with actionable feedback using extended thinking
Plan phase of EPCC workflow - strategic design before implementation
> /plugin marketplace add aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockHow it fires
How this command gets triggered: by you, by Claude, or both.
/epcc-planContext preview
What this command does when you run it.
Plan phase of EPCC workflow - strategic design before implementation
name: epcc-plan description: Plan phase of EPCC workflow - strategic design before implementation version: 3.1.0 argument-hint: "[feature-or-task-to-plan]"
You are in the **PLAN** phase of the Explore-Plan-Code-Commit workflow. Transform exploration insights into actionable strategy through **collaborative planning**.
**Opening Principle**: High-quality plans transform ambiguity into executable tasks by surfacing hidden assumptions and documenting decisions with their rationale.
@../docs/EPCC_BEST_PRACTICES.md - Comprehensive guide covering clarification strategies, error handling planning, sub-agent delegation patterns, and interactive phase best practices
⚠️ **IMPORTANT**: This phase is for PLANNING ONLY. Do NOT write implementation code. Focus on:
Implementation happens in CODE phase.
$ARGUMENTS
**Core Principle**: Draft → Present → Iterate → Finalize only after approval. Plans are collaborative, not dictated.
1. **Clarify** → Understand requirements (ask questions if unclear) 2. **Draft** → Create initial plan with documented assumptions 3. **Present** → Share plan for review 4. **Iterate** → Refine based on feedback 5. **Finalize** → Lock down plan only after user approval
**Never finalize without user review.**
**✅ Ask when:**
**❌ Don't ask when:**
**Check context files first**: Read EPCC_EXPLORE.md (brownfield) + PRD.md (product) + TECH_REQ.md (technical) → use found context → ask about gaps only
**Draft-driven**: Create draft with documented assumptions → present → iterate → finalize only after approval
**Technical decisions**: 2-4 clear options → use AskUserQuestion if needed → avoid asking about code-level details
Check for available context sources:
# Brownfield: Use exploration findings
if [ -f "EPCC_EXPLORE.md" ]; then
# Read: Tech stack, patterns, testing approach, constraints
# Follow: Existing architecture patterns, reuse identified components
fi
# Greenfield: Use best practices
else
# Read: Tech stack from PRD.md, TECH_REQ.md, or user input
# Apply: Industry best practices, standard patterns
fi
# Check product requirements
if [ -f "PRD.md" ]; then
# Use: Requirements, user stories, acceptance criteria, features
elif [ -f "EPCC_PRD.md" ]; then
# Legacy file name support
else
# Gather product requirements from user input
fi
# Check technical requirements
if [ -f "TECH_REQ.md" ]; then
# Use: Architecture decisions, tech stack rationale, data models, integrations, security approach, performance strategy
fi**Extract key information:**
**What are we building and why?**
**Principles:**
**Pattern** (adapt to your plan):
## Task Breakdown ### Phase 1: Foundation (~X hours) 1. **Task Name** (Xh) - What it does - Dependencies: [None / Task Y must complete first] - Risk: [Low/Medium/High - what could go wrong] - Estimated effort 2. **Task Name** (Xh) - Description - Dependencies - Risk - Estimate ### Phase 2: Core Implementation (~X hours) ...
**Anti-Patterns:**
**High-level architecture**:
**If EPCC_EXPLORE.md exists**: Follow existing patterns (brownfield) **If TECH_REQ.md exists**: Use architecture decisions and tech stack from TRD **If greenfield without TRD**: Design from PRD + industry best practices
**What could go wrong?**
| Risk | Impact | Likelihood | Mitigation | |------|--------|------------|------------| | [Risk description] | H/M/L | H/M/L | [How to address/prevent] |
**Common risk categories:**
**How will we verify it works?**
This guidance enables enterprise deployment of Claude Code and Claude Cowork on Amazon Bedrock across command-line (CLI) and desktop surfaces — with secure single sign-on (SSO), usage monitoring, and cost controls.
Comprehensive code review with actionable feedback using extended thinking
Complete architecture design and documentation workflow using simple-architect and simple-architecture-documenter agents in…
Intelligent refactoring with strategic thinking and parallel analysis
Create comprehensive documentation with intelligent type detection and orchestration
Create in-depth explanations that build conceptual understanding of complex topics
Create practical how-to guides for solving specific problems and accomplishing tasks