| name | workflow-spec-kit |
| description | Execute the complete 15-step SpecKit workflow with 18 specialized sub-agents running in 3 parallel stages. Implements the full sk_p__complete.yaml workflow with approval gates, review/synthesis phases, and adaptive rules for complexity handling |
Spec Kit Parallel Complete - Full 15-Step Workflow Orchestration
Execute the complete 15-step SpecKit workflow with 18 specialized sub-agents running in 3 parallel stages. Implements the full sk_p__complete.yaml workflow with approval gates, review/synthesis phases, and adaptive rules for complexity handling
1. 🎯 WHEN TO USE
Use this skill when:
- SpecKit commands need to execute their underlying parallel workflows
/speckit.planneeds to run 4 specialist agents in parallel/speckit.implementneeds to coordinate implementation agents/speckit.analyzeneeds parallel quality reviewers- Complex workflows require orchestration of multiple agents
Do NOT use this skill for:
- Simple command recommendations
- Single-agent tasks
- Sequential workflows without parallelization needs
2. 🚀 QUICK COMMAND REFERENCE
Complete 15-Step Workflow with 3 Parallel Stages:
| Step | Command | Stage | Purpose |
|---|---|---|---|
| 1 | Manual | - | Request Analysis |
| 2 | Manual | - | Workspace Setup |
| 3 | Manual | - | Pre-work Review |
| 4 | /speckit.specify |
- | Create spec.md |
| 5 | /speckit.clarify |
- | Resolve ambiguities |
| 6 | /speckit.checklist |
- | Quality checklist |
| 7 | Parallel Block | A: Planning | 4 analysts work in parallel |
| 8 | /speckit.tasks |
- | Task breakdown |
| 9 | /speckit.analyze |
- | Consistency check |
| 10 | Parallel Block | B: Implementation | 4 implementation agents prepare |
| 11 | /speckit.implement |
- | Implementation check |
| 12 | Manual | - | Development - Code changes |
| 13 | Parallel Block | C: Quality | 4 quality reviewers validate |
| 14 | Manual | - | Document changes |
| 15 | Manual | - | Integration & Cleanup |
⚠️ Manual Control: This workflow requires 14 approval gates (one after each major step, Step 1.5 is combined with Step 2 gate)
3. 🏗️ ARCHITECTURE OVERVIEW
This skill implements the complete 15-step workflow with 18 specialized sub-agents organized into 3 parallel execution stages.
The 15 Steps
- Request Analysis - Parse and understand requirements
- Workspace Setup - Create isolated worktree and branch (Step 1.5 in workflow)
- Pre-work Review - Review AGENTS.md, constitution, knowledge base
- Specification - Create spec.md with
/speckit.specify - Clarification - Resolve ambiguities with
/speckit.clarify - Quality Checklist - Generate checklists with
/speckit.checklist - Parallel Planning (Stage A) - 4 specialist agents + review + synthesis
- Task Breakdown - Generate tasks with
/speckit.tasks - Analysis - Check consistency with
/speckit.analyze - Parallel Implementation Prep (Stage B) - 4 implementation agents
- Implementation Check - Verify prerequisites
- Development - Execute code changes
- Parallel Quality Review (Stage C) - 4 quality reviewers
- Completion - Document changes
- Integration & Cleanup - Merge to main or push feature branch
4. 📝 STEPS
This section provides step-by-step execution guidance as defined in sk_p__complete.yaml.
Step 1: Gather User Inputs
Action: Collect all required information from the user before proceeding
IMPORTANT: Before starting the workflow, ask the user for the following inputs in a conversational way:
Required Inputs:
Branch Strategy (REQUIRED):
Ask: "Select development isolation strategy:"
Options:
main_temp (⭐ RECOMMENDED - default): Temporary worktree with short-lived branch. Work is isolated, tested, then merged back to main immediately. Use for: 80% of work - normal features, bug fixes, improvements.
feature_branch: Long-running feature branch in worktree for PR review. Work stays on separate branch for team review before integration. Use for: 20% of work - complex features requiring multi-day development and code review.
Default: main_temp
Note: main_branch option removed (use main_temp for quick integration)
This decision controls workspace isolation and final integration gates.
Request/Feature Description (REQUIRED):
- Ask: "What feature would you like to build? Please describe the request or feature you want to implement."
- This is the main feature description that drives the entire workflow.
Optional Inputs (with smart defaults):
Spec Folder:
- Ask: "Which spec folder should I use? (Leave empty to auto-create
specs/{NNN}from highest +001)" - Default: Auto-create
specs/{NNN}based on existing specs
- Ask: "Which spec folder should I use? (Leave empty to auto-create
Context:
- Ask: "Any additional context about this feature? (Leave empty to infer from your request)"
- Default: Infer from request and environment
Known Issues:
- Ask: "Are there any known issues or bugs to address? (Leave empty to investigate during workflow)"
- Default: Discover during workflow
Environment/Staging Link:
- Ask: "Do you have a staging environment URL to test against? (Leave empty to skip browser testing steps)"
- Default: Skip DevTools/browser testing if not provided
Scope/Files:
- Ask: "Which files or directories should I focus on? (Leave empty to default to
specs/**)" - Default:
specs/**
- Ask: "Which files or directories should I focus on? (Leave empty to default to
After Collecting Inputs:
- Confirm all inputs with the user
- Resolve
git_branchfrom branch_strategy (eitherfeature-{NNN}ormain) - Parse and analyze the request
- Create requirement summary
- Assess complexity
Outputs:
- Branch strategy chosen
- Git branch resolved
- Spec folder determined
- All inputs confirmed
- Requirement summary
- Approach overview
- Complexity assessment
Validation: all_inputs_collected_and_confirmed
Approval Gate: "All inputs collected. Branch strategy: {branch_strategy}. Spec folder: {spec_folder}. Proceed to workspace setup?"
Step 2: Workspace Setup
Action: Create isolated worktree for development
Skill Invocation: Execute git-worktrees workflow Strategy: Use selected branch_strategy Inputs passed:
- Task description: {request}
- Branch strategy: {branch_strategy}
- Worktree directory: Auto-detect via priority system
Worktree Creation:
- If main_temp: Creates
.worktrees/{spec-id}with temp branchtemp/{spec-id} - If feature_branch: Creates
.worktrees/{spec-id}with branchfeature-{spec-id}
Dependencies installed: Auto-detected (npm/cargo/pip/go) Tests run: Baseline verification Environment verified: Clean starting state
Outputs:
- worktree_path: Absolute path to worktree (e.g.,
.worktrees/001) - git_branch: Active branch name (e.g.,
temp/001orfeature-001) - baseline_tests: Pass/fail status
Validation: worktree_ready_and_verified
Approval Gate: "Workspace created at {worktree_path} on branch {git_branch}. Baseline tests: {baseline_tests}. Proceed to pre-work review?"
Note: All subsequent steps execute within this worktree context
Step 3: Pre-work Review
Action: Review required documents
Required Documents:
- AGENTS.md
- .specify/memory/constitution.md
- knowledge/*.md
Verification: MUST REVIEW
Validation: principles_established
Approval Gate: "Pre-work documentation reviewed. Proceed to specification?"
Step 4: Specification
Command: /speckit.specify [feature-description]
Action: Create spec.md with acceptance criteria
Outputs:
- Feature branch: created
- spec.md: acceptance_criteria
- Location:
specs/[NNN-feature]/spec.md
Validation: spec_complete
Chrome DevTools (when analyzing existing features):
- Navigate → Snapshot → Analyze → Document
Approval Gate: "Specification created. Review spec.md and approve to proceed to clarification?"
Step 5: Clarification
Command: /speckit.clarify
Action: Resolve ambiguities and clarify requirements
Outputs:
- Resolved ambiguities
- Clarified requirements
- Updated spec
Validation: requirements_clear
Chrome DevTools (when staging URL provided):
- Navigate → Inspect → Analyze → Clarify
- Capture: current_behavior_screenshots
Approval Gate: "Requirements clarified. Proceed to quality checklist?"
Step 6: Quality Checklist
Command: /speckit.checklist
Action: Generate quality validation checklist
Outputs:
- Quality checklist: generated
Validation: checklist_generated
Approval Gate: "Quality checklist complete. Proceed to planning parallel block?"
Step 7: Parallel Planning Block (Stage A)
Description: Parallel specialist analyses for planning/spec
This step contains sub-phases that execute sequentially:
Phase A: Parallel Work
Execution: Parallel
Concurrency: 3 (maximum parallel agents)
Shared Context:
[SPEC_FOLDER]/spec.md- quality_checklist
- request_summary
- context
Parallel Agent Tasks:
| Agent | Instructions | Output Sections |
|---|---|---|
| Requirements Analyst | Requirements dossier with success metrics and dependencies | objectives, acceptance_criteria_map, dependencies, constraints, success_metrics |
| Solution Architect | Architecture with components, interfaces, data flow, alternatives | components, interfaces, data_flow, patterns, alternatives, tradeoffs |
| Risk/Compliance Analyst | Risks, severities, mitigations, edge cases, non-functionals | risks, severities, mitigations, edge_cases, security_privacy, performance_accessibility |
| Estimation/Scope Analyst | Phases, milestones, sequencing, effort ranges, assumptions | phases, milestones, dependencies, sequencing, effort_ranges, assumptions |
Phase B: Review
By: Lead Reviewer A
Outputs: [synthesis_guidance, review_notes]
Phase C: Synthesis
By: Lead Synthesizer A
Output Files:
[SPEC_FOLDER]/plan.md[SPEC_FOLDER]/planning-summary.md
Phase D: Main Agent Finalization
By: MAIN_AGENT
Action: QA review and finalization of planning artifacts
Checks:
- Confirm alignment with request and context
- Validate completeness and consistency
- Ensure output format and sections present
- Resolve remaining open questions or note them
Outputs:
- Main agent review notes
- Final signoff: true
Note: This phase executes BEFORE the approval gate
Approval Gate: "Planning artifacts synthesized. Approve to proceed to task breakdown?"
Step 8: Task Breakdown
Command: /speckit.tasks
Action: Generate actionable task checklist
Outputs:
- tasks/checklist.md
- Task duration: 15_to_60_minutes
- Tracking structure: established
Validation: tasks_actionable
Approval Gate: "Tasks broken down. Review checklist.md and approve to proceed to analysis?"
Step 9: Analysis
Command: /speckit.analyze
Action: Check consistency and verify alignment
Outputs:
- Consistency report
- Coverage verification
- Alignment check
- Gap analysis
Validation: consistency_verified
Chrome DevTools (when comparing staging vs spec):
- Navigate → Snapshot → Compare → Report
- Focus: ui_consistency, functionality_gaps, performance_baseline
Approval Gate: "Analysis complete. Review consistency report and approve to proceed to implementation parallel prep?"
Step 10: Parallel Implementation Prep (Stage B)
Description: Parallel prep for core, integrations, tests, docs
This step contains sub-phases that execute sequentially:
Phase A: Parallel Work
Execution: Parallel
Concurrency: 3 (maximum parallel agents)
Shared Context:
[SPEC_FOLDER]/spec.md[SPEC_FOLDER]/plan.md- tasks/checklist.md
- consistency_report
Parallel Agent Tasks:
| Agent | Instructions | Output Sections |
|---|---|---|
| Core Implementer | Modules, data structures, algorithmic approach | modules, data_structures, algorithms, rationale |
| Integrations/Adapters Engineer | Integrations, API contracts, configuration, error handling | integrations, api_contracts, error_handling, configuration |
| Test Engineer | Test plan, key cases, fixtures, coverage targets | test_plan, key_cases, fixtures, coverage_targets |
| Docs Engineer | Usage docs, examples, migration | usage, examples, migration_upgrade |
Phase B: Review
By: Integration Reviewer B
Outputs: [synthesis_guidance, review_notes]
Phase C: Synthesis
By: Lead Synthesizer B
Output Files:
[SPEC_FOLDER]/implementation_plan.md
Phase D: Main Agent Finalization
By: MAIN_AGENT
Action: QA review and finalization of implementation plan
Checks:
- Confirm alignment with request and context
- Validate completeness and consistency
- Ensure output format and sections present
- Resolve remaining open questions or note them
Outputs:
- Main agent review notes
- Final signoff: true
Note: This phase executes BEFORE the approval gate
Approval Gate: "Implementation plan synthesized. Approve to proceed to implementation check?"
Step 11: Implementation Check
Command: /speckit.implement [task-id]
Action: Verify prerequisites before code changes
Checks:
- Prerequisites: verified
- Blockers: none
- Environment: ready
Critical Gate: CONFIRM_BEFORE_CODE
Chrome DevTools (when validating environment):
- Verify: api_endpoints_accessible, authentication_working, dependencies_loaded
Approval Gate: "Implementation prerequisites verified. APPROVE TO BEGIN CODE IMPLEMENTATION?"
Warning: "This will begin actual code changes"
Step 12: Development
Approach: manual_implementation_with_checkpoints
Requirements:
- Follow: knowledge/code_standards.md
- Update: task_checklist_progressively
- Test: before_commit
Checkpoints:
Major Changes:
- Action: log_progress
- Approval: USER_APPROVAL_REQUIRED
Issues Found:
- Action: document_resolution
- Approval: USER_APPROVAL_REQUIRED
Architecture Change:
- Action: note_deviation
- Approval: USER_APPROVAL_REQUIRED
Chrome DevTools (when debugging implementation):
- Test in browser
- Verify network calls
- Check console output
- Validate DOM changes
- Measure performance impact
Approval Gate: "Development complete. Proceed to quality parallel review before completion?"
Step 13: Parallel Quality Review (Stage C)
Description: Parallel reviewers for final quality validation
This step contains sub-phases that execute sequentially:
Phase A: Parallel Work
Execution: Parallel
Concurrency: 3 (maximum parallel agents)
Parallel Agent Tasks:
| Agent | Instructions | Focus |
|---|---|---|
| Completeness Reviewer | Coverage and non-functionals validation | coverage_gaps, missing_requirements, non_functionals |
| Feasibility Reviewer | Technical viability, performance, scalability | technical_viability, performance, scalability, constraints |
| Security/Privacy Reviewer | Security/privacy assessment and mitigations | vulnerabilities, auth, encryption, input_validation |
| Consistency/Traceability Reviewer | Contradictions, terminology, references | contradictions, terminology, references, traceability |
Phase B: Review
By: Lead Reviewer C
Outputs: [synthesis_guidance, prioritized_issue_list]
Phase C: Synthesis
By: Lead Synthesizer C
Output Files:
[SPEC_FOLDER]/quality_report.md
Phase D: Main Agent Finalization
By: MAIN_AGENT
Action: QA review and finalization of quality report
Checks:
- Confirm alignment with request and context
- Validate completeness and consistency
- Ensure output format and sections present
- Resolve remaining open questions or note them
Outputs:
- Main agent review notes
- Final signoff: true
Note: This phase executes BEFORE the approval gate
Approval Gate: "Quality review complete. Approve to proceed to completion summary?"
Step 14: Completion
Action: Document changes and create summary
Summary Document:
- Location:
specs/[NNN-feature]/implementation-summary.md - Required Sections:
- feature_branch_name
- files_modified_created
- verification_steps_taken
- deviations_from_plan
- knowledge_base_updates
- recommended_next_steps
- browser_testing_results
Final Checklist:
- Update task status: completed
- Validation passed: confirmed
- Summary created: true
- Staging verified: true
Approval Gate: "Implementation summary complete. Approve to finalize workflow?"
Step 15: Integration & Cleanup
Action: Integrate work and cleanup based on strategy
If main_temp (Default - 80% of work):
Philosophy: Temp branches are immediately merged and deleted. This is the recommended workflow for most development work.
Integration Steps:
- Verify worktree clean: Ensure no uncommitted changes in worktree
cd {worktree_path}
git status # Should show "nothing to commit, working tree clean"
- Return to main repository: Leave worktree and return to main project
cd ../.. # Return to main project root
- Checkout and update main: Ensure main is current
git checkout main
git pull --ff-only # Get latest changes from remote
- Merge temp branch: Fast-forward merge (should always succeed)
git merge --ff-only temp/{spec-id}
- Delete temp branch: Remove temporary branch
git branch -d temp/{spec-id}
- Remove worktree: Clean up worktree directory
git worktree remove .worktrees/{spec-id}
- Verify integration: Confirm changes are on main
git log --oneline -5 # Should show integrated commits
git worktree list # Should not show removed worktree
Success Criteria:
- ✅ Changes integrated to main
- ✅ Temp branch deleted (verify:
git branch | grep temp/{spec-id}returns nothing) - ✅ Worktree removed (verify:
.worktrees/{spec-id}directory gone) - ✅ No orphaned references (verify:
git worktree listclean)
Validation: temp_branch_integrated_and_cleaned
Note: This happens automatically after Step 13. Temp branches NEVER persist.
Approval Gate: "Temp branch integrated to main and cleaned up. Workflow complete!"
Termination: Workflow ends after integration complete
If feature_branch (Exception - 20% of work):
Philosophy: Long-running branches remain for PR workflow and team review.
Actions:
- Push feature branch: Push to remote for PR creation (default remote:
origin)
cd {worktree_path}
git push -u <remote> feature-{spec-id}
Keep worktree: Leave worktree in place for continued development
- Worktree remains at
.worktrees/{spec-id} - Branch remains as
feature-{spec-id} - Work can continue iteratively
- Worktree remains at
Notify user:
Feature branch 'feature-{spec-id}' ready for PR.
Worktree preserved at {worktree_path}
Next steps:
- Create PR on GitHub/GitLab
- Request code review
- Address feedback in worktree
- Merge via web interface after approval
User Manual Steps:
- Create pull request via GitHub/GitLab web interface
- Await and address code review feedback
- Continue development in worktree as needed
- Merge PR when approved
- Manual cleanup after PR merged:
cd ../.. # Return to main repo
git worktree remove .worktrees/{spec-id}
git branch -d feature-{spec-id} # Delete local branch
Validation: feature_branch_pushed_and_ready_for_pr
Approval Gate: "Feature branch pushed. Create PR when ready. Workflow paused for review process."
Termination: Workflow pauses; PR workflow takes over
Conflict Resolution (Applies to both strategies)
If merge conflict occurs (rare with main_temp, possible with feature_branch):
Detection:
git merge temp/{spec-id}
# Error: CONFLICT (content): Merge conflict in {file}
Options Offered: A) Rebase and retry: Rebase branch onto current main, then merge
git checkout temp/{spec-id}
git rebase main
# Resolve conflicts
git checkout main
git merge --ff-only temp/{spec-id}
B) Manual resolution: Resolve conflicts in worktree, commit, then merge
C) Abort and investigate: Cancel integration, investigate why main diverged
Note: Conflicts are rare with main_temp (immediate integration). If conflicts occur frequently, review team workflow.
Troubleshooting & Error Handling
Error 1: "Worktree removal fails"
Error: fatal: 'remove' cannot be used with a locked working tree
Cause: Worktree is locked or in use
Solution:
# Check if worktree is locked
git worktree list
# Unlock if necessary
git worktree unlock .worktrees/{spec-id}
# Try removal again
git worktree remove .worktrees/{spec-id}
Error 2: "Uncommitted changes in worktree"
Error: fatal: 'remove' cannot be used with modified files
Cause: Untracked or uncommitted files exist
Solution:
cd .worktrees/{spec-id}
git status
# Option A: Commit changes
git add .
git commit -m "Final changes before integration"
# Option B: Stash changes
git stash push -m "Pre-integration stash"
cd ../..
git worktree remove .worktrees/{spec-id}
Error 3: "Temp branch still exists after cleanup"
git branch | grep temp/{spec-id}
# Shows: temp/{spec-id}
Cause: Branch deletion failed
Solution:
# Force delete if safe
git branch -D temp/{spec-id}
# Verify deletion
git branch | grep temp/{spec-id} # Should return nothing
Error 4: "Merge not fast-forward"
Error: fatal: Not possible to fast-forward, aborting.
Cause: Main has diverged (new commits added while you worked)
Solution Options:
# Option A: Rebase and retry (RECOMMENDED)
cd .worktrees/{spec-id}
git fetch origin main:main # Update main ref
git rebase main
# Resolve any conflicts
git add .
git rebase --continue
cd ../..
git checkout main
git merge --ff-only temp/{spec-id}
# Option B: Merge commit (if rebase not possible)
git checkout main
git merge --no-ff temp/{spec-id} -m "Merge temp/{spec-id}: {description}"
Error 5: "Remote branch already exists"
Error: remote: error: refusing to update checked out branch: refs/heads/feature-{spec-id}
Cause: Feature branch already pushed
Solution:
# Update existing branch
cd .worktrees/{spec-id}
git push origin feature-{spec-id} --force-with-lease
# Or use a different branch name
git checkout -b feature-{spec-id}-v2
git push -u origin feature-{spec-id}-v2
Error 6: "Permission denied during push"
Error: Permission denied (publickey)
Cause: SSH key not configured or expired
Solution:
# Verify SSH connection
ssh -T git@github.com
# If fails, add SSH key
ssh-add ~/.ssh/id_rsa
# Or use HTTPS instead
git remote set-url origin https://github.com/user/repo.git
git push -u origin feature-{spec-id}
Error 7: "Network failure during integration"
Error: fatal: unable to access 'https://...': Could not resolve host
Cause: Network connectivity issues
Solution:
# Wait and retry
git push -u origin feature-{spec-id}
# If persistent, work offline and push later
# Changes are safe in local worktree
Error 8: "Worktree path doesn't exist"
Error: fatal: '.worktrees/{spec-id}' is not a working tree
Cause: Worktree was manually deleted or moved
Solution:
# Prune stale worktree references
git worktree prune
# Verify worktrees
git worktree list
# If branch still exists, recreate worktree
git worktree add .worktrees/{spec-id} temp/{spec-id}
Recovery Procedure: Complete Rollback
If integration completely fails and you need to start over:
# 1. Save your work (just in case)
cd .worktrees/{spec-id}
git bundle create ~/backup-{spec-id}.bundle --all
cd ../..
# 2. Clean up failed state
git worktree remove .worktrees/{spec-id} --force
git branch -D temp/{spec-id} # or feature-{spec-id}
# 3. Restore to clean state
git checkout main
git reset --hard origin/main
# 4. If needed, restore from bundle
git worktree add .worktrees/{spec-id}-recovery main
cd .worktrees/{spec-id}-recovery
git pull ~/backup-{spec-id}.bundle
Termination: Workflow ends after this step
5. 🤝 AGENT COORDINATION
Note: For complete sub-agent role definitions and output specifications, see references/sub-agents.md.
Stage A: Planning/Spec (Step 6)
- Requirements Analyst
- Solution Architect
- Risk/Compliance Analyst
- Estimation/Scope Analyst
- Lead Reviewer A
- Lead Synthesizer A
Stage B: Implementation Prep (Step 9) 7. Core Implementer 8. Integrations/Adapters Engineer 9. Test Engineer 10. Docs Engineer 11. Integration Reviewer B 12. Lead Synthesizer B
Stage C: Quality Review (Step 12) 13. Completeness Reviewer 14. Feasibility Reviewer 15. Security/Privacy Reviewer 16. Consistency/Traceability Reviewer 17. Lead Reviewer C 18. Lead Synthesizer C
6. 🔄 EXECUTION MODEL
Parallel Block Pattern
Each parallel stage follows this pattern:
┌─────────────────────────────────┐
│ Parallel Agent Execution │
│ ┌────┐ ┌────┐ ┌────┐ ┌────┐ │
│ │ A1 │ │ A2 │ │ A3 │ │ A4 │ │ ← Execute in parallel
│ └────┘ └────┘ └────┘ └────┘ │
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Review Phase │ ← Lead Reviewer consolidates
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Synthesis Phase │ ← Lead Synthesizer creates output
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Main Agent QA Phase │ ← Main agent finalizes
└─────────────────────────────────┘
↓
┌─────────────────────────────────┐
│ Approval Gate │ ← User approval required
└─────────────────────────────────┘
7. 📊 STAGE DEFINITIONS
Stage A: Planning/Spec (Step 6)
Note: This stage executes as part of the workflow's step 6 parallel planning block. The association with /speckit.plan is inferred from workflow context.
Sub-Agents
Requirements Analyst:
- Extracts functional requirements
- Identifies constraints
- Defines success metrics
- Maps dependencies
Solution Architect:
- Designs components
- Defines interfaces
- Maps data flow
- Considers architecture patterns
Risk/Compliance Analyst:
- Identifies risks with severity
- Defines mitigations
- Checks compliance requirements
- Analyzes edge cases
Estimation/Scope Analyst:
- Creates milestones
- Defines sequencing
- Provides effort ranges
- Documents assumptions
Review & Synthesis
Lead Reviewer A:
- Reconciles conflicting recommendations
- Validates completeness
- Resolves contradictions
- Provides synthesis guidance
Lead Synthesizer A:
- Creates plan.md
- Generates planning-summary.md
- Integrates all findings
- Ensures coherence
Outputs
[SPEC_FOLDER]/plan.md[SPEC_FOLDER]/planning-summary.md
Stage B: Implementation Prep (Step 9)
Note: This stage executes as part of the workflow's step 9 parallel implementation preparation block. Runs before actual implementation begins.
Sub-Agents
Core Implementer:
- Defines modules
- Designs data structures
- Plans algorithms
- Maps business logic
Integrations/Adapters Engineer:
- Defines integrations
- Creates API contracts
- Plans configuration
- Error handling strategies
Test Engineer:
- Creates test plan
- Defines test cases
- Prepares fixtures
- Sets coverage targets
Docs Engineer:
- Plans usage documentation
- Creates examples
- Prepares migration guides
- API documentation
Review & Synthesis
Integration Reviewer B:
- Ensures API coherence
- Validates testability
- Checks quality standards
- Provides integration guidance
Lead Synthesizer B:
- Creates implementation_plan.md
- Coordinates approaches
- Synthesizes strategies
- Ensures alignment
Outputs
[SPEC_FOLDER]/implementation_plan.md
Stage C: Quality Review (Step 12)
Note: This stage executes as part of the workflow's step 12 parallel quality review block. Provides comprehensive quality validation after development.
Sub-Agents
Completeness Reviewer:
- Checks coverage gaps
- Validates non-functionals
- Ensures requirements met
- Identifies missing pieces
Feasibility Reviewer:
- Validates technical viability
- Checks performance implications
- Assesses scalability
- Reviews constraints
Security/Privacy Reviewer:
- Identifies vulnerabilities
- Checks authentication/authorization
- Reviews encryption needs
- Validates input handling
Consistency/Traceability Reviewer:
- Finds contradictions
- Checks terminology consistency
- Validates references
- Ensures traceability
Review & Synthesis
Lead Reviewer C:
- Assesses severity
- Prioritizes issues
- Provides resolution guidance
- Creates action items
Lead Synthesizer C:
- Creates quality_report.md
- Consolidates findings
- Generates recommendations
- Provides summary
Outputs
[SPEC_FOLDER]/quality_report.md
8. ✅ APPROVAL GATES
Each step has a mandatory approval gate per sk_p__complete.yaml:
| Step | Approval Prompt | Confirmation | Warning |
|---|---|---|---|
| 1→2 | "Requirements analyzed. Branch strategy: {branch_strategy}. Workspace will be created at .worktrees/{spec-id}. Proceed to workspace setup?" | Required | None |
| 2→3 | "Workspace created at {worktree_path} on branch {git_branch}. Baseline tests: {baseline_tests}. Proceed to pre-work review?" | Required | None |
| 3→4 | "Pre-work documentation reviewed. Proceed to specification?" | Required | None |
| 4→5 | "Specification created. Review spec.md and approve to proceed to clarification?" | Required | None |
| 5→6 | "Requirements clarified. Proceed to quality checklist?" | Required | None |
| 6→7 | "Quality checklist complete. Proceed to planning parallel block?" | Required | None |
| 7→8 | "Planning artifacts synthesized. Approve to proceed to task breakdown?" | Required | None |
| 8→9 | "Tasks broken down. Review checklist.md and approve to proceed to analysis?" | Required | None |
| 9→10 | "Analysis complete. Review consistency report and approve to proceed to implementation parallel prep?" | Required | None |
| 10→11 | "Implementation plan synthesized. Approve to proceed to implementation check?" | Required | None |
| 11→12 | "Prerequisites verified. APPROVE TO BEGIN CODE IMPLEMENTATION?" | Required | "This will begin actual code changes" |
| 12→13 | "Development complete. Proceed to quality parallel review before completion?" | Required | None |
| 13→14 | "Quality review complete. Approve to proceed to completion summary?" | Required | None |
| 14→15 | "Implementation summary complete. Approve to finalize workflow?" | Required | None |
| 15 | "Ready to integrate? For main_temp: Merge and cleanup. For feature_branch: Push for PR." | Required | "main_temp will delete worktree" |
Note: All 14 approval gates require explicit user confirmation before proceeding.
9. ⚙️ ADAPTIVE RULES & FIELD HANDLING
Adaptive Rules
Note: For detailed adaptive rule specifications and decision trees, see references/adaptive-rules.md.
This workflow automatically handles empty input fields per sk_p__complete.yaml:
branch_strategy
- Required: Yes
- Type: Enum [
main_temp,feature_branch] - Default:
main_temp⭐ - Options:
main_temp: Create temporary worktree with short-lived branch. Merge immediately after completion (80% of work)feature_branch: Create long-running feature branch in worktree for PR workflow (20% of work)
- Empty Handling: Defaults to
main_tempif not specified - Controls: Worktree creation, branch naming, and Step 14 integration behavior
- Breaking Change:
main_branchoption removed; usemain_tempfor quick integration
spec_id
- Derived From: spec_folder path using pattern
specs/{NNN}orspecs/{NNN-name} - Extraction Logic:
specs/001→ spec_id =001specs/001-feature-name→ spec_id =001specs/my-feature→ spec_id =my-feature(full name)- If numeric prefix exists: Extract
{NNN}only - If no numeric prefix: Use full folder name
- Fallback: If extraction fails, use timestamp
YYYYMMDD-HHMM - Usage: Used to generate worktree path and branch name
- Examples:
- spec_folder=
specs/001→ worktree=.worktrees/001, branch=temp/001 - spec_folder=
specs/007-chrome-devtools→ worktree=.worktrees/007, branch=feature-007
- spec_folder=
git_branch
- Derived: Automatically based on branch_strategy
- Branch Naming:
- If
branch_strategy == main_temp:temp/{spec_id}(e.g.,temp/001) - If
branch_strategy == feature_branch:feature-{spec_id}(e.g.,feature-001)
- If
- Lifecycle:
- main_temp: Created → Used → Merged → Deleted automatically
- feature_branch: Created → Used → Pushed for PR → Manually deleted after merge
- Empty Handling: Cannot be empty; derived automatically from branch_strategy
- Examples:
- main_temp + spec_id=
001→temp/001 - feature_branch + spec_id=
007→feature-007 - main_temp + spec_id=
my-feature→temp/my-feature
- main_temp + spec_id=
worktree_path
- Pattern:
.worktrees/{spec-id} - Purpose: Isolated workspace for development
- Created: At Step 2 via git-worktrees skill
- Lifecycle:
- If main_temp: Created → Used → Removed (Step 14)
- If feature_branch: Created → Used → Preserved for PR workflow
spec_folder
- Auto-create: Yes
- Default Pattern:
specs/{NNN}where {NNN} is highest existing +001 - Scope: Project specs directory
- Empty Handling: Automatically creates new folder following naming convention
context
- Auto-create: No
- Default: Inferred from request and staging link if provided
- Empty Handling: Inference from available inputs
issues
- Auto-create: No
- Default: None
- Empty Handling: Investigated and discovered during workflow execution
environment (staging link)
- Auto-create: No
- Default: None
- Empty Handling: DevTools/browser testing steps are skipped
scope (files)
- Auto-create: No
- Default:
specs/** - Empty Handling: Uses default scope policy limiting operations to specs directory
Worktree & Branch Creation
- Execution: Step 2 via git-worktrees skill invocation
- Process:
- Determine spec_id from spec_folder
- Create worktree at
.worktrees/{spec-id} - Create and checkout branch based on strategy:
- If main_temp: Create
temp/{spec-id}from main - If feature_branch: Create
feature-{spec-id}from main
- If main_temp: Create
- Install dependencies in worktree
- Run baseline tests
- Return worktree_path and git_branch to calling skill
- No Direct Branch Creation: All workspace setup delegated to git-worktrees skill
Field Handling
Auto-Creation
- spec_folder: Auto-create
specs/{NNN}from highest +001 - worktree_path: Auto-create
.worktrees/{NNN}via git-worktrees skill - git_branch: Auto-derive from branch_strategy (temp/{NNN} or feature-{NNN})
- context: Infer from request and staging link
- issues: Discover during workflow execution
Scope Policy
- Default:
specs/** - Enforcement: Limit file operations to scope
- Validation: Block operations outside scope
10. 🔗 INTEGRATION POINTS
Skill Selection Guidance
- Choose this skill when a full orchestrated, parallel, gated flow is required
- For planning-only, use speckit-spec-plan; for implementation-only, use speckit-implementer
- This executor coordinates parallel execution with explicit approval gates
With Chrome DevTools
- Stage A: Analyze current implementation
- Stage B: Validate environment
- Stage C: Compare staging vs spec
With Manual Steps
- Approval gates require user confirmation
- Review artifacts between stages
- Manual fixes for identified issues
11. ⚡ PERFORMANCE CHARACTERISTICS
Note: Performance varies based on system resources, complexity, and agent response efficiency.
- Parallel Execution: Significantly faster than sequential execution
- Stage A: Parallel execution of 4 planning agents + review + synthesis
- Stage B: Parallel execution of 4 implementation agents + review + synthesis
- Stage C: Parallel execution of 4 quality reviewers + review + synthesis
- Orchestration: Minimal overhead for coordination between stages
12. 🚨 ERROR HANDLING
Retry Policy
- Targeted retries: Only failed agents
- Max retries: 2 per agent
- Backoff: Exponential with jitter
Failure Modes
- Agent failure: Retry then fallback to sequential
- Review failure: Escalate to main agent
- Synthesis failure: Use partial results
- Approval rejection: Document and stop
13. ⚠️ LIMITATIONS
- Requires parallel execution support: Falls back to sequential if unavailable
- Memory intensive: 18 agents require significant context
- Approval gates mandatory: Cannot skip user confirmations
- English only: Agent prompts and outputs in English
14. 📈 SUCCESS METRICS
Note: Target quality metrics for workflow execution. These represent ideal performance goals.
- Parallel efficiency: Significant performance improvement vs sequential
- Agent success rate: >95% first attempt
- Synthesis quality: >90% coherence score
- Approval rate: >80% first-time approvals