Flexi trex
A flexible T. rex with species-specific dimensions, the same class of clearance, bend and printability checks as the axolotl, plus renders.
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/flexi-trex- Version
- 0.2.0
- Published by
- onyx
- Updated
- 14 Nov 2026
Build this spec
Build the spec at https://spekkr.com/onyx/flexi-trex/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.Flexi trex
What this builds
An original flexible tyrannosaur, modelled as code, with its own proportions (a large head, a heavy tail, short forelimbs). Segment clearances, a documented bend envelope, and wall thickness are checked the same way as a sibling articulated animal, but the dimensions and the pose file are specific to this figure. Renders are written. No physical print is required. This is not a branded toy's copy.
Read
spekkr.inputs.jsonfirst.lengthsizes the animal.gapandwallare the clearance and the shell.armsandbaseadd features.toolis the modeller.Out of scope
- A licensed film or toy character, or that brand's name in the id.
- A physical print, or a claim of palaeontology beyond the playful proportions in design.md.
- Paint or electronics.
Requirements
Each requirement has an id. Checks name the id they cover.
R1. Proportions, gaps, bend
- In the rest pose, the head length, hip height, and tail length match the ratios in
design.md(scaled tolength) within 2%. - Neighbouring segments are clear by
gapwithin 0.05 mm. A scripted bend infixtures/trex-bend.jsonstays inside the envelope and does not illegally intersect. - Min wall is at least
wall, except documented thin teeth or claws down to 1.0 mm.
Accept when: the ratios, the gaps, the bend, and the walls match.
R2. Files and frames
- Export a print-in-place mesh or parts plus a rest pose. Renders: rest, bent, a head close-up, and a logical explode.
- One command builds, bends, checks, and writes the renders. No print.
Accept when: the command passes for both tools, and an over-envelope bend is refused.
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
Clearance, bend-envelope, and printability checks of the same class as the articulated axolotl are run against this figure's own dimensions and pose file. Rest and bent renders are written. No physical print is required. The id and the name do not use a trademarked toy brand.
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, how far it may bend, and that a print is optional.
# Flexi trex ## What this builds An original flexible tyrannosaur, modelled as code, with its own proportions (a large head, a heavy tail, short forelimbs). Segment clearances, a documented bend envelope, and wall thickness are checked the same way as a sibling articulated animal, but the dimensions and the pose file are specific to this figure. Renders are written. No physical print is required. This is not a branded toy's copy. Read `spekkr.inputs.json` first. `length` sizes the animal. `gap` and `wall` are the clearance and the shell. `arms` and `base` add features. `tool` is the modeller. ## Out of scope - A licensed film or toy character, or that brand's name in the id. - A physical print, or a claim of palaeontology beyond the playful proportions in design.md. - Paint or electronics. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Proportions, gaps, bend - In the rest pose, the head length, hip height, and tail length match the ratios in `design.md` (scaled to `length`) within 2%. - Neighbouring segments are clear by `gap` within 0.05 mm. A scripted bend in `fixtures/trex-bend.json` stays inside the envelope and does not illegally intersect. - Min wall is at least `wall`, except documented thin teeth or claws down to 1.0 mm. Accept when: the ratios, the gaps, the bend, and the walls match. ### R2. Files and frames - Export a print-in-place mesh or parts plus a rest pose. Renders: rest, bent, a head close-up, and a logical explode. - One command builds, bends, checks, and writes the renders. No print. Accept when: the command passes for both tools, and an over-envelope bend is refused. ### 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 Clearance, bend-envelope, and printability checks of the same class as the articulated axolotl are run against this figure's own dimensions and pose file. Rest and bent renders are written. No physical print is required. The id and the name do not use a trademarked toy brand. ## 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, how far it may bend, and that a print is optional.
-
design.mdSpecies-specific ratios, segment gaps, and the bend envelope.Design
This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold.
Ratios (of
length)Head 0.22, hip height 0.28, tail 0.48, forelimb 0.08, as in
fixtures/trex-measures.json. Segment count and the bend envelope (max angles) are in the same family of files.Collision
Same rule as other articulated animals here: only designed link contact, 0.05 mm band.
Inputs
Key Label Default Notes lengthLength, mm 200 From 120 to 300, nose to tail in the rest pose. gapSegment gap, mm 0.3 From 0.2 to 0.45. wallWall thickness, mm 2.0 From 1.2 to 3. armsTiny arms on The short forelimbs, poseable or fused as in design.md. baseA name base off A small plaque under the feet. toolModelling tool cadquery CadQuery writes STEP and STL. OpenSCAD writes STL. Acceptance at the defaults
Millimetres. Default length (snout to tail tip, relaxed) is 200, stand-off height to the hip 70,
gap0.30, arms on, base off.Quantity Value Tolerance Source Relaxed length 200.00 0.40 Snout to tail tip Hip height 70.00 0.30 Ground to hip centre Print-in-place gap 0.30 0.02 Between segments Forelimb length 18.00 0.20 When armsis onMinimum wall 1.60 0.10 Except a documented hinge film, 0.8 The mesh is one printable piece. A pose with the jaw open 25 degrees and the tail curved is documented as the display pose.
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/display.pngFlexi T. rex 200 mm, jaw open 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.
- Clearance, bend-envelope, and printability checks of the same class as the articulated axolotl are run against this figure's own dimensions and pose file. Rest and bent renders are written. No physical print is required. The id and the name do not use a trademarked toy brand.
# Design This file fixes the geometry. How the model's code is organised is up to you, as long as the numbers here hold. ## Ratios (of `length`) Head 0.22, hip height 0.28, tail 0.48, forelimb 0.08, as in `fixtures/trex-measures.json`. Segment count and the bend envelope (max angles) are in the same family of files. ## Collision Same rule as other articulated animals here: only designed link contact, 0.05 mm band. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `length` | Length, mm | 200 | From 120 to 300, nose to tail in the rest pose. | | `gap` | Segment gap, mm | 0.3 | From 0.2 to 0.45. | | `wall` | Wall thickness, mm | 2.0 | From 1.2 to 3. | | `arms` | Tiny arms | on | The short forelimbs, poseable or fused as in design.md. | | `base` | A name base | off | A small plaque under the feet. | | `tool` | Modelling tool | cadquery | CadQuery writes STEP and STL. OpenSCAD writes STL. | ## Acceptance at the defaults Millimetres. Default length (snout to tail tip, relaxed) is 200, stand-off height to the hip 70, `gap` 0.30, arms on, base off. | Quantity | Value | Tolerance | Source | | --- | --- | --- | --- | | Relaxed length | 200.00 | 0.40 | Snout to tail tip | | Hip height | 70.00 | 0.30 | Ground to hip centre | | Print-in-place gap | 0.30 | 0.02 | Between segments | | Forelimb length | 18.00 | 0.20 | When `arms` is on | | Minimum wall | 1.60 | 0.10 | Except a documented hinge film, 0.8 | The mesh is one printable piece. A pose with the jaw open 25 degrees and the tail curved is documented as the display pose. ## 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/display.png` | Flexi T. rex 200 mm, jaw open | ## 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. Clearance, bend-envelope, and printability checks of the same class as the articulated axolotl are run against this figure's own dimensions and pose file. Rest and bent renders are written. No physical print is required. The id and the name do not use a trademarked toy brand.
-
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. - Proportions, gaps, bend (R1). Build what
R1. Proportions, gaps, bendasks for, to the numbers indesign.md. In particular: In the rest pose, the head length, hip height, and tail length match the ratios indesign.md(scaled tolength) within 2%. Check: theR1. Proportions, gaps, bendacceptance checks pass. - Files and frames (R2). Build what
R2. Files and framesasks for, to the numbers indesign.md. In particular: Export a print-in-place mesh or parts plus a rest pose. Renders: rest, bent, a head close-up, and a logical explode. 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. **Proportions, gaps, bend (R1).** Build what `R1. Proportions, gaps, bend` asks for, to the numbers in `design.md`. In particular: In the rest pose, the head length, hip height, and tail length match the ratios in `design.md` (scaled to `length`) within 2%. Check: the `R1. Proportions, gaps, bend` acceptance checks pass. 3. **Files and frames (R2).** Build what `R2. Files and frames` asks for, to the numbers in `design.md`. In particular: Export a print-in-place mesh or parts plus a rest pose. Renders: rest, bent, a head close-up, and a logical explode. 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.014 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.