new-extension
Skill42 starsChanged 5 days agoMITView on GitHub
Builds or updates a reaper-mcp extension for one plugin or workflow, end to end: checks it is feasible, picks the right kind (VST3 state editor, preset-file builder, or bridge workflow), finds how the plugin stores its state, writes tools with behaviour tests, proves them live on a scratch track (including that the sound changes), documents them and teaches the mixing skills about it. Use when the user wants Claude to control a plugin's internals that host parameters cannot reach (wavetables, mod matrix, patch graphs, preset files), asks to "make an extension for X", "add support for X", "build a plugin for reaper-mcp", or to change, extend or fix an existing extension ("update the vital extension", "add macros to vital"). Triggers on "/new-extension".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- podman-desktop/podman-desktoptheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- podman-desktop/podman-desktop★ 8.2ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- knowledge/CLAUDE.mdCLAUDE.md
- reaper/CLAUDE.mdCLAUDE.md
- changelog-highlightSkill
- critiqueSkill
- editingSkill
- learn-pluginSkill
- make-pluginSkill
- masteringSkill
- mixerSkill
- mix-memorySkill
- teachSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 9 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- Distinctive: line 62
Scratch track only: Never add the plugin to the user's tracks, never change their tracks, FX, selection or transport, and never start …
- Very specific: line 70
Extensions never import core: Only @reaper-mcp/extension-api (eslint enforces it).
- Distinctive: line 74
Fixtures are small and impersonal: No personal presets, no license keys, no file paths from the user's machine.
- Very specific: line 85
Read docs/EXTENSIONS.md. Then read the LoreKit lessons for extensions (capped at 5: memory.list in project::reaper-mcp with tag …
- Distinctive: line 96
What for: Read, edit, build, or all three.
- Very specific: line 100
Can the host parameters do it?: If get_fx_parameters already exposes everything needed, stop: /learn-plugin is the right tool.
- Distinctive: line 128
Keep the URLs. Do not present guesses as facts.
- Very specific: line 140
Add the plugin to the scratch track (add_fx, exact FX name from search_fx).
- Very specific: line 141
Check get_fx_parameters: a plugin showing only 3 parameters is not loaded (offline), toggle it online first.
- Very specific: line 143
State editor: write a throwaway probe tool that uses api.fxState.get and returns, as JSON: state length, the 44-byte header's two length …
- Distinctive: line 147
File-format builder: if the probe shows an encrypted or opaque blob, record that (it is the reason for this kind) and work from the preset …
- Distinctive: line 164
Write down the layout: where the editable document starts and ends, which length fields wrap it (and what they count), and anything after …
- Distinctive: line 184
Keep the user's selection, transport and track list as they were.
- Very specific: line 209
Run pnpm nx run-many --target=test,lint,typecheck,build --projects=<name> until green.
- Very specific: line 217
Prove it sounds different: Add a MIDI item with a note or chord on the scratch track (create_midi_item, insert_midi_notes), then …
- Distinctive: line 224
Call a tool with a deliberately bad input: the refusal must be readable and change nothing.
- Very specific: line 226
If anything fails, keep the failing state's bytes (api.fxState.get) as a new fixture and fix it with a test first.
- Distinctive: line 239
Docs: All four, in the same change:
- Very specific: line 251
Plugin record: Write or update the plugin's user::plugins::<vendor>/<plugin> record in LoreKit (project::reaper-mcp) following …
- Very specific: line 285
Docs: Update the extension's section in docs/EXTENSIONS.md (move the item out of its "Not yet" list), the root README row if what Claude …
- Very specific: line 306
After loading an edited state, a plugin can save itself with a few extra trailing bytes while REAPER keeps the lengths it was given.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
/new-extension
This skill builds or updates an opt-in extension (docs/EXTENSIONS.md) for one plugin
or workflow: tools that reach what set_fx_parameter cannot, such as a synth's
wavetables, mod matrix and LFO shapes, or a guitar rig's preset files. Read
docs/EXTENSIONS.md first; it holds the manifest, the API, the three kinds of
extension and the trust model. Two worked examples ship in the repo, copy their shape,
not their details:
extensions/vital/: a state editor (VST3 saved state,api.fxState).extensions/helix/: a file-format builder (the plugin's state is encrypted, so it edits the documented preset file and imports it with a checked driver).
It works the way /learn-plugin does: do the research and the probing yourself, ask
the user only what you cannot find out, and prove the result on a scratch track
before calling it done. /learn-plugin teaches the mixing skills about a plugin;
this skill teaches reaper-mcp to edit one. They meet at the end (Step 8).
Trigger
The user types /new-extension [plugin or workflow], /new-extension update <extension>: <change>,
or asks for control of a plugin's internals that the existing tools cannot give.
Mode. ls extensions/ and reaper-mcp extension list. If the argument names an
existing extension, or the work is "add X to / fix Y in" one, you are in update mode
(see Updating an extension); otherwise new mode: run Steps
1-9.
Rules that hold the whole way
- Scratch track only. Never add the plugin to the user's tracks, never change their
tracks, FX, selection or transport, and never start playback of their material. The
user edits the session live, so track indices shift: look a track up by name before
each write batch. Name it
[MCP] extension-research <TAG>, add it at the end of the track list and delete it when you are done, even when a step failed. - Never write a user's file in place. Anything that touches a preset or library file
writes a copy, or backs up first (
.bak) and verifies afterwards. Do not run an import or write against the user's real library slots; use a scratch slot. - Extensions never import core. Only
@reaper-mcp/extension-api(eslint enforces it). - Test behaviour, never implementation (
CLAUDE.md): drive the tools through a fakeExtensionApiand real state fixtures; assert what the agent gets and what state REAPER ends up with. Mock only REAPER. - Fixtures are small and impersonal. No personal presets, no license keys, no file paths from the user's machine.
- Do not commit unless the user asks. The tree may hold other sessions' edits: stage explicit paths (or hunks) of your own files only.
- Do not guess a format and write it. A wrong write can make a plugin silently ignore the change or load garbage. Stay on read-only probes until the parse is exact.
Instructions
Step 0: Load what earlier runs learned
Read docs/EXTENSIONS.md. Then read the LoreKit lessons for extensions (capped at 5:
memory.list in project::reaper-mcp with tag loop::extension-lessons, plus one
memory.search on the plugin's name) and the plugin's own record (user::plugins::…, or
get_builtin_knowledge). Treat them as considerations, not rules; verify against what
you see. If LoreKit is not connected, continue without it and say so in the report.
Step 1: Scope it, pick the kind, check it is worth building
From the arguments (or one question: "Which plugin or workflow, and what should Claude be able to change in it?"), settle:
- What for. Read, edit, build, or all three. Smallest useful set wins: an extension that reads and edits the thing people actually tweak beats one that models all of it.
- Does it already exist?
reaper-mcp extension list,ls extensions/, andlist_tool_categories. If one covers it, switch to update mode. - Can the host parameters do it? If
get_fx_parametersalready exposes everything needed, stop:/learn-pluginis the right tool. An extension earns its place only for state that lives outside the parameters. Pick the kind (the table in
docs/EXTENSIONS.md).search_fxfor the plugin first.Kind Choose it when Core of the work State editor A VST3 build is installed and its saved state holds a recoverable format api.fxState+state.tsparse/build (Steps 3-6 as written)File-format builder The state is closed or encrypted (probe shows no readable document) but the plugin imports a documented preset file Parse/build/validate the file in Node; a checked import ( extensions/helix/src/import.ts)Bridge composer No plugin internals needed, only a new multi-step REAPER workflow api.bridgecalls,handlers.luaonly if a ReaScript call is missing from coreapi.fxStatesupports VST3 only (VST2, AU, CLAP and FX inside containers are refused). If only other formats are installed, say so and offer the file-format or bridge route, or/learn-plugin.- Name it. Lowercase, digits, dashes, 2-32 characters. It prefixes every tool
(
<name>_<tool>).
Step 2: Research how the plugin stores its state
WebSearch / WebFetch, in this order: the vendor's docs on the preset file format,
open-source parsers or format write-ups, then forum threads. You are looking for:
- the preset format (JSON, XML, a binary chunk), its version field, and which parts are safe to edit
- how the VST3 state wraps it (a JUCE bank, a raw preset, a custom blob)
- limits that make an edit invalid (counts, ranges, name rules)
- the license, if you will port any parser logic (credit it, or write your own)
Keep the URLs. Do not present guesses as facts. If the format is closed and undocumented, say so now: you will have to work it out from probes in Step 3, and should tell the user it may not be feasible.
Step 3: Scaffold, then probe the real state
reaper-mcp extension new <name> --dir extensions. It scaffolds plain JavaScript (index.mjs, a manifest). In this repo make it a TypeScript project likeextensions/vital/: copy itsproject.json(tagtype:extension, esbuild todist/index.mjs),tsconfig.json,package.jsonandvitest.config.ts, setmaintodist/index.mjs, delete the scaffold'sindex.mjs, and runpnpm installonce so the new package is linked (theextensions/*workspace glob covers it).- Add the plugin to the scratch track (
add_fx, exact FX name fromsearch_fx). Checkget_fx_parameters: a plugin showing only 3 parameters is not loaded (offline), toggle it online first. - State editor: write a throwaway probe tool that uses
api.fxState.getand returns, as JSON: state length, the 44-byte header's two length fields, the first and last 64 bytes (hex and ASCII), every printable-string run over 8 characters, and whether a JSON or XML document starts inside it and where it ends. File-format builder: if the probe shows an encrypted or opaque blob, record that (it is the reason for this kind) and work from the preset files instead: collect two or three real files from the user's library or the vendor's factory content, read them, and write the layout down. Build it (
pnpm nx build <name>), link it (reaper-mcp extension add <name>, a symlink to this clone'sextensions/<name>), and run it with the harness. A running Claude Code session only sees new tools after a restart, so use:node scripts/ext-call.mjs <name>_probe '{"trackIndex": N}'(Needs
pnpm nx build reaper-mcp-serverand a running bridge.)- Learn the encoding by changing one thing and diffing: set one parameter with
set_fx_parameter, run the probe again, compare the bytes. Then change one thing the host cannot reach (load a preset, switch a wavetable) and diff again. Save two or three real states as test fixtures. - Write down the layout: where the editable document starts and ends, which length fields wrap it (and what they count), and anything after it that must be preserved.
Stay on probes until the parse is exact on every fixture. Delete the probe tool before Step 7.
Step 4: Design the tools
Propose the tool list to the user in one short message (name, one line each, what is read and what is written) and fold in their answer. Defaults that have worked:
read_*: a summary first (structure, names, counts), raw values only on request (settingsMatching-style filter, pagination). Never return the whole state.write_*: validate everything first and write nothing on one bad edit;dryRun: truereturns what would change with before → after; one undo point; say how to undo (undo_project).- One domain tool for the thing people want to build (Vital:
set_wavetable), not a generic "set any byte". z.coerce.number()for numbers, descriptions that tell an agent when to use the tool and what the units are. Locate the plugin automatically when exactly one is on the track.- Keep the user's selection, transport and track list as they were.
Step 5: Implement, with behaviour tests first
Split the extension like extensions/vital/src/:
state.ts(orhlx.ts-style for a file format):parseandbuild, pure and byte-exact.buildmust keep every byte it does not edit, fix every inner length field the edit changes, and (state editor) leave the VST3 wrapper's two outer lengths toapi.fxState.set.patch.ts(or similar): the edits as pure functions over the parsed document, each returning an error list instead of throwing.index.ts: tool registration and the read → mutate → write helper.__fixtures__/fake-api.ts: a fakeExtensionApi(copy Vital's).
Tests (*.test.ts), each named after a behaviour:
- round trip:
build(parse(x), {})returnsxbyte for byte, on every real fixture - an edit changes exactly what was asked and nothing else
- a bad edit is refused and
setis never called - a wrong FX on the track gives a clear message, not a write
- a state the plugin changed after load (extra trailing bytes) still edits correctly
- file builders: an invalid file is refused before anything is written; an overwrite keeps
a
.bak
Run pnpm nx run-many --target=test,lint,typecheck,build --projects=<name> until green.
Step 6: Prove it live
On the scratch track, with the harness (a fresh process, so no restart):
read_*and compare with what you know about the loaded patch.write_*withdryRun: true, then for real. Read it back: the change must be there.- Prove it sounds different. Add a MIDI item with a note or chord on the scratch
track (
create_midi_item,insert_midi_notes), thenanalyze_track_offlinebefore and after the edit. Spectral centroid, band balance or loudness must move the way the edit should move them. A read-back that matches does not prove the plugin loaded it. - Edit twice in a row (the state the plugin saves after loading your first write can differ from the one you wrote; the second write is where a stale length shows up).
undo_projectonce and read back: the edit is gone.- Call a tool with a deliberately bad input: the refusal must be readable and change nothing.
If anything fails, keep the failing state's bytes (api.fxState.get) as a new fixture and
fix it with a test first. If it cannot be made reliable, say so in the report and do not
ship a tool that only sometimes works.
Step 7: Gates
reaper-mcp doctor must list the extension as ok (manifest valid, main built, lua
present). Then everything: pnpm nx run-many --target=build,lint,typecheck,test, run with
REAPER_RESOURCE_PATH pointed at a temp folder so live-REAPER suites don't touch the
user's bridge. Delete the scratch track.
Step 8: Teach the rest of the system
Docs. All four, in the same change:
docs/EXTENSIONS.md: a section for the extension (what it does, a tool table, what is not covered, env vars) next to Vital and Helix, plus a row in the table at the top.- Root
README.md: a row in the "Extensions" table (## 🧩 Extensions) with the emoji, name, and what Claude can do with it in plain words for a non-coder, and the plugin in the FAQ answer if it names them. Plain words, no jargon. docs/assets/extensions.svg: if it is a headline extension, add or swap a card so the picture stays true (keep the file valid:xmllint --noout).CLAUDE.md(the structure block) anddocs/REFERENCE.md(Project Structure).
Rebuild with
--skip-nx-cacheafter editing knowledge or.claudefiles (Nx ignores asset-dir changes).- Plugin record. Write or update the plugin's
user::plugins::<vendor>/<plugin>record in LoreKit (project::reaper-mcp) followingknowledge/reference/memory-protocol.md: copy the built-in record's tags, addextension::<name>, and put the workflow, the raw-name vs host-name difference, what must be enabled before it sounds, and what you verified live in## Learned notes. A write replaces the record: read, merge, write. - Lessons. Save each non-obvious gotcha you hit as a LoreKit lesson in
project::reaper-mcp, tagloop::extension-lessons, phrased as an observation with what you saw. Do not save anything that is already in this file or in the code.
Step 9: Report
One short message: what the extension does and its tools, what you verified live (with
the numbers from Step 6), what is not covered or not verified, and the install line
(reaper-mcp extension add <name>, then restart the MCP server). Offer to commit and
open a PR; do not do either unprompted.
Updating an extension
For "add X to", "fix Y in" or "support Z in" an existing extension. Same rules, shorter loop:
- Read it first. Its manifest,
READMEsection indocs/EXTENSIONS.md, tool list, tests and fixtures; thengit log --oneline -- extensions/<name>for how it grew. Read the Step 0 lessons. - Reproduce or probe. A bug: capture the failing state (
api.fxState.geton a scratch track) as a fixture and write the failing test first. A new capability: probe the one thing it needs (Step 3, steps 2-6) on the scratch track, diffing as before. - Keep tools compatible. Existing tool names and parameters keep working; add
optional parameters rather than renaming. A breaking change needs the user's yes and a
versionmajor bump. - Behaviour tests, then code, then Steps 6 and 7 for the changed tools (live proof of the new behaviour and one regression check on an old tool).
- Bump
versionin the manifest (patch for fixes, minor for new tools or parameters;apiVersiononly changes whenlibs/extension-apidoes). - Docs. Update the extension's section in
docs/EXTENSIONS.md(move the item out of its "Not yet" list), the root README row if what Claude can do changed, and the plugin's LoreKit record. Lessons only for new gotchas. - Report as in Step 9, adding what changed for existing users (usually: rebuild, restart).
Definition of done
- Parse round-trips every fixture byte for byte (or the file builder validates every fixture)
- Tools validate before writing;
dryRunon every write; one undo point - Live proof on a scratch track: read, write, read back, audible change, two writes, undo
reaper-mcp doctorshows the extension ok; build, lint, typecheck, test greendocs/EXTENSIONS.md, rootREADME.md,CLAUDE.md,docs/REFERENCE.mdupdated- LoreKit plugin record and lessons written (or the report says why not)
- Scratch track deleted; the user's tracks, selection and transport untouched
- Nothing committed unless asked
Known gotchas (seed lessons, from building vital and helix)
- REAPER ignores changed VST3 state unless the FX gets a new
FXID, and it checks two outer length fields (header bytes 32..35 = state length; state bytes 0..3 = state length minus 16).api.fxState.sethandles both; never write the chunk by hand. - After loading an edited state, a plugin can save itself with a few extra trailing
bytes while REAPER keeps the lengths it was given. Parse tolerantly, and keep trailing
bytes on
build. - A plugin whose host exposes only 3 parameters is offline (not loaded). Toggle it
online (
set_fx_offline) before probing or writing, and refuse to write while offline. - Some plugins (Helix Native) keep an encrypted state blob: do not try to edit it. Use the plugin's preset file and verify the result on disk, rolling back if more than the intended slot changed.
- The bridge's JSON decode is flat (SWS has no
CF_Json_Parse): extension params travel as a JSON string (paramsJson, decoded for you before your Lua handler runs), and large state travels as files in the bridge folder, never inside a command. mcp_bridge.luais near Lua's 200-locals limit. New Lua goes in a lib file or on theexttable, not as new top-level locals.- A write reloads the plugin, so held notes cut off. Do not write mid-playback.
register(api)must finish within 10 s: register tools, do slow work inside handlers.- Extension tools are not in the Claude Code allow-list, so each new one asks for permission the first time.
- A running Claude Code session only sees a new or changed extension after a restart. Use
node scripts/ext-call.mjsto test in the meantime.
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.

