add-parameter
Skill1 starsChanged 5 days agoMITView on GitHub
Add one parameter (a knob, switch or mode) to an existing Maru module, through the schema, the Processor, the face and presets, and prove from rendered audio and a face screenshot that it works. Use when asked to add, expose or wire a control, parameter or automation target to a Maru instrument or effect.
In this repository12 other files it gives its agents.
- build-for-hardwareSkill
- check-buildSkill
- create-moduleSkill
- debug-toolchainSkill
- find-moduleSkill
- list-on-marketplaceSkill
- list-pluginSkill
- make-presetsSkill
- maru-agentSkill
- new-synthSkill
- plugin-accessibilitySkill
- verify-moduleSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 45
Check while editing: Run the project's typecheck and npx --no-install maruaudio module check .
- Very specific: line 62
Never change the module id.
- Distinctive: line 64
If adding the parameter forces you to copy its range or default into several files, report that as Maru feedback instead of normalising the …
- Very specific: line 102
Ask the user to play it in the workbench (npm run dev).
- Very specific: line 114
If part of this workflow was harder than Maru should make it (a missing command or tool, an awkward step, values you had to copy by hand), …
≈ “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
Add a parameter to a Maru module
A Maru parameter is defined once, in the module's schema. The DSP, plug-in hosts, MIDI CC, presets and the face all read it by its path. Adding one is a small, countable set of edits; if it needs more, that is a gap to report, not a pattern to copy.
Steps
- Read the contract first.
npx --no-install maruaudio guide read parameters-and-schema, plusprocessor-authoringfor a Processor andui-kit-facesif the control will be visible. Read the module's current parameters from its schema file (usuallysrc/contract.ts) rather than from the face. For an official module,npx --no-install maruaudio module params <slug>prints its table. - Agree on the parameter. Confirm with the user its label, range,
default, units and whether it is shown on the face. Pick a
paththat describes what it shapes; the path becomes a stable automation ID. - Make the edits in this order. In the starter layout:
- Schema (
src/contract.ts): append one descriptor withpath,label,type,min,max,default, andunits,step,taperoroptionswhere they apply. Append it at the end; never reorder, rename or reuse an existing path. - Processor (
src/dsp/processor.ts): add the typed state field, set it increateStateandreset, add thesetParametercase for the path, and use the value inprocess, through an existingmaruaudio/dspleaf where one fits. A Graph module maps it withexpose()instead. - Face (
src/ui/index.tsx), only if it is visible: bind amaruaudio/uicontrol to the path, such asSchemaFaceorFaceParamKnob. Take the range and default from the descriptor; do not repeat them as literals.npx --no-install maruaudio guide props <Component>lists a component's props. - Presets and tapes: factory presets and
src/qualification.tsderive their defaults from the schema. Change a preset only when it should sound different with the new control, and check that every preset path still exists.
- Schema (
- Check while editing. Run the project's typecheck and
npx --no-install maruaudio module check . --fastafter each step. A typecheck catches a missingsetParametercase in the starter projects. - Verify from outside the edit with the checks below, then report.
Rules
- One parameter is one descriptor and one
setParametercase (orexpose()), plus a face binding if it is visible. Do not add a second parameter registry, a reflective dispatch or a face-local value map. - Parameter order is the host's automation ABI. Append; never reorder or remove a parameter in a released module.
- Fix a control's feel with
taperin the schema, never with a curve in the face or a remap in the DSP. processallocates nothing, locks nothing and performs no I/O. Readnpx --no-install maruaudio guide read restricted-typescriptbefore writing DSP.- Never change the module
id. Never hand-editbuild/,dist/or*.generated.ts. - If adding the parameter forces you to copy its range or default into several files, report that as Maru feedback instead of normalising the copies.
Verify
Prove the parameter changes the output, from tools that did not write the edit. Report each result, and report any check that could not run as a gap.
- Structure. The full
npx --no-install maruaudio module check .. Itsparameter-layoutrow scores the schema's sections and labels; act on its findings. - Rendered effect of the new parameter.
- An effect:
npx --no-install maruaudio module eval --suite levels --sweep <path> --no-presets --max-seconds 2sweeps the new parameter from the defaults and reports output minus input loudness, true peak and the transfer slope per step. Add--tolerance <LU>if the parameter must not change the level. - A Graph module:
npx --no-install maruaudio module evalbefore and after reports peak and RMS. - Any module with a native build: render the standalone driver at two
values and compare the files, for example
npx --no-install maruaudio app run . --render low.wav --param <path>=<min> --seconds 2and the same with<max>; for an instrument add--notes notes.jsonand--expect-audible. A parameter whose renders do not differ is not working, whatever the code says.
- An effect:
- Face.
npx --no-install maruaudio module screenshot .at the defaults, and with--preset <id>for a preset that sets the new parameter, to show the face draws the value it was given rather than one it keeps itself. Show the user the images. - Formats.
npx --no-install maruaudio module verify .for every declared native format whennpx --no-install maruaudio module doctorreports the native toolchain ready. Name each format that was not built.
Over MCP, the local maru-local server runs these as maru_module_check,
maru_module_eval, maru_module_screenshot and maru_module_verify. The
hosted connector reads project source but does not edit it: a Studio project
is changed in Studio.
Measurements show that the parameter acts; they do not approve how it sounds.
Ask the user to play it in the workbench (npm run dev); agent sessions stay
silent (npm run dev -- --silent).
Report
End with: the parameter's path, range, default and where it is shown; each file changed; the measured numbers from Verify (values compared, loudness or peak per step); the screenshots; checks that did not run and why; and any preset you changed.
Maru feedback
If part of this workflow was harder than Maru should make it (a missing
command or tool, an awkward step, values you had to copy by hand), end your
reply with the line MARU FEEDBACK: <version>, where <version> is what
npx --no-install maruaudio --version prints (with only the hosted connector, write connector
and the server version your MCP client shows). Follow it with a short prompt
that could be used to improve Maru: what you were doing, what was awkward, and
the command, tool or API you wished for. Offer to file it at
https://github.com/maru-audio/maru-skill/issues or send it through
https://maru.audio/contact; file nothing without the user's yes.
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.

