apc-setup
Skill334 starsChanged 34 days agoMITView on GitHub
Guided first-run APC setup — toolchain, paths, models, JUCE verification. Trigger with /apc-setup or natural language "set up APC".
- Installs packages
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/no-ai-attribution.mdcCursor rule
- audio-plugin-coderSkill
- debugSkill
- designSkill
- dreamSkill
- implSkill
- orchestrateSkill
- planSkill
- shipSkill
- skill-debugSkill
- skill-designSkill
- juce-webview-windowsSkill
- skill-ideationSkill
- skill-implementationSkill
- skill-packagingSkill
- skill-planningSkill
- skill-testingSkill
- skill-troubleshootingSkill
- testSkill
- apc-setupSkill
- skill_debugSkill
- skill_designSkill
- dreamSkill
- implSkill
- orchestrateSkill
- planSkill
- shipSkill
- juce-webview-windowsSkill
- skill_testingSkill
- skill_troubleshootingSkill
- testSkill
- audio-plugin-coderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 3 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If apc.config.json exists and setup.completed is true, ask the user to choose:
- Distinctive: line 30
Never silently overwrite custom paths.
- Distinctive: line 75
Ask (defaults recommended for first-time users):
- Very specific: line 77
Keep plugins/, build/, release/ inside the repo?
- Very specific: line 78
If custom plugins path: absolute or relative to the repo root (e.g.
- Very specific: line 86
Ask preferred default for new plugins: webview (recommended) or visage.
- Very specific: line 98
Ask the user for concrete model IDs they can use in their agent (do not invent vendor-specific IDs they did not confirm).
- Very specific: line 104
Ask whether the user wants Codex CLI cost-aware orchestration (Luna → Terra → Sol → Astra).
- Very specific: line 109
Prefer ChatGPT sign-in (codex login), not an API key, when staying on Plus/plan allowance.
- Very specific: line 110
When writing config, pass --enable-codex / -EnableCodexOrchestration so models.codex.enabled = true.
- Very specific: line 112
Ask optionally: enable build/test escalation (--enable-codex-escalation / -EnableCodexEscalation)?
- Very specific: line 116
If No: leave models.codex.enabled = false (block still present from the example for later opt-in).
- Very specific: line 120
Write apc.config.json (from answers.
- Distinctive: line 141
Stop. Do not run dream.
- Very specific: line 145
If another APC phase runs while setup.completed is false, warn once and offer /apc-setup, but do not hard-block power users who already …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
APC Setup (/apc-setup)
Trigger: /apc-setup · /setup (deprecated alias) · "set up Audio Plugin Coder"
Model preference: economy / cheap (routing only). Read apc.config.json → models.phases.setup if present.
Goal
Walk the user through a complete, cross-platform first-run configuration and write apc.config.json. Do not start a plugin phase.
Preconditions
- Workspace is an APC checkout (
CMakeLists.txt,scripts/,apc.config.example.json). - Detect OS: Windows → PowerShell; macOS/Linux → Bash.
Idempotency
If apc.config.json exists and setup.completed is true, ask the user to choose:
- Re-check only — run system-check, report results
- Change paths — update
paths.*only - Change models — update
models.*only (including optional Codex orchestration toggle) - Full wizard — redo all steps (confirm before overwriting paths)
Never silently overwrite custom paths.
Wizard steps
1. Welcome
Explain APC briefly and that this configures the framework (not a plugin).
2. Prerequisites
Run system-check:
- Windows:
.\scripts\system-check.ps1 -Human - macOS/Linux:
bash scripts/system-check.sh --human
For each failing check, give install guidance:
| Check | Windows | macOS | Linux |
| Git | https://git-scm.com | Xcode CLT / brew | distro package |
| CMake ≥ 3.22 | https://cmake.org | brew install cmake | distro package |
| Node ≥ 18 | https://nodejs.org | brew install node | distro / nvm |
| Python ≥ 3.8 | python.org (not Store stub) | system / brew | distro |
| VS C++ | VS 2022 Build Tools | — | — |
| Xcode CLT | — | xcode-select --install | — |
| g++/clang | — | — | build-essential |
| WebView2 | Evergreen Runtime | WKWebView (system) | WebKitGTK + libegl-dev |
| JUCE ≥ 9 | submodule | submodule | submodule |
Re-run checks until critical tools pass (or user explicitly continues with warnings).
3. Submodules / tools
git submodule update --init --recursivegit submodule update --init --recursiveConfirm _tools/JUCE major ≥ 9 via system-check. Ask whether Visage UI support is desired (defaults.enable_visage).
4. Path layout
Ask (defaults recommended for first-time users):
- Keep
plugins/,build/,release/inside the repo? Yes (recommended) / customize - If custom plugins path: absolute or relative to the repo root (e.g.
../apc_plugins); create directory if missing. Scripts and APC workflows resolve viaGet-ApcPluginPath/apc_plugin_path— a junction/symlink at./pluginsis optional (legacy convenience only). - Custom build path (e.g.
../apc_builds): warn against OneDrive/Dropbox/iCloud - Custom release path for installers/zips (e.g.
../apc_releases; defaultrelease/)
Relative paths are resolved from the APC repo root. Absolute paths are also supported.
5. UI framework default
Ask preferred default for new plugins: webview (recommended) or visage. Store in defaults.ui_framework_preference.
6. AI model routing (global)
Offer presets, then allow per-phase overrides:
| Profile | plan | design | impl | ship |
| Quality | strongest | strong | strong | economy |
| Balanced (default) | strongest | strong | strong | economy |
| Budget | mid | mid | mid | economy |
Ask the user for concrete model IDs they can use in their agent (do not invent vendor-specific IDs they did not confirm). Store under models.phases.*.
Remind: many hosts cannot auto-switch models; APC will announce the preferred model at phase start.
6b. Codex cost-aware CLI routing (optional)
Ask whether the user wants Codex CLI cost-aware orchestration (Luna → Terra → Sol → Astra). This is off by default and only relevant if they use Codex CLI / ChatGPT-authenticated codex exec. Cursor, Claude Code, and Kilo users can skip.
If Yes:
- Confirm Codex CLI is installed (
codexon PATH). If missing, point to OpenAI Codex install docs and continue with a warning. - Prefer ChatGPT sign-in (
codex login), not an API key, when staying on Plus/plan allowance. - When writing config, pass
--enable-codex/-EnableCodexOrchestrationsomodels.codex.enabled = true.- The
models.codexblock is already inapc.config.example.jsonand is merged automatically — users do not hand-copy JSON.
- The
- Ask optionally: enable build/test escalation (
--enable-codex-escalation/-EnableCodexEscalation)? - Install named profiles into the user Codex home (automatic when orchestration is enabled, or via
scripts/codex/install-profiles.ps1/.sh). - Point to
docs/codex-orchestration.mdfor the runner (scripts/codex/apc-codex-run).
If No: leave models.codex.enabled = false (block still present from the example for later opt-in).
7. Verify
- Write
apc.config.json(from answers; start from / merge withapc.config.example.json) - Re-run system-check
- Optional smoke: configure CMake only into the configured build dir with
-DAPC_PLUGINS_DIR=... - Set
setup.completed = true,setup.completed_at,setup.platform
Helper scripts (prefer these over hand-writing JSON when possible):
- Windows:
.\scripts\apc-write-config.ps1(supports-EnableCodexOrchestration,-EnableCodexEscalation,-InstallCodexProfiles) - macOS/Linux:
bash scripts/apc-write-config.sh(supports--enable-codex,--enable-codex-escalation,--install-codex-profiles) - Or edit JSON carefully with the path helpers in
scripts/lib/Get-ApcPaths.ps1
8. Summary
Print:
- Resolved plugins / build / release paths
- JUCE major
- Model profile
- Codex orchestration on/off (and whether profiles were installed)
- Next command:
/apc-dream <PluginName>
Stop. Do not run dream.
Soft gate for other phases
If another APC phase runs while setup.completed is false, warn once and offer /apc-setup, but do not hard-block power users who already have a working toolchain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

