.agent/skills/skill_planning/SKILL.md
# SKILL: ARCHITECTURE & PLANNING **Goal:** Define DSP architecture, complexity assessment, and implementation strategy **Trigger:** `/plan [Name]` **Input:** Reads `plugins/[Name]/.ideas/creative-brief.md` and `parameter-spec.md` **Output Location:** `plugins/[Name]/.ideas/` --- ## 🎯 PHASE 2: PLAN (Architecture & Strategy) **Prerequisites:** - `plugins/[Name]/.ideas/creative-brief.md` exists - `plugins/[Name]/.ideas/parameter-spec.md` exists - Phase 1 (DREAM) complete **Output Files:** - `p
npx skillsauth add noizefield/audio-plugin-coder .agent/skills/skill_planningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Goal: Define DSP architecture, complexity assessment, and implementation strategy
Trigger: /plan [Name]
Input: Reads plugins/[Name]/.ideas/creative-brief.md and parameter-spec.md
Output Location: plugins/[Name]/.ideas/
Prerequisites:
plugins/[Name]/.ideas/creative-brief.md existsplugins/[Name]/.ideas/parameter-spec.md existsOutput Files:
plugins/[Name]/.ideas/architecture.md - DSP component designplugins/[Name]/.ideas/plan.md - Implementation strategy and complexity assessmentRead these files in parallel:
plugins/[Name]/.ideas/creative-brief.md - Plugin concept and behaviorplugins/[Name]/.ideas/parameter-spec.md - Parameter definitions and rangesCreate plugins/[Name]/.ideas/architecture.md with this structure:
# DSP Architecture Specification
## Core Components
List the main DSP building blocks needed:
**Example for a compressor:**
- Input gain stage
- Sidechain detection (RMS/Peak)
- Gain computer (log/linear)
- Lookahead delay buffer
- Output gain stage
**Example for a delay:**
- Input buffer management
- Delay line (circular buffer)
- Feedback processing
- Mix control
- Output processing
## Processing Chain
Define the signal flow:
Input → [Component 1] → [Component 2] → ... → Output
**Example:**
Input → Input Gain → Sidechain → Detector → Gain Computer → Lookahead → Output Gain → Output
## Parameter Mapping
Map each parameter to DSP components:
| Parameter | Component | Function | Range |
|-----------|-----------|----------|-------|
| Threshold | Detector | Sets detection level | -60dB to 0dB |
| Ratio | Gain Computer | Sets compression ratio | 1:1 to 20:1 |
| Attack | Detector | Sets attack time | 0.1ms to 100ms |
## Complexity Assessment
Rate the plugin complexity (1-5):
**Level 1 (Simple):** Basic gain, simple filter, single parameter
**Level 2 (Moderate):** Multi-parameter, basic dynamics, simple modulation
**Level 3 (Advanced):** Multi-band processing, complex algorithms, state management
**Level 4 (Expert):** Synthesis engines, complex feedback, real-time analysis
**Level 5 (Research):** Machine learning, complex modeling, advanced DSP
**Score: [1-5]**
**Rationale: [Explain the complexity factors]**
Create plugins/[Name]/.ideas/plan.md with this structure:
# Implementation Plan
## Complexity Score: [1-5]
## Implementation Strategy
### Single-Pass Implementation (Score ≤2)
Execute all DSP components in one implementation session:
- Core processing logic
- Parameter binding
- Basic optimization
**Example for simple gain plugin:**
- Implement gain calculation
- Connect to parameter
- Add smoothing
### Phased Implementation (Score ≥3)
Break implementation into logical phases:
**Phase 2.1.1: Core Processing**
- [ ] Basic signal path
- [ ] Core DSP algorithm
- [ ] Parameter integration
**Phase 2.1.2: Optimization**
- [ ] Real-time safety
- [ ] Memory management
- [ ] Performance tuning
**Phase 2.1.3: Polish**
- [ ] Edge case handling
- [ ] State management
- [ ] Testing integration
## Dependencies
List required JUCE modules and external dependencies:
**Required JUCE Modules:**
- juce_audio_basics
- juce_audio_processors
- juce_dsp
**Optional Modules:**
- juce_gui_basics (for custom UI)
- juce_audio_formats (for file I/O)
## Risk Assessment
Identify potential implementation challenges:
**High Risk:**
- [List complex algorithms or real-time constraints]
**Medium Risk:**
- [List parameter smoothing or state management issues]
**Low Risk:**
- [List straightforward components]
Based on the architecture complexity and plugin requirements:
Visage Framework (Recommended for):
WebView Framework (Recommended for):
If user has not explicitly chosen a UI framework, ask this question before deciding: "Do you want WebView2 (HTML/JS UI) or Visage (native C++) for this plugin?"
Decision: [visage/webview] Rationale: [Explain the choice based on plugin requirements]
Use the state management system to update project state:
Import state management:
# Import state management module
. "$PSScriptRoot\..\scripts\state-management.ps1"
Validate prerequisites:
# Check that ideation phase is complete
if (-not (Test-PluginState -PluginPath "plugins\[Name]" -RequiredPhase "ideation_complete" -RequiredFiles @(".ideas/creative-brief.md", ".ideas/parameter-spec.md"))) {
Write-Error "Prerequisites not met. Complete ideation phase first."
exit 1
}
Update state with framework selection:
# Use centralized framework selection
Set-PluginFramework -PluginPath "plugins\[Name]" -Framework "[visage/webview]" -Rationale "[Explain framework choice]"
# Update state with planning completion
Complete-Phase -PluginPath "plugins\[Name]" -Phase "plan" -Updates @{
"complexity_score" = [1-5]
"framework_selection.implementation_strategy" = "[single-pass/phased]"
"validation.architecture_defined" = $true
"validation.ui_framework_selected" = $true
}
State schema after planning:
{
"plugin_name": "[Name]",
"version": "v0.0.0",
"current_phase": "plan_complete",
"ui_framework": "[visage/webview]",
"complexity_score": [1-5],
"created_at": "2026-01-04T20:20:00Z",
"last_modified": "2026-01-04T20:20:00Z",
"phase_history": [
{
"phase": "ideation_complete",
"completed_at": "2026-01-04T20:20:00Z",
"framework_selected": null
},
{
"phase": "plan_complete",
"completed_at": "2026-01-04T20:20:00Z",
"framework_selected": "[visage/webview]"
}
],
"validation": {
"creative_brief_exists": true,
"parameter_spec_exists": true,
"architecture_defined": true,
"ui_framework_selected": true,
"design_complete": false,
"code_complete": false,
"tests_passed": false,
"ship_ready": false
},
"framework_selection": {
"decision": "[visage/webview]",
"rationale": "[Framework choice explanation]",
"implementation_strategy": "[single-pass/phased]"
},
"error_recovery": {
"last_backup": null,
"rollback_available": false,
"error_log": []
}
}
Verify all required files exist:
plugins/[Name]/.ideas/architecture.md createdplugins/[Name]/.ideas/plan.md createdplugins/[Name]/status.json updated with framework selectionPresent user with next steps:
✓ Architecture & Planning Complete
Plugin: [Name]
Complexity: [Score]/5
Framework: [visage/webview]
What's next?
1. Start DESIGN phase - Create UI mockups and specifications
2. Review architecture - Examine DSP design and implementation plan
3. Modify plan - Adjust complexity assessment or framework choice
4. Pause here
Choose (1-4): _
skill_design.mdInvoked by:
/plan [Name]Creates:
plugins/[Name]/.ideas/architecture.md - DSP component designplugins/[Name]/.ideas/plan.md - Implementation strategyplugins/[Name]/status.json - Framework selectionNext phase:
Missing creative brief:
Missing parameter spec:
Architecture validation fails:
Framework selection unclear:
development
# SKILL: TROUBLESHOOTING & ISSUE RESOLUTION ## STEP 1: CHECK KNOWN ISSUES FIRST **Before trying random solutions:** ```powershell # Search known issues database $errorPattern = "duplicate target juce" $knownIssues = Get-Content ...kilocode\troubleshooting\known-issues.yaml | ConvertFrom-Yaml $matches = $knownIssues.issues | Where-Object { $_.error_patterns -match $errorPattern } if ($matches) { Write-Host "✓ Known issue found: $($matches.title)" Write-Host "Resolution: $($matches
tools
# SKILL: TESTING **Goal:** Stability Check. ## TASKS 1. **Pluginval:** Run validation script. 2. **Crash Analysis:** If crash reported, read Documents/APC_CRASH_REPORT.txt. 3. **Manual Check:** Ask user to load in DAW and move knobs.
tools
# SKILL: ARCHITECTURE & PLANNING **Goal:** Define DSP architecture, complexity assessment, and implementation strategy **Trigger:** `/plan [Name]` **Input:** Reads `plugins/[Name]/.ideas/creative-brief.md` and `parameter-spec.md` **Output Location:** `plugins/[Name]/.ideas/` --- ## 🎯 PHASE 2: PLAN (Architecture & Strategy) **Prerequisites:** - `plugins/[Name]/.ideas/creative-brief.md` exists - `plugins/[Name]/.ideas/parameter-spec.md` exists - Phase 1 (DREAM) complete **Output Files:** - `p
tools
# SKILL: PACKAGING (Cross-Platform) **Goal:** Create professional, cross-platform plugin installers for Windows, macOS, and Linux **Trigger:** `/ship [Name]` or "Ship [Name]" **Prerequisites:** Phase 4 (CODE) complete, audio engine working, all tests passed **Output Location:** `dist/[Name]_v[version]/` --- ## Overview This skill handles the complete packaging and distribution process for APC plugins. It supports: - **Local builds** (current platform only) - **GitHub Actions builds** (cross