Skip to Content
Soundor Skills

soundor-create-plugin

Creates a working Soundor audio plugin from an empty directory.

pnpm dlx skills add soundor/skills --skill soundor-create-plugin

SKILL.md on GitHub

When an agent uses it

Creates a working Soundor audio plugin from an empty directory. Scopes the plugin, scaffolds it with create-soundor-app, writes the Rust audio processing and the React UI, then tests it, looks at it, and builds the VST3 and web versions. Use when the user asks to create, start, scaffold or prototype a new audio plugin, effect, instrument or meter with Soundor, or to turn a plugin idea into a working project.

Instructions

Take a plugin from an idea to a project that builds, passes its tests, and has been seen working. A plugin that only compiles is not done.

A Soundor plugin is one project: soundor.config.ts declares what it is (identity, parameters, audio buses, the native API, runtimes), lib/ is the Rust crate that processes audio, and src/ is the React UI. The same project builds a VST3 plugin and a web build that runs in a browser.

1. Pin down the plugin before writing code

Agree on a short brief with the user, or write down the assumptions you make. Use the plugin brief for the questions and an example. Settle at least:

  • Kind: effect (the default) or instrument. Current runtimes refuse midiEffect.
  • Audio: mono, stereo or both; sidechain or extra outputs (VST3 only).
  • MIDI: input, output, or neither.
  • Parameters: for each, a stable camelCase id, type, range, default, unit and mapping (log for frequencies). Ids are permanent once released.
  • Displays: meters or spectra the UI shows, which become native streams.
  • Runtimes: VST3, web, or both. VST3 builds only for the machine it is built on (Linux x86_64, macOS, Windows x64).

2. Check the machine

Soundor needs Node.js (^22.18.0 || >=24.11.0 for Soundor 0.21), npm or pnpm, and Rust stable with Cargo. The web runtime also needs rustup target add wasm32-unknown-unknown; VST3 needs the platform's linker (a C++ compiler driver on Linux, Xcode Command Line Tools on macOS, Visual Studio Build Tools on Windows). Check with node --version, cargo --version and rustup target list --installed. Do not install toolchains without the user's agreement. After scaffolding, npm run doctor checks everything.

3. Scaffold with create-soundor-app

Never assemble a Soundor project by hand: the scaffolder resolves a tested set of package versions, writes a lockfile, installs, and runs soundor gen.

npm create soundor-app@latest my-plugin

Use npm unless the user asks for pnpm (pnpm create soundor-app@latest) or the surrounding project already uses it; Yarn and bun are not supported. The target directory must not exist. Never run it as . in a directory with the user's files: it clears the directory.

The scaffolder always asks which runtimes to build (VST3 is preselected; Space toggles, Enter confirms) and has no flags to skip the question. If your terminal cannot answer prompts, ask the user to run the command, or answer through a pseudo-terminal as scaffolding describes. It ends by printing the next steps.

4. Read what was generated, and which versions

cd my-plugin
npm ls --depth=0

Learn the project from the project map: soundor.config.ts, src/App.tsx, lib/src/processor.rs, lib/src/controller.rs, lib/tests/. Everything under .soundor/ is generated: never edit it.

Soundor is pre-1.0 and its API changes between minor releases, so take APIs from the installed version, in this order:

  1. Skills bundled in installed packages: find node_modules/soundor node_modules/@soundor -name SKILL.md -not -path '*/node_modules/*/node_modules/*'. No Soundor package ships one yet; use them when they appear.
  2. The generated contract: .soundor/generated/*.d.ts and the Rust SDK in .soundor/generated/rust/soundor/src/ (after npm run gen).
  3. Package declarations: node_modules/@soundor/*/dist/*.d.ts.
  4. The documentation for that version: https://soundor.dev/docs, with an index for agents at https://soundor.dev/llms.txt and a Markdown copy of each page at its URL plus .md.

Do not use an API you have not found in one of these.

5. Declare the contract

Edit soundor.config.ts: give plugin.id a reverse-DNS id the user owns (com.example.gain is only a placeholder; it must never change after a release), set plugin.name, kind, categories, the audio layouts, midi, the parameters, native.streams for meters, and editor size. Then run npm run gen, which validates the config and regenerates the TypeScript and Rust types. Restart npm run dev after any config change.

For decisions about parameters versus state, streams versus resources, automation, presets and latency, use the soundor-plugin-architecture skill if it is installed.

6. Write the audio processing

Implement lib/src/processor.rs. Parameters arrive typed in ctx.params once per block; declaring a parameter does nothing to the audio until the processor uses it.

  • Allocate and prepare everything in prepare(); process() must not allocate, free, lock, block, log or do I/O.
  • Smooth parameters that change gain or filters; the generated gain processor shows a per-block ramp.
  • Handle any block size (including zero frames), every declared layout, and every sample rate.

The soundor-dsp skill covers real-time safety, smoothing, FunDSP and RustFFT, and numerical tests in depth; use it for any non-trivial DSP.

7. Build the UI

Implement src/App.tsx with @soundor/react primitives. For knobs, sliders, meters, plots and menus, prefer Soundor Components, and Soundor Icons for icons, over drawing your own:

npm install @soundor/components @soundor/icons

Check that their peerDependencies (npm view @soundor/components peerDependencies) accept the installed @soundor/react first. Bind controls to parameters so host automation, gestures and undo work. The soundor-plugin-design skill covers layout, controls and accessibility.

8. Test

  • npm run test:rust runs the crate's tests, including the generated allocation test. Add numerical tests of the DSP: gain, frequency response, silence, extreme values, several sample rates and block sizes.
  • npm run typecheck.
  • UI tests need Vitest and Soundor's test packages, which the scaffold does not install; the soundor-testing skill says which to add and how.

9. Run it and look at it

A human runs npm run dev (VST3, opens the plugin in Soundor's VST3 host; needs a desktop) or npm run dev:web (prints a local URL). Without a desktop, look at the real rendering instead:

  • VST3: npx soundor build vst3 --debug, then launch it with @soundor/driver/vst3 and save a screenshot (on Linux without a display, under xvfb-run -a). Look at it has a script.
  • Web: npm run build:web, serve .soundor/dist/web/, and screenshot the page with Playwright.

Open every screenshot and check it: labels readable, nothing clipped, the controls the brief asked for present. The soundor-debug-plugin skill covers deeper inspection.

10. Build what the user installs

npm run build

build builds every configured runtime: the release VST3 in .soundor/dist/vst3/<Name>.vst3 (for this machine's platform only) and the static web build in .soundor/dist/web/. Debug builds (.soundor/debug/) carry DevTools and are never shipped. Install and share tells the user where the bundle goes and how to serve the web build.

Done means

  • npm run doctor reports no failures.
  • npm run typecheck and npm run test:rust pass, with tests that check the DSP's output numerically, not only that it runs.
  • Every parameter in the brief exists, is used by the processor, and is reachable from the UI.
  • You have seen a screenshot of the plugin's UI and checked it.
  • npm run build succeeds for every configured runtime.
  • The user knows where the build is, how to install it, what was verified, and what was not (for example, no DAW was tried).

References

The skill reads these when a task needs them:

On this page