Workflow Commands
This document provides comprehensive documentation for the project workflow command system. These commands manage epics through a structured lifecycle from discovery through retrospectives, integrating with Jira for issue tracking and Confluence for documentation publishing.
Table of Contents
Section titled “Table of Contents”- Introduction
- Full Lifecycle Overview
- Discovery Phase
- Planning Phase
- Execution Phase
- Retrospectives Phase
- Command Reference
- Integration Points
- Checkpoint System
Introduction
Section titled “Introduction”The workflow command system provides a structured approach to managing software development epics from initial research through completion and retrospective analysis. Each command in the system produces outputs that feed into subsequent commands, creating a traceable chain of documentation and decisions.
Key Benefits:
- Consistent documentation across all epics
- Traceable decisions from discovery through implementation
- Automated status updates in Jira
- Centralized knowledge in Confluence
- Built-in quality gates through mandatory checkpoints
Intake Phase (Pre-Workflow)
Section titled “Intake Phase (Pre-Workflow)”Status: Planned — these commands are not yet implemented.
The Intake phase runs once per project to document the existing codebase. See Intake Phase Overview for details.
| Command | Purpose | Status |
|---|---|---|
intake:document-codebase | Generate codebase documentation | Planned |
intake:capture-behavior | Capture existing system behavior | Planned |
intake:create-system-description | Create system description | Planned |
Full Lifecycle Overview
Section titled “Full Lifecycle Overview”The complete workflow spans four distinct phases, each with specialized commands that produce artifacts consumed by downstream phases.
flowchart TB subgraph Discovery["Discovery Phase"] direction TB CED["/project:discovery:create-epic-discovery"] MR["Manual Research<br/>Interviews, Spikes, Analysis"] SD["/project:discovery:synthesize-discovery"] AS["/project:discovery:approve-synthesis"]
CED -->|"Discovery Document"| MR MR -->|"Research Findings"| SD SD -->|"Synthesis Document"| AS end
subgraph Planning["Planning Phase"] direction TB CEP["/project:planning:create-epic-plan"] CIP["/project:planning:create-implementation-plan"]
CEP -->|"Overview Document"| CIP end
subgraph Execution["Execution Phase"] direction TB ET["/project:execution:execute-ticket"] CT["/project:execution:complete-ticket"]
ET -->|"Implementation Complete"| CT CT -->|"Next Ticket"| ET end
subgraph Retrospectives["Retrospectives Phase"] direction TB CE["/project:retrospectives:complete-epic"] end
Discovery -->|"Tickets Created"| Planning SD -->|"Generated Tickets"| CEP Planning -->|"Implementation Plan"| Execution CIP -->|"Updated Tickets"| ET Execution -->|"All Tickets Done"| Retrospectives CT -->|"Epic Complete"| CEDocument Flow Summary
Section titled “Document Flow Summary”| Phase | Input | Command | Output |
|---|---|---|---|
| Discovery | Epic Key | discovery:create | Discovery Document |
| Discovery | Discovery Doc + Research | discovery:synthesize | Synthesis Doc + Proposed Tickets |
| Discovery | Synthesis Doc URL | discovery:approve | Jira Tickets |
| Planning | Epic Key | planning:epic-plan | Overview Document |
| Planning | Overview Doc URL | planning:impl-plan | Implementation Plan + Updated Tickets |
| Execution | Ticket Key | execution:execute-ticket | Implemented Code |
| Execution | Ticket Key | execution:complete-ticket | Jira Transition + Plan Update |
| Retrospectives | Epic Key | retrospectives:complete-epic | Completion Report |
Discovery Phase
Section titled “Discovery Phase”The discovery phase focuses on research, customer discovery, and validation before implementation begins. Use this phase for epics with significant unknowns or when customer validation is required.
flowchart LR subgraph Inputs EK["Epic Key<br/>(from Jira)"] JT["Linked Tickets"] end
subgraph CreateDiscovery["create-epic-discovery"] direction TB FE["Fetch Epic"] EQ["Extract Questions"] GD["Generate Document"] PD["Publish to Confluence"]
FE --> EQ --> GD --> PD end
subgraph ManualWork["Manual Research"] direction TB UI["User Interviews"] TS["Technical Spikes"] DA["Data Analysis"] CR["Competitive Research"] end
subgraph Synthesize["synthesize-discovery"] direction TB FS["Fetch Sources"] CA["Cross-Analyze"] GR["Generate Recommendations"] PT["Propose Tickets"] PS["Publish Synthesis"]
FS --> CA --> GR --> PT --> PS end
subgraph Approve["approve-synthesis"] direction TB RS["Read Synthesis"] RD["Resolve Decisions"] MT["Modify Tickets"] CT["Create in Jira"]
RS --> RD --> MT --> CT end
subgraph Outputs DD["Discovery Document"] SD["Synthesis Document"] NT["New Tickets<br/>(in target epics)"] end
EK --> CreateDiscovery JT --> CreateDiscovery CreateDiscovery --> DD DD --> ManualWork ManualWork --> Synthesize Synthesize --> SD SD --> Approve Approve --> NTdiscovery:create (create-epic-discovery)
Section titled “discovery:create (create-epic-discovery)”Command: /project:discovery:create-epic-discovery <epic-key>
Purpose: Creates a structured discovery document for research and customer discovery epics, extracting questions and unknowns from linked tickets.
Process:
- Fetches epic and all linked tickets from Jira
- Extracts explicit and implicit questions from requirements
- Categorizes questions by theme (Customer, Technical, Business, Scope)
- Generates hypothesis map with validation methods
- Creates research plan with activities and owners
- Publishes to Confluence
Output Sections:
- Discovery Overview
- Hypothesis Map
- Research Questions Matrix (by category)
- Dependencies and Blockers
- Research Plan
- Decision Framework
- Risk Register
- Target Implementation Epics
- Linked Tickets
Publish Location: /Epics/Discovery/{Epic_Key}/
discovery:synthesize (synthesize-discovery)
Section titled “discovery:synthesize (synthesize-discovery)”Command: /project:discovery:synthesize-discovery <source-url> [source-url...] [--target=<epic-key>]
Purpose: Synthesizes findings from discovery documents and research into a synthesis document with proposed tickets.
Arguments:
<source-url>- One or more Confluence document URLs (discovery docs, research findings, spike reports)--target=<epic-key>- Optional target epic for generated tickets (auto-detected if not specified)
Process:
- Fetches all source documents
- Consolidates and cross-analyzes findings
- Validates/invalidates hypotheses
- Generates feature recommendations
- Identifies blocking decisions that must be resolved
- Creates proposed tickets (not yet in Jira)
- Publishes synthesis document with machine-readable ticket data
Output Sections:
- Synthesis Overview
- Executive Summary
- Consolidated Findings (Validated/Invalidated Hypotheses, Answered Questions)
- Remaining Unknowns
- Recommendations by Epic
- Blocking Decisions (decisions that block ticket creation)
- Decision Log
- Source Cross-Reference
- Proposed Tickets Data (JSON for
discovery:approve)
Publish Location: /Epics/Discovery/{Discovery_Epic_Key}/Synthesis/
Next Step: Run discovery:approve <synthesis-url> to resolve decisions and create tickets.
discovery:approve (approve-synthesis)
Section titled “discovery:approve (approve-synthesis)”Command: /project:discovery:approve-synthesis <synthesis-url>
Purpose: Reviews synthesis document, resolves blocking decisions, and creates approved tickets in Jira.
Arguments:
<synthesis-url>- URL of the synthesis document fromdiscovery:synthesize
Process:
- Fetches synthesis document and extracts proposed tickets JSON
- Checks for unresolved blocking decisions
- Presents decisions for resolution (blocks until all resolved)
- Allows add/remove/modify of proposed tickets
- Creates approved tickets in Jira
- Updates synthesis document status to “Approved”
Blocking Decisions:
- Decisions are identified during synthesis as issues that affect ticket scope
- All blocking decisions MUST be resolved before tickets can be created
- User selects resolution option (A, B, C, etc.) for each decision
- Resolutions are recorded in the synthesis document
Ticket Operations:
- Add: Create new tickets not in the original proposal
- Remove: Exclude tickets from Jira creation
- Modify: Update title, description, story points, priority
Output:
- Created Jira tickets linked to target epic(s)
- Updated synthesis document with approval status and ticket links
Planning Phase
Section titled “Planning Phase”The planning phase creates comprehensive documentation for implementation. This is where codebase analysis, risk assessment, and detailed implementation planning occur.
flowchart LR subgraph Inputs EK["Epic Key"] CB["Codebase"] JT["Jira Tickets"] end
subgraph CreatePlan["create-epic-plan"] direction TB FE["Fetch Epic & Tickets"] EC["Explore Codebase<br/>(Parallel Agents)"] RA["Risk Assessment"] GD["Generate Overview"] PD["Publish Document"]
FE --> EC --> RA --> GD --> PD end
subgraph CreateImpl["create-implementation-plan"] direction TB RO["Read Overview Doc"] AT["Analyze Tickets"] RT["Refine Tickets<br/>(Split, Points, Deps)"] GP["Generate Plan<br/>(Waves, Order)"] UT["Update Tickets<br/>(Full Details)"] PP["Publish Plan"]
RO --> AT --> RT --> GP --> UT --> PP end
subgraph Outputs OD["Overview Document"] IP["Implementation Plan"] UT2["Updated Jira Tickets<br/>(Self-Contained)"] end
EK --> CreatePlan CB --> CreatePlan JT --> CreatePlan CreatePlan --> OD OD --> CreateImpl CreateImpl --> IP CreateImpl --> UT2planning:epic-plan (create-epic-plan)
Section titled “planning:epic-plan (create-epic-plan)”Command: /project:planning:create-epic-plan <epic-key>
Purpose: Creates a comprehensive planning document (Overview Document) by analyzing Jira tickets and exploring the codebase.
Process:
- Fetches epic and all linked tickets
- Launches parallel agents to explore codebase:
- Affected modules discovery
- API patterns analysis
- Component patterns analysis
- Test patterns discovery
- Reference implementations search
- Documents unknowns and technical decisions
- Creates risk assessment for each change
- Publishes Overview Document
Output Sections:
- Epic Overview (Purpose, User Value, Scope)
- Goals and Success Metrics
- Requirements Summary
- Technical Change Overview (with risk scores)
- Impact Analysis
- Testing Strategy
- User Behavior Testing (E2E scenarios)
- Implementation Notes
- Acceptance Criteria
- Open Questions and Risks
- Codebase Analysis (patterns, references, test locations)
- Linked Tickets
Risk Assessment Dimensions:
| Dimension | Low (1) | Medium (2) | High (3) |
|---|---|---|---|
| Scope | 3 files or fewer | 4-10 files | 10+ files |
| Dependencies | All exist | Some foundation needed | Significant groundwork |
| Blocking Factor | Independent | Soft dependency | Hard blocker |
| Stability | Existing patterns | Some unknowns | Novel approach |
| UX Impact | Backend only | Secondary flows | Core journey |
| Testing Complexity | Simple assertions | New mocks needed | Complex E2E |
| Reversibility | Easy rollback | Moderate effort | One-way door |
Risk Levels:
- 7-11: Low - Standard implementation
- 12-16: Medium - Extra review, incremental delivery
- 17-21: High - Spike/POC first, architectural review
Publish Location: /Epics/In Progress/{Epic_Key}/
planning:impl-plan (create-implementation-plan)
Section titled “planning:impl-plan (create-implementation-plan)”Command: /project:planning:create-implementation-plan <overview-doc-url>
Purpose: Generates a detailed implementation plan with parallel execution waves and updates all tickets with self-contained implementation details.
Process:
- Reads Overview Document for context
- Fetches all Jira tickets
- Analyzes and refines tickets:
- Creates new tickets for gaps
- Splits large tickets (>8 points)
- Adds story points
- Links dependencies
- Generates topologically sorted execution order
- Creates parallel execution waves
- Updates each ticket with full implementation details
- Publishes Implementation Plan
Implementation Plan Sections:
- Summary (metrics, waves, dependencies)
- Completion Status (tracking table)
- Execution Order (topologically sorted)
- Parallel Execution Strategy (by wave)
- Agent Recommendations
- Document Links
Ticket Update Template: Each ticket is updated to be self-contained with:
- Overview and Implementation Plan links
- Summary
- Implementation Steps (with code snippets)
- Files to Modify (table)
- Complete Test Code
- Acceptance Criteria
Publish Location: /Epics/In Progress/{Epic_Key}/ (as subpage of Overview)
Execution Phase
Section titled “Execution Phase”The execution phase handles the actual implementation of tickets and tracking of completion status.
flowchart LR subgraph Inputs TK["Ticket Key"] IP["Implementation Plan"] CB["Codebase"] end
subgraph Execute["execute-ticket"] direction TB FT["Fetch Ticket"] RP["Read Plan<br/>(Wave Context)"] PC["Parallel Check"] IM["Implement"] TS["Run Tests"] PS["Present Summary"]
FT --> RP --> PC --> IM --> TS --> PS end
subgraph Complete["complete-ticket"] direction TB GT["Gather Context"] TJ["Transition Jira<br/>(In Review)"] UP["Update Plan<br/>(Status Tables)"] CF["Confirm Done"]
GT --> TJ --> UP --> CF end
subgraph Outputs CD["Code Changes"] JS["Jira Status Update"] PU["Plan Updated"] end
TK --> Execute IP --> Execute CB --> Execute Execute --> CD Execute -->|"Ready for Review"| Complete Complete --> JS Complete --> PU PU -->|"Next Ticket"| Executeexecution:execute-ticket
Section titled “execution:execute-ticket”Command: /project:execution:execute-ticket <ticket-key>
Purpose: Implements a Jira ticket following its self-contained implementation details.
Process:
- Fetches ticket from Jira
- Verifies ticket has implementation details (stops if missing)
- Reads implementation plan for wave/dependency context
- Checks for parallel execution opportunities
- Updates Jira status to “In Progress”
- Executes implementation steps
- Writes required tests
- Verifies acceptance criteria
- Presents completion summary with commit message
Parallel Execution: When implementation plan defines parallel waves:
- Identifies current wave (first with incomplete tickets)
- Offers to spawn specialized agents for parallel execution
- Coordinates completion before advancing waves
Agent Types for Parallel Work:
frontend-developer- UI/component workbackend-developer- API/backend servicesdatabase-optimizer- Database changesfullstack-developer- Full-stack featurestest-automator- Test coverage
Deviation Handling: If implementation plan must be deviated from:
- Stop and report the deviation
- Present options (proceed, modify, pause)
- Wait for user approval
- Document approved deviations
Output:
- Ticket Completion Summary
- Suggested Commit Message
- Changes Made
- Files Modified/Created
- Tests Added
- Deviations from Plan
- Follow-up Tickets Created
execution:complete-ticket
Section titled “execution:complete-ticket”Command: /project:execution:complete-ticket [ticket-key]
Purpose: Transitions Jira ticket to “In Review” and updates the implementation plan with completion details.
Arguments:
[ticket-key]- Optional if context available from recentexecute-ticket
Process:
- Identifies ticket and gathers context
- Extracts completion details from conversation
- Confirms before finalizing
- Transitions Jira to “In Review”
- Updates Implementation Plan:
- Completion Status table
- Execution Order table
- Parallel Execution wave table
- Adds Completion Details section
Plan Updates:
## {Ticket_Key} Completion Details
**Completed:** [date]
### Changes Made* [extracted from summary]
### Tests Added* [extracted from summary]
### Deviations[Any deviations, or "None"]
### Follow-up Tickets[Any follow-up tickets, or "None"]Retrospectives Phase
Section titled “Retrospectives Phase”The retrospectives phase generates completion reports for knowledge capture and process improvement.
flowchart LR subgraph Inputs EK["Epic Key"] OD["Overview Document"] IP["Implementation Plan"] JT["Completed Tickets"] end
subgraph CompleteEpic["retrospectives:complete-epic"] direction TB VT["Verify All Tickets Done"] GR["Generate Report<br/>(12 Sections)"] MD["Move Documentation"] CE["Close Epic in Jira"]
VT --> GR --> MD --> CE end
subgraph Outputs CR["Completion Report"] end
EK --> CompleteEpic OD --> CompleteEpic IP --> CompleteEpic JT --> CompleteEpic CompleteEpic --> CRretrospectives:complete-epic
Section titled “retrospectives:complete-epic”Command: /project:retrospectives:complete-epic <epic-key>
Purpose: Generates a comprehensive completion report, closes the epic in Jira, and moves documentation to the complete folder.
Process:
- Verifies all tickets are complete (stops if not)
- Reviews implementation quality (PRs merged, test coverage)
- Generates 12-section completion report
- Updates Overview Document with completion report
- Moves documentation from
/In Progress/to/Complete/Sprint [N]/ - Closes epic in Jira
- Identifies reusable patterns for knowledge transfer
Completion Report Sections:
- Epic Summary (duration, points, contributors)
- Objectives and Outcomes
- Ticket Breakdown
- Technical Deliverables (files, LOC, coverage)
- Architecture and Design Decisions
- Quality Metrics (PRs, bugs, hooks)
- Technical Debt and Follow-up
- Testing and Quality Assurance
- Documentation Delivered
- Lessons Learned (What Went Well, Improvements, Process)
- Risk Assessment Review
- Recommendations for Future Epics
Publish Location:
- From:
/Epics/In Progress/{Epic_Key}/ - To:
/Epics/Complete/Sprint [N]/{Epic_Key}/
Note: Sprint-level retrospectives (
complete-sprint) have been removed in favor of epic-level analysis withretrospectives:complete-epic.
Command Reference
Section titled “Command Reference”Quick reference table for all workflow commands:
| Command | Arguments | Description | Output |
|---|---|---|---|
discovery:create | <epic-key> | Creates discovery document for research epics | Discovery Document (Confluence) |
discovery:synthesize | <doc-urls> [--target=<epic>] | Synthesizes findings into proposed tickets | Synthesis Doc + Proposed Tickets |
discovery:approve | <synthesis-url> | Resolves decisions, creates tickets in Jira | Jira Tickets |
planning:epic-plan | <epic-key> | Creates overview document with codebase analysis | Overview Document (Confluence) |
planning:impl-plan | <overview-doc-url> | Creates execution plan with parallel waves | Implementation Plan + Updated Tickets |
execution:execute-ticket | <ticket-key> | Implements individual ticket | Code Changes + Tests |
execution:complete-ticket | [ticket-key] | Transitions Jira, updates plan | Jira Status + Plan Update |
retrospectives:complete-epic | <epic-key> | Generates completion report, closes epic | Completion Report |
Integration Points
Section titled “Integration Points”Setup Required: See Atlassian MCP Setup Guide for Jira and Confluence configuration.
Jira Integration
Section titled “Jira Integration”The workflow commands integrate with Jira for:
Read Operations:
- Fetch epic details and linked tickets
- Query ticket status and dependencies
- Read acceptance criteria and requirements
Write Operations:
- Create new tickets (from synthesis)
- Update ticket descriptions (implementation details)
- Add story points and link dependencies
- Transition ticket status (In Progress, In Review, Done)
- Close epics with resolution
JQL Queries Used:
"Epic Link" = {Epic_Key}- Find all child tickets- Status-based queries for completion verification
Confluence Integration
Section titled “Confluence Integration”All documentation is published to structured Confluence locations:
| Document Type | Confluence Location |
|---|---|
| Discovery Documents | /Epics/Discovery/{Epic_Key}/ |
| Synthesis Documents | /Epics/Discovery/{Discovery_Epic_Key}/Synthesis/ |
| Overview Documents | /Epics/In Progress/{Epic_Key}/ |
| Implementation Plans | /Epics/In Progress/{Epic_Key}/ (subpage) |
| Completion Reports | /Epics/Complete/Sprint [N]/{Epic_Key}/ |
| Sprint Retrospectives | /Retrospectives/Sprint [N]/ |
Document Lifecycle:
- Created in
/In Progress/during planning - Updated throughout execution
- Moved to
/Complete/Sprint [N]/on epic completion - Referenced in sprint retrospectives
Checkpoint System
Section titled “Checkpoint System”Every command includes mandatory user approval gates to ensure human oversight at critical decision points.
Checkpoint Philosophy
Section titled “Checkpoint Philosophy”Checkpoints serve to:
- Prevent unintended changes to Jira or Confluence
- Ensure alignment on approach before work begins
- Provide opportunities to correct course
- Maintain audit trail of decisions
Checkpoint Types
Section titled “Checkpoint Types”Confirmation Checkpoints: Verify information before proceeding.
Please confirm before I proceed:
Epic Key: CC-123Epic Title: User AuthenticationLinked Tickets: 8 tickets foundPublish Location: /Epics/In Progress/CC-123/
Is this correct? (Yes / No / Correct)Approval Checkpoints: Require explicit approval before making changes.
Ready to publish this planning document to Confluence? (Yes / No / Modify)Decision Checkpoints: Present options when issues are encountered.
Epic CC-123 has incomplete tickets:
In Progress:- CC-124: User login form - Status: In Progress
Options:A) Complete remaining tickets firstB) Move incomplete tickets to backlog and close epicC) Extend epic deadline and keep open
What would you like to do? [A/B/C]Checkpoints by Command
Section titled “Checkpoints by Command”| Command | Checkpoints |
|---|---|
discovery:create | Epic confirmation, Document review before publish |
discovery:synthesize | Sources confirmation, Synthesis review before publish |
discovery:approve | Decision resolution, Ticket modifications, Ticket creation approval |
planning:epic-plan | Epic confirmation, Document review before publish |
planning:impl-plan | Document confirmation, Ticket changes, Plan preview, Overview updates |
execution:execute-ticket | Ticket selection, Deviation approval, Completion review |
execution:complete-ticket | Finalization confirmation |
retrospectives:complete-epic | Completion readiness, Documentation updates, Epic closure |
Checkpoint Responses
Section titled “Checkpoint Responses”| Response | Effect |
|---|---|
| Yes | Proceed with the proposed action |
| No | Stop and ask what changes are needed |
| Modify | User provides feedback, regenerate and re-confirm |
| Correct | User provides corrections, update and re-confirm |
Critical Rule: Commands must never modify Jira or Confluence without explicit user approval at the appropriate checkpoint.
Utility Commands
Section titled “Utility Commands”Common Ground
Section titled “Common Ground”Available at any phase. Surfaces and validates Claude’s hidden assumptions about the project.
See Common Ground Guide for full documentation.
Workflow Variations
Section titled “Workflow Variations”Standard Implementation Flow
Section titled “Standard Implementation Flow”For epics with clear requirements:
planning:epic-plan -> planning:impl-plan -> [execution:execute-ticket + execution:complete-ticket] x N -> retrospectives:complete-epicDiscovery-First Flow
Section titled “Discovery-First Flow”For epics requiring research:
discovery:create -> [research] -> discovery:synthesize -> discovery:approve -> planning:epic-plan -> planning:impl-plan -> [execution:execute-ticket + execution:complete-ticket] x N -> retrospectives:complete-epicBest Practices
Section titled “Best Practices”Document Linking
Section titled “Document Linking”Always capture and provide document URLs when outputting command results. Downstream commands depend on these URLs:
discovery:createoutputs{Discovery_Document}fordiscovery:synthesizediscovery:synthesizeoutputs{Synthesis_Document}fordiscovery:approveplanning:epic-planoutputs{Overview_Document}forplanning:impl-planplanning:impl-planoutputs{Implementation_Plan}referenced in tickets
Ticket Self-Containment
Section titled “Ticket Self-Containment”After planning:impl-plan, each ticket should be fully self-contained with:
- All implementation steps
- Complete test code (copy-paste ready)
- File paths and modifications
- Acceptance criteria
This enables execute-ticket to work without fetching external documents.
Parallel Execution
Section titled “Parallel Execution”Leverage parallel execution waves for efficiency:
- Group independent tickets in the same wave
- Use specialized agents for different work types
- Coordinate completion before advancing to dependent waves
Knowledge Capture
Section titled “Knowledge Capture”Use retrospective phases to capture learnings:
- Document patterns to replicate
- Record anti-patterns to avoid
- Generate actionable improvements
- Update team documentation with new standards