generate-structures

The first stage of a CAD pipeline that creates the basic 3D shapes and shells for printable parts from a component tree using build123d, a Python-based CAD tool.

In plain words
What is it for?
Use it to generate or refresh base STEP files for parts and assemblies before adding detail features.
Why use it?
It separates the main structural geometry from later details such as holes, pockets, and mounts, making the design easier to review and update.

Skill for Claude CodeCodex

Part of the rocketsmith plugin — 7 skills, 6 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ppak10/rocketsmith/generate-structures
Any agent
npx skills add ppak10/RocketSmith --skill generate-structures
Clone the repo
git clone --depth 1 https://github.com/ppak10/RocketSmith

Made for: Claude Code, Codex.

Or install rocketsmith, the plugin that ships this one along with the rest of its 7 skills, 6 agents, 2 hooks.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.09827
Opus 5 $0.00034 $0.04914
Sonnet 5 $0.00014 $0.01965
Haiku 4.5 $0.00007 $0.00983

Measured 3d ago against content hash b6c8b039fedf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-structures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/generate-structures/SKILL.md · 553 lines

How it starts

The opening of the file, as written. The whole thing — 553 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Structures

Overview

generate-structures is Pass 1 of the CAD pipeline. It takes a component tree and produces the base geometry for every printable part — the structural shell. Pass 2 (modify-structures) then adds detail features like holes, pockets, and mounts on top of these base STEPs.

The separation matters because:

  • Iteration speed — changing a hole pattern doesn't require regenerating the structural shell
  • Review boundaries — you can verify the base geometry is correct before committing to detail features
  • Clean mental model — structural decisions (diameters, walls, fusion) are separate from detail decisions (retention, mounts, vents)

This skill is rocketry-agnostic — it knows about build123d and parts and assemblies, not about nose cones and fins. The manifest's feature blocks drive what gets built.

Core principle: Read the manifest, trust the manifest. Every geometric decision was made by the DFx skill. generate-structures is a faithful executor, not a designer.

When to Use

  • component_tree.json exists at <project_root>/gui/component_tree.json and needs Pass 1 geometry
  • A base STEP file is missing or out of sync with its feature block
  • The user asks to regenerate structural geometry

Inputs

<project_root>/gui/component_tree.json — the authoritative parts list (populated by manufacturing_annotate_tree, never hand-edited). Specifically the parts[].features block for each part. Do not read the modifications block — that's modify-structures' job.

Output

  • <project_root>/cadsmith/source/<name>.py — one parametric script per part (base geometry only)
  • <project_root>/cadsmith/step/<name>.step — the STEP file exported by each script
  • <project_root>/gui/assets/png/<name>.png — isometric PNG thumbnail of each part for visual verification

Steps

1. Load the Manifest

manifest = read_json("<project_root>/gui/component_tree.json")

Verify it has schema_version, parts, directories, and assemblies. If anything is missing, stop and ask the design-for-additive-manufacturing skill to regenerate the manifest — do not fill in missing fields.

Read the full file on GitHub · 553 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 553 lines · 68 tokens per session scan A b6c8b039fedf

Subscribe to this mod's changes

generate-structures is a skill published in the GitHub repository ppak10/RocketSmith (21 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 9,827 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

add-interfaces

Enrich an existing PartCAD part with connection interfaces and ports (mating metadata) so it can be mated to other parts automatically. Use for /pc:add-interfaces or when the user asks to add interfaces, ports, connectors, or mating information to a part, or to make parts snap/connect/assemble together.

partcad/partcad · 69 tokens

gen-assembly

Generate a PartCAD assembly (an ASSY that composes parts with placement and/or mates) from a description, generating or reusing the component parts and validating the result with the PartCAD CLI. Use for /pc:gen-assembly or when the user asks to generate or create an assembly, mechanism, or multi-part product.

partcad/partcad · 71 tokens

gen-part

Generate a PartCAD part from a natural-language description (and optional reference images/requirements) by authoring a CAD script and validating it with the PartCAD CLI. Use for /pc:gen-part or when the user asks to generate, create, or model a single mechanical part.

partcad/partcad · 60 tokens

search

Find existing PartCAD parts and assemblies in the catalog that match a natural-language query, using the PartCAD CLI (pc search), then present the matches and optionally inspect or render a chosen one. Use for /pc:search or when the user asks to search, find, look up, or discover a part or assembly.

partcad/partcad · 68 tokens

aieng-cad-authoring

Active MCP-first CAD authoring skill for AIENG Workbench. Use when the user asks to create, design, draft, model, or iteratively build CAD geometry through the active cad. MCP tools. Do not use for solver/result review, schema/library implementation, or editing legacy IR plans.

armpro24-blip/cad-cae-copilot · 67 tokens

install

Install PartCAD (the pc/partcad command) so other skills can run it — either the standalone PyInstaller build from GitHub releases (executable) or the partcad-cli module into the active Python environment (python-module). Use when the user runs /pc:install or when PartCAD is not installed.

partcad/partcad · 70 tokens