make-plugin
Skill42 starsChanged 5 days agoMITView on GitHub
Makes the user a REAPER plugin for a specific need, end to end: reduces the request to the smallest plugin that does it, writes it as a self-contained JSFX with the shared UI toolkit (a small core view, advanced controls behind a section), loads it on a scratch track, proves by measurement that it does what was asked, and iterates. The result is just a plugin: it works without the bridge, the MCP server or a browser. Use when the user asks to "make/create/ build a plugin that...", wants an effect that does not exist ("randomly mutate my samples and add reverb", "a trance gate", "keep my bass mono"), or to change a plugin made earlier. Triggers on "/make-plugin".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kafnosake/Ensoultheir own version, first seen Oct 8, 2026
- barnburner121/claude-plugin-marketplacetheir own version, first seen Mar 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- barnburner121/claude-plugin-marketplace★ 3same name
- kafnosake/Ensoul★ 1same 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
- masteringSkill
- mixerSkill
- mix-memorySkill
- new-extensionSkill
- teachSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 1 is distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Scratch track only: Never add the plugin to the user's tracks, and never change their tracks, FX, selection or transport.
- Very specific: line 46
No playback of the user's material: Test with an item on the scratch track, rendered offline (analyze_track_offline, verify_edit).
- Very specific: line 59
If the bridge is down, do not skip Step 5 and do not report the plugin as finished: check whether REAPER is running, start it if it is not …
- Very specific: line 68
Read the LoreKit lessons (memory.list in project::reaper-mcp, tag loop::make-plugin-lessons, at most 5).
- Very specific: line 95
Read reference/toolkit.md (the UI API) and reference/dsp-perf.md.
- Distinctive: line 134
Prefer visible buttons for a small set of choices (the sequencer's length buttons) over a hidden drag.
- Very specific: line 135
Do not write the toolkit: write_jsfx inlines it.
- Very specific: line 136
Never assign ui_adv_open (or any ui_ state) in plugin code: REAPER re-runs @init when playback starts, so the Advanced drawer would snap …
- Very specific: line 140
Never set the accent (ui_cAccent, ui_theme) or read keys/mouse yourself: the toolkit owns gestures (double-click types a value, …
- Very specific: line 145
Call write_jsfx with name, source, a one-line request (a comment in the file, never sent anywhere or shown) and presets (the 3-5 from the …
- Very specific: line 157
Do not touch the source for a colour.
- Very specific: line 162
Add the scratch track (add_track, name [MCP] make-plugin <slug>) and an item with a test signal on it.
- Very specific: line 168
A loaded plugin does not recompile when its file changes: After every write_jsfx: remove_fx, then add_fx again.
- Very specific: line 201
Delete the scratch track by exact name and confirm it is gone (list_tracks with nameContains).
- Very specific: line 206
Call report_plugin_build (outcome, rounds, checks passed/failed, the example you started from, scratchTag = the slug in your track name), …
≈ “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
/make-plugin
Makes a plugin the user can keep: one .jsfx file in Effects/reaper-mcp-generated/ that
REAPER loads like any other plugin. Everything it needs is inside the file, so it keeps working
on a machine with no reaper-mcp. This skill, write_jsfx and the bridge are only how it gets
made.
Three principles, in this order of authority when they conflict:
- Simple. The smallest plugin that satisfies the request. Every control and every line of DSP has to earn its place. A plugin that does one thing well beats one that does five.
- Fast. It runs in the audio thread. No work per sample that can be done per block or per
change; nothing allocated while running; the UI redraws only when something changed.
reference/dsp-perf.mdis the checklist. - Advanced controls by progressive disclosure. The core view holds what is changed in most uses (3-5 controls, a level meter counts as one) and fills the window. Everything else sits in an Advanced drawer that slides up over the core view (the core never moves or shrinks). The lint enforces the counts.
Rules that hold the whole way
- Scratch track only. Never add the plugin to the user's tracks, and never change their
tracks, FX, selection or transport. Name it
[MCP] make-plugin <slug>, add it at the end, and delete it by exact name when you are done, even when a step failed. Track indices shift while the user works: look the track up by name before every write. - No playback of the user's material. Test with an item on the scratch track, rendered
offline (
analyze_track_offline,verify_edit); do not start the transport. - Ask at most one question, and only when the request cannot be reduced to a plugin without it. Otherwise decide, say what you decided, and build.
- The plugin has no dependencies: no
gmem, no bridge calls, no telemetry. The lint refusesgmem. - Never renumber a slider that has shipped. Saved automation points at slider numbers.
New controls go at the end.
write_jsfxrefuses a changed range or a removed slider unlessbreaking: true. - Do not commit anything unless the user asks.
- Verification is an acceptance criterion, not a courtesy. A plugin is not done until
Step 5 has run against the real plugin in REAPER and every check has a number. Lint-clean
and "it loads" prove nothing (a compile error only shows as a plugin that does nothing).
If the bridge is down, do not skip Step 5 and do not report the plugin as finished: check
whether REAPER is running, start it if it is not (a blank scratch project, never the
user's), ask the user to start
mcp_bridge.luaif the bridge still does not answer, and report the plugin as unverified (outcomeabandoned) until the checks have passed.
Instructions
Step 0: Load what earlier runs learned
Read the LoreKit lessons (memory.list in project::reaper-mcp, tag loop::make-plugin-lessons,
at most 5). They are considerations, not rules. Continue without them if LoreKit is not
connected, and say so in the report.
Step 1: Reduce the request to a spec
In two or three lines, write down and show the user:
- What it does, in one sentence of DSP ("on each hit, replays a short mutated grain through a reverb").
- Core controls (3-5): what a person changes in most uses. Always include a way to set the amount (Mix, or the effect's own amount) and, for anything that changes level, Output.
- Advanced controls (0-8): set-and-forget, character, safety. If nothing qualifies, there is no Advanced section.
- Suggested presets (3-5): settings that teach what the plugin is for, each named for its intent in 2-3 words ("Ghost tails", "Crushed drums", "Tight low end"), values picked from what the user asked for. No "Default"/"Init" preset: REAPER has one.
Cut before you add. If a control could be a sensible fixed value, make it one. Pick the closest
example in examples/ (mutate-verb.jsfx random and granular plus reverb, tape-sat.jsfx
nonlinear plus tilt EQ, width-bass-mono.jsfx linear stereo plus meter, multiband-compressor.jsfx frequency graph with
crossover handles in Hz, per-band gain reduction and a transfer curve via ui_freqgraph,
ui_fhandle, ui_fthresh, ui_grmeter, ui_transfer; ui_fband gives bands one level each and ui_keyboard shows and plays MIDI notes; no shipped example uses those two, see reference/toolkit.md) and read it. Each has its
suggested presets beside it (<name>.presets.json): the shape write_jsfx takes.
Step 2: Write the source
Read reference/toolkit.md (the UI API) and reference/dsp-perf.md. Start from the closest
example and change what the spec changes. The shape is always:
- header:
desc:Name, unnamed sliders (slider1:0.5<0,1,0.01>Label), then@init,@slider,@block,@sample,@gfx W H. @initends withui_boot(animated)(1 when the UI has a meter, 2 when it has graph feeds: redraws only on activity); allocate buffers fromui_mem; compute coefficients inupdate(), called from@init,@sliderand@block: ui_changed() ? update();.@gfxdraws the core row(s), thenui_section("Advanced") ? ( ... )for the rest.- Bands on a frequency graph are always directly editable, unless the user says otherwise. A plugin
with bands (a crossover, a multiband or split, an EQ) draws
ui_freqgraphwith aui_fhandleper band edge, and then a per-band control on the graph itself:ui_fthresh(thr, ratio, gain, n)for dynamics (hover a band and drag up or down for its threshold, Shift-drag for its gain, wheel for its ratio) orui_fband(first, n, fmt)for one level per band (drag up or down, Shift = fine). Both select the band on a click, and oneui_bandknob(first, n, "Label", fmt)per band parameter edits the selected band. Never ship bands whose only controls are plain knobs: the multiband example is the model. - A keyboard is for playing as well as showing, and it sits along the bottom.
ui_keyboard(21, 108, "Keys")(the full range, or 36-96 for a small window; make the window wide enough, about 700 px for 88 keys) as the last core row, below the knobs, short and full width like Vital's and Odin's. A click or a drag across the keys plays. The keys fill the bottom of their cell, so the keyboard row must be the last of theui_begincore rows and the count must match the rows you draw (ui_tall(2)on the knob row above it makes the keys a short strip right above the Advanced bar): read it in@blockwithwhile (ui_kpoll()) ( ui_kv > 0 ? <note on ui_kn, ui_kv> : <note off ui_kn> );next to the MIDI-in loop (a synth turns them into voices, a MIDI effectmidisends them). Notes from MIDI light the keys withui_kkey(note, vel). - Drum pads:
ui_pads(36, 4, 4, "Pads")for a drum machine, sampler or trigger plugin: a playable grid onui_tall(2), read like the keyboard (while (ui_kpoll()) ( ... ),ui_kkey(note, vel)to light a pad from MIDI in). Pad 1 is bottom-left; the typed keys strike pads too, but only when the user has REAPER's "Send all keyboard input to plug-in" on, so never make a pad reachable only by key. - A pattern is drawn, not typed:
ui_seq(ui_mem, 4, 6, "Pattern")for a step sequencer, arpeggiator or any looping MIDI plugin: a loop of notes in ticks (96 per quarter) on 1-8 lanes, onui_tall(3). Each note has its own length (1/4 to 1/32) and feel (straight, triplet, dotted), so one lane mixes them. The brush is the 1/4 .. 1/32 buttons plus straight / triplet / dotted (keys 1-4 and q / w / e); Shift and Alt never change the feel, so Shift-drag keeps the brush's value, and the grid redraws on the lines of what you are about to place. It follows the MIDI editor (the full mouse and key map isreference/midi-editor-mouse.md: read it before adding a gesture to any note editor): drag selects, Alt-drag erases, Delete removes, Shift-drag paints a run of notes at the brush's length. It sends MIDI, so it goes before the instrument in the FX chain (after a synth it triggers nothing). Copyexamples/step-sequencer.jsfx(the pattern buffer, the tick-based@blockthat plays it,@serialize). The lane notes go in Advanced asui_padmap(first, lanes, 1, "Note each lane sends")so any library's map works. - Every control you drag or scroll must say so when the mouse is over it. Hovering shows an up and down arrow
(
ui_chev) beside the value, and the gesture is written on the label line (ui_padmapdoes both: "DRAG OR SCROLL / DOUBLE-CLICK TO TYPE"). A custom widget never relies on the user guessing a gesture: hover shows the arrows or the cursor, and a hint line says what the pointer would do now (and what Alt, Shift and Cmd/Ctrl change). Prefer visible buttons for a small set of choices (the sequencer's length buttons) over a hidden drag. - Do not write the toolkit:
write_jsfxinlines it. - Never assign
ui_adv_open(or anyui_state) in plugin code: REAPER re-runs@initwhen playback starts, so the Advanced drawer would snap shut on Play (lintui-state-reset). desc:is the plain name: do not add(reaper-mcp)yourself,write_jsfxappends it.- A
while (cond)body is always in parentheses:while (cond) ( ... );(a bare statement compiles to nothing; lintwhile-no-body). - Never set the accent (
ui_cAccent,ui_theme) or read keys/mouse yourself: the toolkit owns gestures (double-click types a value, Cmd/Ctrl/Alt-click resets, Shift-drag is fine).
Step 3: Write it
Call write_jsfx with name, source, a one-line request (a comment in the file, never
sent anywhere or shown) and presets (the 3-5 from the spec: [{name, values: {"Mix": 0.3, "Size":
0.8}}], keyed by slider label or index, in the slider's own units; sliders left out take their
default). A lint refusal lists every problem with its rule id and line: fix them all and call
again. A preset value outside its slider's range or step refuses the whole call too. Nothing is
written until everything passes. The presets land in the plugin's preset dropdown in REAPER;
presets the user saved there are never touched. Check one: set_fx_preset then
get_fx_parameters (raw values).
Colour. Each plugin gets its own accent from its name. When the user asks for a colour
("make it orange", "#ff8800"), call write_jsfx again with the same source, overwrite: true
and accent: "orange" (names: blue, teal, green, amber, orange, red, pink, violet; or #rrggbb).
Do not touch the source for a colour. Later writes without accent keep it; accent: "auto"
goes back to the name's colour.
Step 4: Load it
- Add the scratch track (
add_track, name[MCP] make-plugin <slug>) and an item with a test signal on it. Generate one (a few seconds of band-limited noise bursts and a sine) with a shortnodescript into the scratchpad as a WAV andinsert_audio_fileit, or use the user's own audio file if they gave one. add_fxwith thefxNamethatwrite_jsfxreturned, thenget_fx_parameters: the declared sliders are all there (REAPER adds Bypass, Wet and Delta after yours).- A loaded plugin does not recompile when its file changes. After every
write_jsfx:remove_fx, thenadd_fxagain.
Step 5: Prove it by measurement
This step is mandatory and part of the definition of done: never end a run, or call a plugin finished, without it.
JSFX code does not run until audio is processed, so a compile error shows up as a plugin that
does nothing, not as an error. Never conclude "it loaded" from the parameter list alone.
Measure the track offline (analyze_track_offline, verify_edit, measure_masking,
analyze_stereo_bands, analyze_loudness_curve, as the plugin calls for), with and without the
plugin (set_fx_enabled):
- It runs. At its default settings the output differs from the bypassed output
(
verify_editwithexpect: "changed", or a loudness/spectrum difference). Identical output means the plugin did not compile: look for an unbalanced parenthesis, an undefined function, a1e9literal,local()at the top of a section, then re-add it (Step 4.3). - Transparent where it should be. With the amount at 0 (Mix 0, Width 1...) the output is
identical to bypass (
verify_edit,expect: "identical"). - Safe. At defaults the true peak stays at or below 0 dBTP; no silence, no NaN.
- Does what was asked. One check chosen from the request: a reverb tail after the last
note (
analyze_loudness_curve), correlation near 1 below the crossover (analyze_stereo_bands), added harmonics for a saturator (analyze_track_offlineband balance), a gate's rhythm (detect_transients). - Extremes. Each control at its minimum and maximum: no blow-up (peak under +6 dBFS),
no stuck silence. Use
set_fx_parameter(values are normalized 0-1).
Fix the plugin, not the check. At most 4 rounds; after that stop and tell the user what still fails.
Step 6: Clean up
Delete the scratch track by exact name and confirm it is gone (list_tracks with
nameContains). The plugin file stays: it is the deliverable.
Step 7: Report
Call report_plugin_build (outcome, rounds, checks passed/failed, the example you started
from, scratchTag = the slug in your track name), then one short message: the plugin's name
and where to find it (FX browser, folder reaper-mcp-generated), the core and advanced
controls in plain words, what you measured (with the numbers), and what you could not check.
It is a plain REAPER plugin: say so, and that the UI draws inside its own window.
Step 8: Lessons
Save each non-obvious thing you hit as a LoreKit lesson in project::reaper-mcp, tag
loop::make-plugin-lessons, phrased as an observation. Nothing that is already in this file,
the toolkit or the code.
Updating a plugin
Read the file, change the plugin part only (the toolkit block is replaced for you), and pass
the whole file back to write_jsfx with overwrite: true. Keep every existing slider's number,
range and options; add new sliders at the end. The old version is kept outside Effects/.
Pass presets again when they should change (without it the preset file is left as it is; with
breaking: true and no presets, the old suggested presets are removed).
Then Steps 4-8.
Definition of done
- Core view 3-5 widgets, Advanced at most 8, nothing the request did not need
write_jsfxaccepted it (lint clean) with 3-5 suggested presets- Measured in REAPER (not assumed): runs, transparent at zero, safe at defaults, does the one thing, extremes. Each with a number in the report. Without this the plugin is not done.
- Scratch track deleted by name and confirmed gone; the user's tracks untouched
report_plugin_buildcalled; lessons saved (or the report says why not)
Known gotchas (seed lessons)
- JSFX code does not run until audio is processed. A slider set in
@init/@slider/@blockreads back unchanged throughget_fx_parameters(probed live, every variant), so there is no way to read a "compiled" flag: the audio check in Step 5 is the compile check. 1e9-style literals make EEL2 reject the whole plugin and run no code. Write1000000000.local()is only valid inside a function, never at the top of@sample/@block.- Named sliders (
slider1:g=0<...) do not keep their value insliderN: always unnamed. - Memory below
ui_mem(2048) belongs to the toolkit: allocate from it. @initruns again whenever playback starts (and on a sample-rate change). Anything it assigns is reset on Play: keep UI and interaction state out of unguarded@initassignments.rand()cannot be seeded: use the seeded generator inexamples/mutate-verb.jsfxwhen a result must be repeatable.- REAPER names the second plugin with the same
descwith its path appended (JS: Name [reaper-mcp-generated/x.jsfx]): do not read that as a compile signal.
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.

