code-review
Comprehensive code review with actionable feedback using extended thinking
Code phase of EPCC workflow - implement with confidence
> /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-codeContext preview
What this command does when you run it.
Code phase of EPCC workflow - implement with confidence
name: epcc-code description: Code phase of EPCC workflow - implement with confidence version: 3.1.0 argument-hint: "[task-to-implement] [--tdd|--quick|--full]"
You are in the **CODE** phase of the Explore-Plan-Code-Commit workflow. Transform plans into working code through **autonomous, interactive implementation**.
**Opening Principle**: High-quality implementation balances autonomous progress with systematic validation, shipping confidently by making errors observable and fixes verifiable.
@../docs/EPCC_BEST_PRACTICES.md - Comprehensive guide covering sub-agent delegation, context isolation, error handling, and optimization
$ARGUMENTS
If `epcc-features.json` exists, this is a tracked multi-session project. Execute the session startup protocol before implementation.
Before ANY implementation, run automatic orientation:
# 1. Confirm working directory
pwd
# 2. Check git state
git branch --show-current
git status --short
git log --oneline -10
# 3. Read progress state (if exists)
if [ -f "epcc-progress.md" ]; then
head -100 epcc-progress.md
fi
# 4. Read feature list (if exists)
if [ -f "epcc-features.json" ]; then
cat epcc-features.json
fi
# 5. Check for init.sh requirement from TRD
if grep -q "init.sh required.*Yes" TECH_REQ.md 2>/dev/null; then
# Auto-regenerate if TRD changed or init.sh missing
if [ ! -f "init.sh" ] || [ "TECH_REQ.md" -nt "init.sh" ]; then
echo "TRD requires init.sh - generating/regenerating..."
# See "init.sh Generation" section below
else
echo "Found init.sh - run if servers need starting"
fi
elif [ -f "init.sh" ]; then
echo "Found init.sh (manual) - run if servers need starting"
fi**Announce session context:**
Session [N] starting. Progress: X/Y features (Z%). Last session: [summary from epcc-progress.md] Resuming: [feature name from arguments or highest-priority incomplete]
Before new work, verify existing features still work:
# Run test suite (use project's test command) npm test # or pytest, cargo test, etc.
**If any previously-passing features now fail:**
**One Feature at a Time Rule:**
1. If feature specified in arguments: Work on that feature 2. If no feature specified: Select highest-priority feature where `passes: false` 3. Work on ONE feature until verified 4. Complete ALL subtasks before moving to next feature
**Anti-pattern**: Implementing multiple features before any verification **Correct pattern**: Implement → Verify → Commit → Next Feature
**"Test like a human user with mouse and keyboard. Don't take shortcuts."**
**Only when ALL acceptance criteria verified:**
**NEVER edit feature definitions - only modify:**
After completing each feature:
# 1. Stage implementation files + state files git add [implementation files] git add epcc-features.json epcc-progress.md # 2. Commit with feature reference git commit -m "feat(F00X): [feature description] - E2E verified - [What was implemented] - All acceptance criteria verified - Tests passing Refs: epcc-features.json#F00X" # 3. Push if remote exists git push
**Purpose**: Each commit represents a clean, verified state that can be safely merged or reverted to.
Before ending session (or on context exhaustion):
**If feature incomplete:**
# Commit work-in-progress git add -A git commit -m "wip(F00X): [current state] Session [N] progress: - [What was done] - [What remains] HANDOFF: [specific instructions for next session] Resume at: [file:line] - [what to do next]"
**Update epcc-progress.md:**
--- ## Session [N]: [Date Time] ### Summary [What was accomplished] ### Feature Progress - F00X: [status] ([X/Y subtasks], [specific state]) ### Work Completed - [Completed item 1] - [Completed item 2] ### Files Modified - [file1.ts] - [what was changed] - [file2.ts] - [what was changed] ### Checkpoint Commit [SHA]: [message] ### Handoff Notes **Resume at**: [file:line] **Next action**: [specific instruction] **Blockers**: [None / description] ### Next Session [What should happen next] ---
**⚠️ "IT IS CATASTROPHIC TO LOSE PROGRESS" - always document before ending**
| Phase | Action | Outcome | |-------|--------|---------| | 1. Orient | pwd, git, progress, features | Know current state | | 2. Verify | Run tests | Catch regressions | | 3. Select | Pick one feature | Focus, no context switching | | 4. Validate | E2E testing | Verify before marking done | | 5. Commit | Checkpoint commit | Save verified progress | | 6. Handoff | Document for next session | Enable continuity |
If TECH_REQ.md specifies `init.sh required: Yes`, generate or regenerate the init.sh script.
**Auto-regeneration triggers:**
**Generation process:**
1. **Parse TECH_REQ.md Envi
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