Execute wave-based planning and execution with skill orchestration
Orchestrates complex wave-based execution through parallel agent coordination and skill invocation.
/plugin marketplace add krzemienski/shannon-framework/plugin install shannon@shannon-frameworkOrchestrates complex wave-based execution through skill invocation. Manages pre-wave checkpoints, wave planning/execution, agent coordination, functional testing, and goal alignment validation with post-wave preservation.
/shannon:spec first)Create checkpoint before wave execution:
Invocation:
@skill context-preservation
- checkpoint_name: "pre-wave-execution"
- context_to_save: [
"spec_analysis",
"phase_plan_detailed",
"architecture_complete",
"all_previous_wave_results"
]
- purpose: "Restore point before wave execution"
The context-preservation skill will save current state to Serena MCP for recovery if needed.
Invoke wave orchestration skill based on flags:
Planning Mode (--plan or --dry-run):
@skill wave-orchestration --mode=plan
- Input: User's wave request
- Options:
* analyze_dependencies: true
* generate_wave_structure: true
* allocate_agents: true
* create_execution_plan: true
* dry_run: true (if --dry-run flag)
* save_to_serena: true
- Output: wave_execution_plan (not executed)
Execution Mode (default):
@skill wave-orchestration --mode=execute
- Input: User's wave request
- Options:
* load_existing_plan: true (if wave_execution_plan exists)
* execute_waves: true
* true_parallelism: true (spawn all wave agents in one message)
* synthesis_checkpoints: true (mandatory after each wave)
* save_results: true
- Output: wave_execution_results
The wave-orchestration skill will:
Activate WAVE_COORDINATOR agent for orchestration:
Activation:
@agent WAVE_COORDINATOR
- Purpose: Manage parallel sub-agent execution across waves
- Responsibilities:
* Spawn wave agents in parallel (one message)
* Enforce context loading protocol for every agent
* Synthesize results after each wave
* Enforce validation gates between waves
* Manage wave dependencies and sequencing
- Context Required:
* spec_analysis (from Serena)
* phase_plan_detailed (from Serena)
* wave_execution_plan (from wave-orchestration skill)
* All previous wave completions
WAVE_COORDINATOR will:
If project includes tests, invoke functional testing validation:
Invocation (conditional):
@skill functional-testing
- Input: Wave execution results
- Options:
* test_type: "functional" (NO MOCKS mandate)
* run_existing_tests: true
* validate_coverage: true
* verify_no_mocks: true (Iron Law)
- Output: test_results
Only invoked if:
Validate wave results align with North Star goal:
Invocation:
@skill goal-alignment
- Input: Wave execution results
- Options:
* load_north_star: true (from Serena if exists)
* calculate_alignment: true
* threshold: 0.7 (minimum alignment score)
* report_gaps: true
- Output: alignment_validation
The goal-alignment skill will:
Create checkpoint after successful wave completion:
Invocation:
@skill context-preservation
- checkpoint_name: "post-wave-{wave_number}"
- context_to_save: [
"wave_execution_results",
"wave_{N}_complete",
"test_results",
"alignment_validation",
"all_agent_results"
]
- purpose: "Preserve complete wave execution state"
Format and display wave execution summary:
š Wave Execution Complete
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
**Execution Summary:**
- Strategy: {strategy_name}
- Total Waves: {wave_count}
- Agents Deployed: {total_agents}
- Execution Time: {duration}
- Speedup: {speedup}x vs sequential
**Waves Executed:**
{for each wave}
āā Wave {N}: {wave_name}
āā Agents: {agent_count}
āā Duration: {wave_duration}
āā Deliverables: {files_created} files, {components_built} components
āā Tests: {tests_created} functional tests (NO MOCKS)
**Key Accomplishments:**
- {accomplishment_1}
- {accomplishment_2}
- {accomplishment_3}
**Goal Alignment:** {alignment_score} / 1.0
{if alignment_score < 0.7}
ā ļø Alignment below threshold. Gaps: {gap_list}
{end if}
**Checkpoints Created:**
ā Pre-wave: {pre_checkpoint_key}
ā Post-wave: {post_checkpoint_keys}
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Next Steps:
{if all_complete}
- Project complete! Review deliverables
- Run /shannon:status for final validation
{else}
- Continue with remaining waves
- Review wave results in Serena
{end if}
Generate wave execution plan without executing:
/shannon:wave Build full-stack app --plan
Shows:
Does NOT execute - just planning.
Generate detailed execution plan with impact analysis:
/shannon:wave Implement microservices --dry-run
Shows everything from --plan PLUS:
Does NOT execute - comprehensive planning only.
/shannon:wave Build authentication system with JWT and OAuth
What happens:
/shannon:wave Implement dashboard with analytics --plan
What happens:
/shannon:wave Build microservices architecture --dry-run
What happens:
The wave-orchestration skill automatically selects strategy:
When: Clear sequential dependencies
When: Independent work streams
When: Optimization tasks
When: Uncertain requirements
V3 Compatibility: ā Maintained
Same from V3:
/shannon:wave [request]Enhanced in V4:
Breaking Changes: None
Migration:
These cannot be violated even under pressure:
See wave-orchestration skill for complete Iron Law documentation.
Wave orchestration achieves 3.5x average speedup through:
Expected speedup by wave size:
Wave execution succeeds when:
Before /shannon:wave:
/shannon:spec - Analyze specification (required)/shannon:north_star - Set guiding goal (recommended)/shannon:check_mcps - Verify MCP availabilityDuring /shannon:wave:
/shannon:checkpoint - Manual checkpoint (automatic in wave execution)/shannon:status wave - Check wave progressAfter /shannon:wave:
/shannon:memory pattern - Analyze wave patterns/shannon:restore - Restore from checkpoint if needed/shannon:status - Verify completion