text-to-cad
AGENTS.md17k starsChanged 56 days agoMITView on GitHub
Installing text-to-cad rather than developing it? Follow the Install section of README.md. This repo is a workbench for CAD-related agent skills. Treat skills/ as the product and models/ as the shared fixture/artifact area. main is the only branch you develop on: the source tree, what installers clone, and what releases are cut from. Branch from main and open PRs against main; never push it directly. There is no development symlink layout — every path in the tree is the real…
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about earthtojake/text-to-cad
- A Hacker News story“Text-to-CAD”Hacker News · May 1, 2026 · 186 points
- @camilleroux.com“Text-to-CAD open source : décrivez une pièce ou un mécanisme en langage naturel, laissez un agent (Codex, …”Bluesky · May 18, 2026 · 14 likes
- @davepentecost.bsky.social“github.com/earthtojake/...”Bluesky · Jul 28, 2026 · 2 likes
- A Hacker News story“Text-to-CAD: Generate 3D models with coding agents (open source)”Hacker News · Apr 29, 2026 · 2 points
- @agentpalisade.bsky.social“text-to-cad is a library of eleven agent skills that turn a coding agent into a CAD engineer, carrying a …”Bluesky · Jul 31, 2026 · 1 likes
The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 61
Talked about on GitHub, Bluesky and Hacker News (61 times).
On GitHub · 50
- Nov 2, 2026vendor: pull text-to-cad 5efa85a9 — gurul/gencad0 reactions
- Nov 2, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 2, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 2, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.4 → 0.10.0 — sudosubin/agents.nix0 reactions
- Nov 1, 2026Upstream updates to review — MoradDev/skills-unified0 reactions
- Oct 31, 2026PEP 541 Request: cad — pypi/support0 reactions · 1 comment
- Oct 30, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.3 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 30, 2026Roadmap: Shaderera inside Claude and ChatGPT (not now) — shaderera/shaderera0 reactions
- Oct 30, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 30, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-plugins.github.earthtojake.text-to-cad: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.1 → 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.earthtojake.text-to-cad: init at 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.earthtojake.text-to-cad: 0.8.0 → 0.8.1 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.26 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 26, 2026vendor: pull text-to-cad 2f793659 — gurul/gencad0 reactions
- Oct 23, 2026Epic: Scan a broken part, get replacement CAD — zeketx/sidekick-mechanic0 reactions
- Oct 23, 2026Epic: Photo part ID with a 3D view and the manual page — zeketx/sidekick-mechanic0 reactions
- Oct 23, 2026Epic: "Make me this part" chat tool (text to CAD: STEP, STL, drawing) — zeketx/sidekick-mechanic0 reactions
- Oct 20, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.25 → 0.7.26 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 20, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.24 → 0.7.25 — sudosubin/agents.nix0 reactions
- Oct 19, 2026vendor: pull text-to-cad b316da8f — gurul/gencad0 reactions
- Oct 18, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.22 → 0.7.24 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-plugins.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 18, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.21 → 0.7.22 — sudosubin/agents.nix0 reactions
- Oct 13, 2026codex-plugins.github.earthtojake.text-to-cad: 0.7.15 → 0.7.21 — sudosubin/agents.nix0 reactions
- Oct 13, 2026agent-plugins.github.earthtojake.text-to-cad: init at 0.7.21 — sudosubin/agents.nix0 reactions
On Bluesky · 9
- May 18, 2026Text-to-CAD open source : décrivez une pièce ou un mécanisme en langage naturel, laissez un agent (Codex, Claude Code) générer les fichiers… — @camilleroux.com14 likes and reposts · 1 reply
- Jul 28, 2026github.com/earthtojake/... — @davepentecost.bsky.social2 likes and reposts · 2 replies
- Jul 31, 2026text-to-cad is a library of eleven agent skills that turn a coding agent into a CAD engineer, carrying a plain-language request from STEP… — @agentpalisade.bsky.social1 likes and repost
- Jul 30, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 earthtojake / text-to-cad ⭐ 11,679 (+477) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jul 25, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 earthtojake / text-to-cad ⭐ 10,288 (+555) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending-js.bsky.social1 likes and repost · 1 reply
4 more on Bluesky
- Jul 22, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 earthtojake / text-to-cad ⭐ 8,784 (+297) 🗒 JavaScript A collection of agent skills for CAD,… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jul 21, 2026今日のGitHubトレンド earthtojake/text-to-cad CAD、ロボティクス、およびハードウェア設計を行うAIエージェント向けのスキルライブラリです。 CADデータの生成、検査、調達、スライス、受け渡しなどの機能をエージェントに提供することを目的としています。 — @dailygithubtrends.bsky.social1 likes and repost
- Aug 8, 2026公式GitHubを確認。これはかなり堅い。CADを会話だけで終わらせず、ソース管理されたファイルとして編集し、STEP/STL/URDF/SRDF/SDFやG-codeまで明示的に出力・閲覧する技能群。… — @nemu-echosphere.bsky.social0 likes and reposts · 1 reply
- May 25, 2026CAD SKILLS: Generate CAD in AI agents like Codex and Claude Code. 100% open source, runs locally, free forever. 开源生成 CAD 文件的代理模型 - 支持导出… — @maoguofang.bsky.socialsays it tested it0 likes and reposts · 2 replies
On Hacker News · 2
- May 1, 2026Text-to-CAD186 points · 48 comments
- Apr 29, 2026Text-to-CAD: Generate 3D models with coding agents (open source)2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- bambu-labsSkill
- cadSkill
- dfam-checkSkill
- dfmSkill
- dxfSkill
- engineering-drawingSkill
- gcodeSkill
- sdfSkill
- sendcutsendSkill
- srdfSkill
- step-partsSkill
- urdfSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
21 rules. About 0 are common, 5 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
16
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 21
Do not bump the canonical release version in VERSION during normal development work.
- Very specific: line 39
When asked to publish, make, or ship a release, dispatch Prepare Release on main.
- Very specific: line 112
Keep root guidance short. Put domain workflows, CLI details, and validation policy in the relevant skills/<skill>/SKILL.md or references/ …
- Distinctive: line 114
Keep relevant Markdown docs current when changing behavior, commands, or repo layout, but do not bloat AGENTS.md.
- Very specific: line 117
Read CONTRIBUTING.md before committing, rebasing, resolving generated-file conflicts, or bumping release versions.
- Very specific: line 134
Keep samples and manual CAD/robot-description validation artifacts under models/.
- Very specific: line 139
Every test runs in CI. Each test file is reached by a runner under scripts/test/, every runner is called by a test.yml job on the changes …
- Distinctive: line 153
Only their pure helper units run in a test runner.
- Very specific: line 167
Never let a symlink reach the published tree.
- Very specific: line 179
Keep repo-level tooling in scripts/, not under apps/web/.
- Very specific: line 194
Create lightweight shared Python packages under packages/ when a helper should not inherit heavier package dependencies.
- Distinctive: line 196
Use path-targeted search, validation, and git status.
- Very specific: line 198
Treat VERSION as the canonical release version.
- Very specific: line 205
Prefer ./.venv/bin/python for CAD Python work.
- Very specific: line 206
Keep new branch checkouts and git worktrees lightweight by default.
- Very specific: line 212
Test skills and the plugin in an agent app with scripts/install/dev_install.py <host> (CONTRIBUTING.md, "Test In Agent Apps").
- Very specific: line 217
Do not commit .venv/, node_modules/, caches, tmp/, local credentials, or printer config.
- Distinctive: line 222
Run the smallest path-targeted check that covers the change.
- Very specific: line 246
When a task changes what the bundlers consume, run scripts/bundle/bundle.sh and confirm the change lands in the built runtime.
- Very specific: line 258
Never stop an instance you did not start.
- Distinctive: line 263
No Git LFS, and every file under 5 MiB: the repository root is the plugin, and claude.ai's plugin directory refuses files a filter rewrites …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md
Installing text-to-cad rather than developing it? Follow the Install section of README.md.
This repo is a workbench for CAD-related agent skills. Treat skills/ as the
product and models/ as the shared fixture/artifact area.
Branch First
main is the only branch you develop on: the source tree, what installers
clone, and what releases are cut from. Branch from main and open PRs against
main; never push it directly. There is no development symlink layout — every
path in the tree is the real file. plugin, the plugin claude.ai's directory
follows (and claude-plugin, its old name, until claude.ai's listing moves), is
written only by Publish Release (see below); never commit to it. main stays
an installable plugin too: every manifest and MCP config lives at its root.
Release Workflow
Do not bump the canonical release version in VERSION during normal
development work; the Test workflow refuses a PR that changes VERSION from
any branch but release/*. Releases are two GitHub Actions workflows:
Prepare Release(release-prepare.yml, manual): opens and merges a release PR againstmainthat bumpsVERSION, the derived metadata and every skill'scadgen==pin together.Publish Release(release-publish.yml): fires on the push that merge makes. Bundles, tests, builds thecadgenwheel, installs and exercises it, keeps the distribution as a workflow artifact, then — onmainonly — uploads to PyPI, deploys the docs site, and tags (v<VERSION>; releases before 0.5.0 are bare0.4.xtags) + GitHub-Releases that same merged commit with the wheel and sdist that went to PyPI attached as release assets, plus the plugin ZIP that a person uploads to OpenAI's plugin portal, which has no API. It also commits the plugin alone (Claude, Cursor and Gemini manifests, icon,claude.mcp.json,skills/,LICENSE, README) onto thepluginbranch, which claude.ai's plugin directory follows (scripts/release/plugin_branch.py).
When asked to publish, make, or ship a release, dispatch Prepare Release on
main. Never pick the semver bump yourself: if the request does not name patch,
minor, major, or an exact version, ask which one before dispatching. To resume a
run that uploaded the wheel but failed before the tag or the docs deploy, or to
republish the current head, dispatch Publish Release on main (publish=false
leaves the GitHub Release as a draft). target=build-test on Prepare Release
is the rehearsal — the same PR against build-test, whose pushes run Publish
Release without PyPI, docs or tag — and is never a release; use it only when the
user explicitly asks to test the pipeline.
The standalone Deploy Docs workflow redeploys the docs site from a ref
(default main, or a release tag) without running a release.
cadgen runs as ONE launch command everywhere, uvx --no-config --managed-python
--python 3.13 --from cadgen==<VERSION> <tool> (cadgen._internal.launch): the
plugin server configs and every cadgen skill's SKILL.md carry it, the release
stamps every pin (sync-version.mjs), and scripts/release/check-version.sh
and the tests assert they all equal VERSION. uv keeps one installation per
requirement and cadgen names its warm daemon after that installation, so the
server, every thread and every skill command share one daemon. In a checkout,
install requirements-dev.txt (the editable cadgen) and test in agent apps with
scripts/install/dev_install.py, which points both at the checkout.
models/ stays on main as plain files; nothing installs it.
scripts/github-workflows/check-builds.sh enforces the shipping contract on
every push: no tracked symlink, no .gitattributes rule that rewrites files at
checkout or changes the archive (so no Git LFS; claude.ai's plugin directory
refuses them), every tracked file under 5 MiB, no skill reaching into a repo root.
See the Releases section in CONTRIBUTING.md for the full flow, the resume
path, the rehearsal, and local/manual fallbacks.
Repo Map
skills/: agent skills and their references/scripts..claude-plugin/,.codex-plugin/,.cursor-plugin/,gemini-extension.json: agent plugin manifests. The repository root is the plugin package; its skills areskills/directly.models/: sample and durable CAD/robot-description fixtures.apps/web/: the CAD Viewer's React client (its backend iscadgen.viewer).apps/mcp/: the CAD app agent hosts render: tabs in Codex, cards in Claude Desktop (its server iscadgen mcp).packages/core:@text-to-cad/core, shared CAD/runtime/client code without React.packages/ui:@text-to-cad/ui, the shared FileViewer, renderers, controls and styles.packages/cadgen: the published distribution — STEP/GLB/topology generation, the skill CLI parsers, the CAD Viewer backend + client, and the Node/browser runtimes it executes.apps/docs/: documentation site, andapi.texttocad.dev(cadgen's version feed and the CAD app's consented analytics).tests/: root-owned test suites for skills, packages, viewer services, and repo-wide policy.scripts/: durable repo commands grouped by purpose.
Repo Rules
- Boundaries and design laws live in each package's README: read
packages/cadgen/README.md(the laws),packages/core/README.md,packages/ui/README.md,apps/web/README.md, andapps/docs/README.mdbefore changing generation, rendering, storage, layout, or public interfaces. - A README holds the laws; the mechanism each law constrains lives one link
away, and the README names the link. Read the README, then follow the one
link — not the tree. What exists:
packages/cadgen/:STORE.md(the store contract — sectioned, with a table of contents),SNAPSHOTS.md(snapshot--debugtimings).packages/core/docs/:render-pipeline.md,resource-ownership.md,tube-deformation.md.packages/ui/docs/:settings-ui.md(BINDING for any settings control),render-types.md,render-mode.md,lod.md,storage.md,backend.md.
- Ships-alone law:
packages/cadgen(the built PyPI wheel) works in isolation outside this repo, so its markdown must not refer to anything outside the package — enforced bytests/python/global/test_package_boundaries.py. Repo-development guidance for it goes inCONTRIBUTING.md. - The README and the docs site's homepage (its copy:
apps/docs/src/lib/content.ts) share their structure, install message and commands: change them together. The README says more: the steps to install it yourself, and fuller notes under each install (apps/docs/README.md). - Keep root guidance short. Put domain workflows, CLI details, and validation
policy in the relevant
skills/<skill>/SKILL.mdorreferences/file. - Keep relevant Markdown docs current when changing behavior, commands, or repo
layout, but do not bloat
AGENTS.md; use it only for durable repo-level rules and pointers. - Read
CONTRIBUTING.mdbefore committing, rebasing, resolving generated-file conflicts, or bumping release versions. - A skill must not import another skill, a
skills/root module, or a repository-root module, and must not addskills/, the repository root, or a sibling skill directory tosys.path,PYTHONPATH,NODE_PATH, or any other runtime lookup path. Skills are independent of each other, not of everything. - Shared runtime comes from the
cadgendistribution. A skill that uses it definescadgenandpythonin its SKILL.md as the launch command above, pinned toVERSION(the release stamps every pin); no skill installs cadgen any other way (norequirements.txtnaming it), because a second installation is a second daemon. Skills do not vendor it: a skill script is a thin entrypoint whose parser and behaviour live incadgen.cli. Playwright is a cadgen dependency and the first snapshot fetches its headless browser, so no skill has a browser step. cadgen carries the JavaScript it executes too (Node builders, the snapshot browser bundle, the CAD Viewer client), so a skill ships no runtime of its own. Not every skill needs cadgen (bambu-labs, dfam-check, dfm, gcode, sendcutsend, step-parts are cadgen-free); do not add the dependency to a skill that never invokes it. - Keep samples and manual CAD/robot-description validation artifacts under
models/. Automated tests must not read, build or import that sample corpus: generate small fixtures in fresh temporary directories or use tiny test-owned fixtures, with their own cache stores and cleanup. Repotmp/is fine. Enforced bytests/python/global/test_tests_are_self_contained.py. - Every test runs in CI. Each test file is reached by a runner under
scripts/test/, every runner is called by atest.ymljob on the changes that can break it, and a collector that finds nothing fails the run rather than reporting a group that never ran. A test no CI job runs is dead: wire it in or delete it. There are no manual-only test gates. Enforced bytests/python/global/test_ci_workspace_selection.py. - Tests and CI are short and succinct. Test a contract, a user flow or a fixed bug,
once, at the cheapest level that exercises the real path: a unit or jsdom test
first, a real browser (WebGL) only for what needs one. Await the condition, never
a fixed sleep or a wall-clock bound; a flaky test is fixed or deleted, never
retried. CI time is a budget: the
webjob stays within 7 minutes, and a change that lengthens any job says what it costs and why in its PR. - Benchmarks under
scripts/bench/are manual and their output is never committed: reports, logs, profiles and screenshots go to an ignoredtmp/. Only their pure helper units run in a test runner. - The Python floor is
requires-pythoninpackages/cadgen/pyproject.tomland nowhere else. Every cadgen source is parsed against that floor, so syntax newer than it fails here rather than atpip installtime on a user's interpreter; raising the declared minimum relaxes the check automatically. - Reserve
scripts/for durable repo commands. Do not write temporary, one-off, or local-only helper scripts there; usetmp/or/tmpinstead. - cadgen's packaged runtime (
_runtime/node,_runtime/browser,_runtime/viewer, and the file tracer every build loads,_runtime/native) is BUILT, never committed: the whole directory is gitignored and ships only inside the wheel. Build it with the one bundle entry point,scripts/bundle/bundle.sh;bundle.sh --checkbuilds it and asserts every required output. Callscripts/bundle/cadgen-runtime.shdirectly only when debugging one stage. - Never let a symlink reach the published tree. Agent installers disagree about
symlinks and one loses data silently: the Skills CLI dereferences them, Claude
Code preserves them, and Codex
plugin adddrops them with no error, shipping a skill with missing files.scripts/github-workflows/check-builds.shenforces this; do not relax it. - The CAD Viewer is
cadgen viewer: the server iscadgen.viewer(Python, inpackages/cadgen), the React client's source isapps/web/and its build ships in the wheel atcadgen/_runtime/viewer(built, never committed; a checkout servesapps/web/dist). The CAD, DXF and robot-description skills document that verb directly. Nothing incadgen.viewerimports the CAD kernel at module scope — the one kernel action, importing a foreign STEP, is a compile job in cadgen's build pool, never work the server process does. Keep repo-level tooling inscripts/, not underapps/web/. packages/corestays non-React. Shared FileViewer/renderers belong inpackages/ui; host workflow state belongs in apps. Apps never import another app and shared packages never import apps. Root npm workspaces consume compiled package exports; do not add source aliases or nested lockfiles. Preserve app UI/UX and functionality during restructuring; changes are pure refactors.- Shared UI must stay platform-agnostic. Apps implement environmental effects; shared features use injected capabilities and named extension slots. Before extending these interfaces, read the viewer host contract.
packages/cadgenis the whole distribution, not just the Python: artifact generation, the CLI parsers behind every skill command (cadgen/cli), the warm build daemon (cadgen/daemon), and the JS/SPA assets it executes (cadgen/_runtime, built byscripts/bundle/cadgen-runtime.sh). Skills consume it as an installed distribution.- Create lightweight shared Python packages under
packages/when a helper should not inherit heavier package dependencies. - Use path-targeted search, validation, and
git status; avoid broad scans over generated CAD artifacts unless the task requires them. - Treat
VERSIONas the canonical release version. Do not hand-edit duplicate package, plugin, lockfile, or Pythonpyproject.tomlversions; release preparation andscripts/bundle/bundle.shstamp them from the canonical version.
Environments
- Prefer
./.venv/bin/pythonfor CAD Python work. - Keep new branch checkouts and git worktrees lightweight by default. Do not
copy
.venv/ormodels/through.worktreeinclude; recreate.venv/inside the worktree only when Python dependencies are needed for the workflow. - In Codex or Claude Code worktrees, prefer the skill instructions and scripts
under the current worktree's
skills/directory over globally installed skills or plugins from another checkout. - Test skills and the plugin in an agent app with
scripts/install/dev_install.py <host>(CONTRIBUTING.md, "Test In Agent Apps"). One copy of the plugin per app: never the development install beside the published plugin, or beside the skills installed loose. - Install dependencies only for the workflow being changed.
- Do not commit
.venv/,node_modules/, caches,tmp/, local credentials, or printer config.
Checks
Run the smallest path-targeted check that covers the change. Use broad wrappers when touching shared surfaces or before handoff:
- Code tests:
scripts/test/test.sh(JS, then Python, then policy). - Focused runners:
scripts/test/test-js.sh,scripts/test/test-docs.sh,scripts/test/test-python.sh,scripts/test/test-global.sh.test-python.shtakes--select cadgen|viewer|skills|alland--print-weights;test-js.shtakes--select core|ui|web|mcp|all. Seescripts/README.md. - In GitHub Actions,
test.ymlruns one conditional job per concern. The graph, stable required check names and workspace install recipes are inCONTRIBUTING.md#ci. Core changes reach all consumers; UI reaches web; app changes do not run unrelated apps. Manual dispatch runs all jobs. - Canonical release version:
scripts/release/check-version.sh - Packaged runtime builds and is complete:
scripts/bundle/bundle.sh --check - CAD Viewer or shared packages: build exports with
npm run build:packages, thennpm --prefix packages/core test,npm --prefix packages/ui test,npm --prefix apps/web run test,npm --prefix apps/web run build. The Viewer is two languages andnpm run testcovers only the client — the backend's suite istests/python/packages/cadgen/viewer, run byscripts/test/test-python.sh. Touchingcadgen/viewer/means running that. - Docs site:
npm --prefix apps/docs run check - Targeted Python tests:
./.venv/bin/python -m unittest <changed test paths>
When a task changes what the bundlers consume, run scripts/bundle/bundle.sh
and confirm the change lands in the built runtime. There is nothing to commit:
_runtime/ is gitignored end to end, so what a reviewer reads is the source and
what a user gets is the wheel the release builds from it.
CAD Viewer
The app-facing playbook lives in apps/web/README.md: launcher contract
(reuse, ports, --new), dev vs prod, and the catalog/link-verification
gotchas. The repo-side half — the lightweight-worktree recipe and
root workspace dependencies — lives in CONTRIBUTING.md under "Viewer Development
In This Repo". Read them before starting, stopping, or debugging a Viewer.
Never stop an instance you did not start; packaged-runtime checks go
through scripts/bundle/bundle.sh.
Git
No Git LFS, and every file under 5 MiB: the repository root is the plugin, and
claude.ai's plugin directory refuses files a filter rewrites at checkout, so
heavyweight media stays out of the tree. Local hooks live in .githooks and
delegate build checks through scripts/git-hooks/pre-commit.
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.

