Action figure
An articulated figure with joint axes and snap-fit clearances, scripted intersection-free poses, and renders, with no print-feel check.
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/action-figure- Version
- 0.2.0
- Published by
- onyx
- Updated
- 15 Nov 2026
Build this spec
Build the spec at https://spekkr.com/onyx/action-figure/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.Action figure
What this builds
An original articulated figure, modelled as code: limbs, a torso, a head, and snap-fit joints with documented axes and clearances. A script poses it (a T-pose and a documented action pose) and checks that parts do not intersect. Minimum wall thickness is measured. Renders are written. The feel of a printed snap is out of scope and is not a check.
Read
spekkr.inputs.jsonfirst.heightscales the figure.clearanceis the snap gap.wallis the shell.handsandstandadd parts.toolis the modeller.Out of scope
- A licensed character, or a commercial figure's tooling.
- The tactile feel of a snap, or a physical print.
- Paint, fabric, or electronics.
Requirements
Each requirement has an id. Checks name the id they cover.
R1. Joints and clearances
- Each joint has an axis and a snap geometry in
design.md. In the assembled T-pose, the clearance around the snap isclearancewithin 0.05 mm. - A scripted pose (
fixtures/figure-pose.json, angles per joint) is applied, and no two solid parts intersect (a mesh collision check, tiny contact at a snap is allowed as in the file). - Minimum wall thickness is at least
wall, except documented thin features down to 1.0 mm.
Accept when: T-pose clearances match, the posed figure has no illegal intersection, and the wall check passes.
R2. Files and frames
- Parts export separately, plus an assembled T-pose and the posed figure. Renders: T-pose, posed, a joint close-up, and an exploded view.
- One command builds, poses, checks, and writes the renders. No print, no snap-feel test.
Accept when: the command passes for both tools, and a deliberately intersecting pose fails the check.
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
Joint axes and snap-fit clearances are measured. A scripted pose is checked for illegal self-intersection. Minimum wall thickness is measured. T-pose and posed renders are written. The tactile feel of a printed snap is out of scope. No physical print is required.
Definition of done
- Every acceptance check above runs from one command, and all pass at the person's inputs.
- A README says how to pose the figure, how to export the parts, and that snap feel is not a check.
# Action figure ## What this builds An original articulated figure, modelled as code: limbs, a torso, a head, and snap-fit joints with documented axes and clearances. A script poses it (a T-pose and a documented action pose) and checks that parts do not intersect. Minimum wall thickness is measured. Renders are written. The feel of a printed snap is out of scope and is not a check. Read `spekkr.inputs.json` first. `height` scales the figure. `clearance` is the snap gap. `wall` is the shell. `hands` and `stand` add parts. `tool` is the modeller. ## Out of scope - A licensed character, or a commercial figure's tooling. - The tactile feel of a snap, or a physical print. - Paint, fabric, or electronics. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Joints and clearances - Each joint has an axis and a snap geometry in `design.md`. In the assembled T-pose, the clearance around the snap is `clearance` within 0.05 mm. - A scripted pose (`fixtures/figure-pose.json`, angles per joint) is applied, and no two solid parts intersect (a mesh collision check, tiny contact at a snap is allowed as in the file). - Minimum wall thickness is at least `wall`, except documented thin features down to 1.0 mm. Accept when: T-pose clearances match, the posed figure has no illegal intersection, and the wall check passes. ### R2. Files and frames - Parts export separately, plus an assembled T-pose and the posed figure. Renders: T-pose, posed, a joint close-up, and an exploded view. - One command builds, poses, checks, and writes the renders. No print, no snap-feel test. Accept when: the command passes for both tools, and a deliberately intersecting pose fails the check. ### 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 Joint axes and snap-fit clearances are measured. A scripted pose is checked for illegal self-intersection. Minimum wall thickness is measured. T-pose and posed renders are written. The tactile feel of a printed snap is out of scope. No physical print is required. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to pose the figure, how to export the parts, and that snap feel is not a check.
-
design.mdJoint axes, snap clearances, the scripted pose, and collision rules.Design
This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold.
Joints
Shoulders, elbows, hips, knees, head, and optional wrists. Axes and rest angles are
fixtures/figure-joints.json. The action pose is a lunge with one arm raised, angles in the pose file.Collision
A snap's male/female pair may overlap by up to 0.05 mm in the contact band; other overlaps fail. The file lists the allowed contact pairs.
Inputs
Key Label Default Notes heightHeight, mm 150 From 80 to 220, the T-pose height. clearanceJoint clearance, mm 0.25 From 0.15 to 0.4, the snap-fit gap. wallWall thickness, mm 2.0 From 1.4 to 3. handsSeparate hands on A wrist snap; if off, hands are merged. standA simple stand on A peg stand at the feet. toolModelling tool cadquery CadQuery writes STEP and STL. OpenSCAD writes STL. Acceptance at the defaults
Millimetres and degrees.
heightis 150 (T-pose, feet to scalp),clearanceis 0.25,wallis 2.0, hands and stand are on.Quantity Value Tolerance Source T-pose height 150.00 0.20 heightSnap-fit gap at each joint 0.25 0.02 clearanceWall thickness 2.00 0.10 Except a documented hinge film, 1.2 Allowed contact overlap 0.05 0.01 Only listed male/female pairs Joints in the T-pose head, two shoulders, two elbows, two hips, two knees, two wrists — Wrists omitted if handsis offThe action pose is a lunge with the right arm raised. Rest and pose angles live in this file's joint table if a build does not ship
fixtures/figure-joints.json. Shoulders ±0/80, elbows 0/90, hips 0/35, knees 0/70, right shoulder raised 110 in the action pose, units degrees.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/t-pose.pngFigure 150 mm T-pose 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.
- Joint axes and snap-fit clearances are measured. A scripted pose is checked for illegal self-intersection. Minimum wall thickness is measured. T-pose and posed renders are written. The tactile feel of a printed snap is out of scope. No physical print is required.
# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## Joints Shoulders, elbows, hips, knees, head, and optional wrists. Axes and rest angles are `fixtures/figure-joints.json`. The action pose is a lunge with one arm raised, angles in the pose file. ## Collision A snap's male/female pair may overlap by up to 0.05 mm in the contact band; other overlaps fail. The file lists the allowed contact pairs. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `height` | Height, mm | 150 | From 80 to 220, the T-pose height. | | `clearance` | Joint clearance, mm | 0.25 | From 0.15 to 0.4, the snap-fit gap. | | `wall` | Wall thickness, mm | 2.0 | From 1.4 to 3. | | `hands` | Separate hands | on | A wrist snap; if off, hands are merged. | | `stand` | A simple stand | on | A peg stand at the feet. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | ## Acceptance at the defaults Millimetres and degrees. `height` is 150 (T-pose, feet to scalp), `clearance` is 0.25, `wall` is 2.0, hands and stand are on. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | T-pose height | 150.00 | 0.20 | `height` | | Snap-fit gap at each joint | 0.25 | 0.02 | `clearance` | | Wall thickness | 2.00 | 0.10 | Except a documented hinge film, 1.2 | | Allowed contact overlap | 0.05 | 0.01 | Only listed male/female pairs | | Joints in the T-pose | head, two shoulders, two elbows, two hips, two knees, two wrists | — | Wrists omitted if `hands` is off | The action pose is a lunge with the right arm raised. Rest and pose angles live in this file's joint table if a build does not ship `fixtures/figure-joints.json`. Shoulders ±0/80, elbows 0/90, hips 0/35, knees 0/70, right shoulder raised 110 in the action pose, units degrees. ## 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/t-pose.png` | Figure 150 mm T-pose | ## 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. Joint axes and snap-fit clearances are measured. A scripted pose is checked for illegal self-intersection. Minimum wall thickness is measured. T-pose and posed renders are written. The tactile feel of a printed snap is out of scope. No physical print is required.
-
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. - Joints and clearances (R1). Build what
R1. Joints and clearancesasks for, to the numbers indesign.md. In particular: Each joint has an axis and a snap geometry indesign.md. In the assembled T-pose, the clearance around the snap isclearancewithin 0.05 mm. Check: theR1. Joints and clearancesacceptance checks pass. - Files and frames (R2). Build what
R2. Files and framesasks for, to the numbers indesign.md. In particular: Parts export separately, plus an assembled T-pose and the posed figure. Renders: T-pose, posed, a joint close-up, and an exploded view. 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. **Joints and clearances (R1).** Build what `R1. Joints and clearances` asks for, to the numbers in `design.md`. In particular: Each joint has an axis and a snap geometry in `design.md`. In the assembled T-pose, the clearance around the snap is `clearance` within 0.05 mm. Check: the `R1. Joints and clearances` acceptance checks pass. 3. **Files and frames (R2).** Build what `R2. Files and frames` asks for, to the numbers in `design.md`. In particular: Parts export separately, plus an assembled T-pose and the posed figure. Renders: T-pose, posed, a joint close-up, and an exploded view. 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.