Module knobs
A family of knobs for modular-synth shafts: bore and D-flat dimensions against a stated standard, press-fit allowances, and rendered sizes.
This is a CAD spec on Spekkr, published by onyx. It is listed with the other specs. Paste the line to an agent that can open a web address, and the agent fetches the files and builds from them.
- Spec
onyx/module-knobs- Version
- 0.2.0
- Published by
- onyx
- Updated
- 15 Nov 2026
Build this spec
Build the spec at https://spekkr.com/onyx/module-knobs/start.md.
Paste this to your AI agent. It opens the address, fetches the spec's files, records your choices and builds from them. Nothing to install, no account.
Published by onyx.
What does the result look like?
What can I customize?
Your choices go into the line you copy. Anything else is yours to edit, but it leaves the tested path.
What do I get?
-
spec.mdRequirements and acceptance checks.Module knobs
What this builds
A family of knobs for a modular-synth shaft, modelled as code. The bore and an optional D-flat follow a stated standard, listed in this spec (not a vague appeal to a brand). A press-fit allowance is applied. A few sizes are rendered. No physical press or a real module is required. The product name does not use a trademarked format name in the id.
Read
spekkr.inputs.jsonfirst.diameterandheightsize the skirt.boreandpresssize the hole.standardchooses the shaft table.dflatandpointeradd features.toolis the modeller.Out of scope
- A real pot shaft in the checks, or a press-fit feel test.
- A trademarked format name in the id.
- A physical print or a shop of branded knobs.
Requirements
Each requirement has an id. Checks name the id they cover.
R1. Bore and D-flat
- For
6mm-d, the shaft is 6.0 mm, and the D-flat is 0.5 mm off a 6.0 mm circle, as indesign.md. Forquarter-inch, the table in the same file is used. - The modelled bore is
shaft - presson the round, and the flat is offset accordingly, each within 0.03 mm. - A family of three diameters (12, 16, 20, or the input plus two neighbours) is built and measured.
Accept when: each standard's bore and flat match the table, with the allowance, for the family of sizes.
R2. Files and frames
- Meshes watertight. Renders: the family, a bore section, a D-flat close-up, and a knob on a modelled shaft (the shaft is a check solid, not a bought part).
- One command builds, measures, and writes the renders. No press, no print.
Accept when: the command passes for both tools and both standards, and a zero-allowance / wrong-flat fixture fails the table.
R3. Inputs
- Numeric inputs are read from
spekkr.inputs.jsonand must stay inside the ranges in the Inputs table indesign.md. - A value outside a range is refused before modelling, with a message that names the key.
- Options add or remove the features in that table. The
toolswap selects CadQuery or OpenSCAD; both must meet the same numbers.
Accept when: default and one out-of-range value are handled as above, and a second legal input set still matches the formulas in
design.md.R4. Checks and report
- One command builds the model at the defaults and at the person's inputs, measures it against
design.md, and writes a short report. - A model broken on purpose, for example a wall thinner than
wall, must fail the report. - The command exports the files this spec asks for (STL, and STEP when the tool can). No physical print is required.
Accept when: the report says pass at the defaults and at the person's inputs, and fail on a deliberately broken model.
Verification
Shaft bore and D-flat dimensions are measured against a stated standard table, with a press-fit allowance applied. A family of sizes is rendered. No physical press and no real module are required. The id does not use a trademarked format name.
Definition of done
- Every acceptance check above runs from one command, and all pass at the person's inputs.
- A README says how to export a size, how the shaft table is written, and that a press-fit feel is not a check.
# Module knobs ## What this builds A family of knobs for a modular-synth shaft, modelled as code. The bore and an optional D-flat follow a stated standard, listed in this spec (not a vague appeal to a brand). A press-fit allowance is applied. A few sizes are rendered. No physical press or a real module is required. The product name does not use a trademarked format name in the id. Read `spekkr.inputs.json` first. `diameter` and `height` size the skirt. `bore` and `press` size the hole. `standard` chooses the shaft table. `dflat` and `pointer` add features. `tool` is the modeller. ## Out of scope - A real pot shaft in the checks, or a press-fit feel test. - A trademarked format name in the id. - A physical print or a shop of branded knobs. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Bore and D-flat - For `6mm-d`, the shaft is 6.0 mm, and the D-flat is 0.5 mm off a 6.0 mm circle, as in `design.md`. For `quarter-inch`, the table in the same file is used. - The modelled bore is `shaft - press` on the round, and the flat is offset accordingly, each within 0.03 mm. - A family of three diameters (12, 16, 20, or the input plus two neighbours) is built and measured. Accept when: each standard's bore and flat match the table, with the allowance, for the family of sizes. ### R2. Files and frames - Meshes watertight. Renders: the family, a bore section, a D-flat close-up, and a knob on a modelled shaft (the shaft is a check solid, not a bought part). - One command builds, measures, and writes the renders. No press, no print. Accept when: the command passes for both tools and both standards, and a zero-allowance / wrong-flat fixture fails the table. ### R3. Inputs - Numeric inputs are read from `spekkr.inputs.json` and must stay inside the ranges in the Inputs table in `design.md`. - A value outside a range is refused before modelling, with a message that names the key. - Options add or remove the features in that table. The `tool` swap selects CadQuery or OpenSCAD; both must meet the same numbers. Accept when: default and one out-of-range value are handled as above, and a second legal input set still matches the formulas in `design.md`. ### R4. Checks and report - One command builds the model at the defaults and at the person's inputs, measures it against `design.md`, and writes a short report. - A model broken on purpose, for example a wall thinner than `wall`, must fail the report. - The command exports the files this spec asks for (STL, and STEP when the tool can). No physical print is required. Accept when: the report says pass at the defaults and at the person's inputs, and fail on a deliberately broken model. ## Verification Shaft bore and D-flat dimensions are measured against a stated standard table, with a press-fit allowance applied. A family of sizes is rendered. No physical press and no real module are required. The id does not use a trademarked format name. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to export a size, how the shaft table is written, and that a press-fit feel is not a check.
-
design.mdShaft tables, D-flat geometry, press-fit allowance, and a family of sizes.Design
This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold.
Tables
6mm-d: diameter 6.0, D-flat height 5.5 (0.5 mm from the opposite tangent — the file states the exact convention).quarter-inch: 6.35 mm, D-flat as infixtures/knob-shafts.json.Press
The bore is smaller than the shaft by
presson the diameter (or on the radius, as the file says; tests use the file).Inputs
Key Label Default Notes diameterSkirt diameter, mm 16 From 10 to 28. boreShaft bore, mm 6.0 The round shaft, before the D-flat, from 3.0 to 6.5. pressPress-fit allowance, mm 0.05 How much tighter the bore is than the stated shaft, from 0 to 0.12. heightHeight, mm 12 From 8 to 20. dflatA D-flat on A flat on the bore, as in the stated standard. pointerA pointer line on A mark on the skirt. toolModelling tool cadquery CadQuery writes STEP and STL. OpenSCAD writes STL. standardShaft standard 6mm-d The documented shaft table in design.md. Acceptance at the defaults
Millimetres. Default skirt diameter 12.0, height 14.0, shaft bore 6.0, D-flat and pointer on. This is an original knob family, not a branded module standard.
Quantity Value Tolerance Source Skirt diameter 12.00 0.05 Of the default 'round' knob Height 14.00 0.05 Shaft shoulder to crown Bore diameter 6.00 0.02 For the shaft D-flat depth 0.50 0.02 When dflatis onPointer line width 0.40 0.05 When pointeris onThree shapes ship: round, knurled, and winged. Each has a documented volume within 0.5% and a bore that accepts a 6.00 mm shaft with 0.05 mm clearance. The set is one project, three STLs.
Screenshots
These pictures are headless OpenSCAD renders of the reference model in
reference/model.scad, at the default inputs. They are not drawings of a product that has not been modelled. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel.File What it shows shots/set.pngThree knobs 12 mm skirt, D-flat bore How to verify
- Build the model at the default inputs and at two other legal input sets.
- Measure every row of the acceptance table in this file; each must fall inside its tolerance. Use the solid itself or a mesh library on the exported STL, as
design.mdsays for the chosen tool. - Refuse at least one out-of-range input by name before modelling.
- Confirm each exported part is a manifold, watertight mesh, and that walls and print orientation hold where this file asks.
- Shaft bore and D-flat dimensions are measured against a stated standard table, with a press-fit allowance applied. A family of sizes is rendered. No physical press and no real module are required. The id does not use a trademarked format name.
# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## Tables `6mm-d`: diameter 6.0, D-flat height 5.5 (0.5 mm from the opposite tangent — the file states the exact convention). `quarter-inch`: 6.35 mm, D-flat as in `fixtures/knob-shafts.json`. ## Press The bore is smaller than the shaft by `press` on the diameter (or on the radius, as the file says; tests use the file). ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `diameter` | Skirt diameter, mm | 16 | From 10 to 28. | | `bore` | Shaft bore, mm | 6.0 | The round shaft, before the D-flat, from 3.0 to 6.5. | | `press` | Press-fit allowance, mm | 0.05 | How much tighter the bore is than the stated shaft, from 0 to 0.12. | | `height` | Height, mm | 12 | From 8 to 20. | | `dflat` | A D-flat | on | A flat on the bore, as in the stated standard. | | `pointer` | A pointer line | on | A mark on the skirt. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | | `standard` | Shaft standard | 6mm-d | The documented shaft table in design.md. | ## Acceptance at the defaults Millimetres. Default skirt diameter 12.0, height 14.0, shaft bore 6.0, D-flat and pointer on. This is an original knob family, not a branded module standard. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | Skirt diameter | 12.00 | 0.05 | Of the default 'round' knob | | Height | 14.00 | 0.05 | Shaft shoulder to crown | | Bore diameter | 6.00 | 0.02 | For the shaft | | D-flat depth | 0.50 | 0.02 | When `dflat` is on | | Pointer line width | 0.40 | 0.05 | When `pointer` is on | Three shapes ship: round, knurled, and winged. Each has a documented volume within 0.5% and a bore that accepts a 6.00 mm shaft with 0.05 mm clearance. The set is one project, three STLs. ## Screenshots These pictures are headless OpenSCAD renders of the reference model in `reference/model.scad`, at the default inputs. They are not drawings of a product that has not been modelled. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/set.png` | Three knobs 12 mm skirt, D-flat bore | ## How to verify 1. Build the model at the default inputs and at two other legal input sets. 2. Measure every row of the acceptance table in this file; each must fall inside its tolerance. Use the solid itself or a mesh library on the exported STL, as `design.md` says for the chosen tool. 3. Refuse at least one out-of-range input by name before modelling. 4. Confirm each exported part is a manifold, watertight mesh, and that walls and print orientation hold where this file asks. 5. Shaft bore and D-flat dimensions are measured against a stated standard table, with a press-fit allowance applied. A family of sizes is rendered. No physical press and no real module are required. The id does not use a trademarked format name.
-
tasks.mdBuild tasks in order, each with a check.Tasks
Work in order. Finish a task's check before starting the next.
- Set up. Install the tool in the
toolinput (CadQuery or OpenSCAD) and a mesh library for the checks. Readspekkr.inputs.jsoninto one place at the top of the model. Check: an empty or trivial model is written and read back, and the inputs are visible in that source. - Bore and D-flat (R1). Build what
R1. Bore and D-flatasks for, to the numbers indesign.md. In particular: For6mm-d, the shaft is 6.0 mm, and the D-flat is 0.5 mm off a 6.0 mm circle, as indesign.md. Forquarter-inch, the table in the same file is used. Check: theR1. Bore and D-flatacceptance checks pass. - Files and frames (R2). Build what
R2. Files and framesasks for, to the numbers indesign.md. In particular: Meshes watertight. Renders: the family, a bore section, a D-flat close-up, and a knob on a modelled shaft (the shaft is a check solid, not a bought part). Check: theR2. Files and framesacceptance checks pass. - Inputs (R3). Build what
R3. Inputsasks for, to the numbers indesign.md. In particular: Numeric inputs are read fromspekkr.inputs.jsonand must stay inside the ranges in the Inputs table indesign.md. Check: theR3. Inputsacceptance checks pass. - Checks and report (R4). Build what
R4. Checks and reportasks for, to the numbers indesign.md. In particular: One command builds the model at the defaults and at the person's inputs, measures it againstdesign.md, and writes a short report. Check: theR4. Checks and reportacceptance checks pass. - Goldens and the report. Render the documented views of the default model. Run the one-command report at the defaults, at the person's inputs, and at one more legal set. Check: the report says pass throughout, and the rendered views are written next to the model.
- Finish. Write a README that says how to install what is needed, how to change the inputs, and how to run the checks. Run the one command from a clean folder. Check: every item under Definition of done in
spec.mdis true.
# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Install the tool in the `tool` input (CadQuery or OpenSCAD) and a mesh library for the checks. Read `spekkr.inputs.json` into one place at the top of the model. Check: an empty or trivial model is written and read back, and the inputs are visible in that source. 2. **Bore and D-flat (R1).** Build what `R1. Bore and D-flat` asks for, to the numbers in `design.md`. In particular: For `6mm-d`, the shaft is 6.0 mm, and the D-flat is 0.5 mm off a 6.0 mm circle, as in `design.md`. For `quarter-inch`, the table in the same file is used. Check: the `R1. Bore and D-flat` acceptance checks pass. 3. **Files and frames (R2).** Build what `R2. Files and frames` asks for, to the numbers in `design.md`. In particular: Meshes watertight. Renders: the family, a bore section, a D-flat close-up, and a knob on a modelled shaft (the shaft is a check solid, not a bought part). Check: the `R2. Files and frames` acceptance checks pass. 4. **Inputs (R3).** Build what `R3. Inputs` asks for, to the numbers in `design.md`. In particular: Numeric inputs are read from `spekkr.inputs.json` and must stay inside the ranges in the Inputs table in `design.md`. Check: the `R3. Inputs` acceptance checks pass. 5. **Checks and report (R4).** Build what `R4. Checks and report` asks for, to the numbers in `design.md`. In particular: One command builds the model at the defaults and at the person's inputs, measures it against `design.md`, and writes a short report. Check: the `R4. Checks and report` acceptance checks pass. 6. **Goldens and the report.** Render the documented views of the default model. Run the one-command report at the defaults, at the person's inputs, and at one more legal set. Check: the report says pass throughout, and the rendered views are written next to the model. 7. **Finish.** Write a README that says how to install what is needed, how to change the inputs, and how to run the checks. Run the one command from a clean folder. Check: every item under Definition of done in `spec.md` is true.
- Set up. Install the tool in the
-
reference/model.scadA parametric OpenSCAD reference of the default model, used to make the listing pictures. A build may use CadQuery or OpenSCAD and does not have to start from this file. -
shots/hero.pngStudio hero of the default model. -
shots/detail.pngCloser studio still of a joint, pocket, or surface.
Is it for me?
- Kind
- CAD
- Tools
- CadQuery, OpenSCAD
What does it need?
- Agent permissions
- shell
- Commands it runs
install CadQuery or OpenSCAD, whichever the tool input namesinstall a mesh library, such as trimesh
What changed?
- 0.2.015 Nov 2026Studio product shots from a shared Cycles rig (cyclorama, PLA materials), including a short loop when present.
- 0.1.014 Nov 2026First version.
For agents: start.md says how to build this spec, spec.json holds everything on this page, and bundle.tar.gz holds its files.