plugin-workflow
FreeRuns bundled scriptsNot checkedOrchestrates JUCE plugin implementation through stages 1-3 (Foundation, DSP, GUI) using subagent delegation with automatic validation after each stage. Use…
About this skill
plugin-workflow Skill
Purpose: Pure orchestrator for stages 1-3 of JUCE plugin implementation with automatic validation after each stage. This skill delegates to specialized subagents and validation-agent for continuous quality assurance.
Overview
Implementation milestones:
- Build System Ready (Stage 1): Create build system and implement parameters (foundation-shell-agent)
- Audio Engine Working (Stage 2): Implement audio processing (dsp-agent)
- UI Integrated (Stage 3): Connect WebView interface to audio engine (gui-agent)
Stage 0 (Research & Planning) is handled by plugin-planning skill.
After Stage 3 completes, plugin is ready for installation (no separate validation stage - validation is automatic and continuous).
Delegation Protocol
CRITICAL: Stages 1-3 MUST invoke subagents via Task tool. This skill is a pure orchestrator and NEVER implements plugin code directly.
Delegation sequence for every stage:
- Load contracts in parallel (architecture.md, plan.md, parameter-spec.md, creative-brief.md)
- Read Required Reading (juce8-critical-patterns.md) once at workflow start
- Construct minimal prompt with plugin name + stage + Required Reading
- Invoke subagent via Task tool
- After subagent returns, invoke validation-agent (ALL stages 1-3)
- Execute checkpoint protocol (see references/checkpoint-protocol.md)
Stage routing:
- Stage 1 → foundation-shell-agent
- Stage 2 → dsp-agent
- Stage 3 → gui-agent
Validation routing:
After each stage completes, validation-agent runs automatically with enhanced runtime validation (compile-time + runtime tests). If validation fails with continue_to_next_stage: false, workflow BLOCKS until issues resolved.
Preconditions
Before starting Stage 1, verify these contract files exist:
plugins/$PLUGIN_NAME/.ideas/architecture.md(from Stage 0)plugins/$PLUGIN_NAME/.ideas/plan.md(from Stage 0)plugins/$PLUGIN_NAME/.ideas/creative-brief.md(from ideation)plugins/$PLUGIN_NAME/.ideas/parameter-spec.md(from UI mockup finalization)
If parameter-spec-draft.md exists but parameter-spec.md missing: Block with message: "Draft parameters found, but full specification required. Complete UI mockup workflow to generate parameter-spec.md. Run: /dream [PluginName] → option 2 (Full UI mockup first)"
If contracts missing:
Block and instruct user to run /plan [PluginName] to complete Stage 0.
See references/precondition-checks.md for implementation.
Resume Entry Point
When resuming via /continue [PluginName]:
- Verify state integrity (see references/state-management.md#verifyStateIntegrity)
- Parse
.continue-here.mdfor current stage and workflow mode - Verify contracts unchanged since last checkpoint (checksums match)
- Verify git working directory clean
- Verify PLUGINS.md status matches .continue-here.md stage
If all checks pass: Resume at stage specified in .continue-here.md If any fail: Present recovery menu (reconcile / clean working directory / review changes)
Workflow Mode
Determine whether to auto-progress (express mode) or present menus (manual mode).
Mode sources (priority order):
- Environment variables:
WORKFLOW_MODE=express|manual - .continue-here.md field (for resumed workflows)
- Default to "manual"
Express mode behavior:
- Auto-progress through stages without menus
- Drops to manual on ANY error (build failures, validation failures, etc.)
- Final menu always appears after Stage 3 (plugin complete)
See references/workflow-mode.md for implementation.
Stage Dispatcher
Entry point: Called by /implement or /continue after plugin-planning completes.
Dispatch flow:
- Verify state integrity → BLOCK if corrupted (exit 2 → run /reconcile)
- Check preconditions → BLOCK if failed
- Automatic brief sync (before Stage 1 only, if mockup exists) → See references/creative-brief-sync.md
- Route to subagent based on stage
- Pass contracts and Required Reading to subagent
- Wait for subagent completion
- Invoke validation-agent with enhanced runtime validation
- Execute checkpoint protocol
See references/dispatcher-pattern.md for full algorithm.
Phase-Aware Dispatch
For Stages 2-3 with complexity ≥3, use phase-aware dispatch to incrementally implement complex plugins.
When to use:
- Stage 2 (DSP) or Stage 3 (GUI)
- Complexity score ≥3 (from plan.md)
- plan.md contains phase markers (### Phase 2.X or ### Phase 3.X)
How it works:
- Detect phases by scanning plan.md for phase markers
- Loop through phases sequentially (Phase 2.1 → 2.2 → 2.3...)
- Invoke subagent once per phase with phase-specific prompt
- Run validation-agent after each phase
- Execute checkpoint protocol after each phase
- Present decision menu showing progress ("Phase 2 of 4 complete")
CRITICAL: Never send
Install plugin-workflow in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
Task # REQUIRED - All stages 1-3 MUST invoke subagentsBash # For git commitsRead # For contractsWrite # For documentationEdit # For state updatesBundled files
FAQ
What does the plugin-workflow skill do?
Orchestrates JUCE plugin implementation through stages 1-3 (Foundation, DSP, GUI) using subagent delegation with automatic validation after each stage. Use when implementing plugins after planning completes, or when resuming with /continue command. Invoked by /implement command.
How do I install the plugin-workflow skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the plugin-workflow skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic