JiamingShi-JsPhys/3d-fabric ↗★ 2

3d-fabric

The complete 3D modelling and 3D-printing toolchain in one package: natural-language part building through the local SolidCraft CLI, plus reading, editing, measuring and previewing a design, and print-quality mesh inspection and repair.

Package
3d-fabric
Compatibility
Unverified
Version
1.1.1
License
MIT
Last updated
Nov 12, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JiamingShi-JsPhys/3d-fabric

3d-fabric

A print quality gate for 3D modeling and manufacturing workflows, with 30 Blender skills included.

You do not need to prepare a validation environment yourself. Seven core CAD actions and thirty creation skills ship with the repository: natural language to CAD modeling (SolidCraft), mesh watertightness and normal orientation detection, non-manifold edge validation and automatic repair, B-rep volume measurement, snapshot rendering, and organic and hard-surface modeling, materials, lighting, cameras, rendering, and animation. All inspection and repair features run independently and enter the generation-to-print validation pipeline as shipped.

English · 简体中文

Version: 1.1.1 | CAD actions: 7 | Bundled Blender skills: 30 | Verified against: SolidCraft 0.30.1

Install SolidCraft first, then this plugin. The Blender half also needs a local Blender and a Blender MCP server. Both steps, every platform's command and the self-check are under Installation.


Security & Open Source Statement

Disclaimer: This repository is a community plugin written to automate a 3D-modelling workflow. It is not affiliated with, sponsored by, or endorsed by the SolidCraft project. It contains no SolidCraft source code and bundles none of its binaries or assets; SolidCraft must be installed separately by the user. The only SolidCraft material reproduced here is the project's four agent reference documents, copied verbatim under its MIT licence with the copyright notice and NOTICE intact — see Bundled third-party material.

The plugin never sends your model anywhere. It makes no network requests, runs no eval, and its only subprocess is the locally installed solidcraft-cli that you already have.


Why 3d-fabric?

An agent can write a parametric CAD script. It cannot tell whether the result is printable — and a printable result is not the same thing as a built one. SolidCraft reports ok for a cut that missed the part, exit code 0 does not imply that a file was written, and a slicer rejects a mesh that closes nowhere. The tools that answer those questions are usually separate: a modelling skill, an audit skill, a viewer, and a patching script for the broken STL someone emailed you. Each covers a slice, and none of them report in the same shape, so an agent has to reconcile several verdicts and a person has to remember which one to trust.

3d-fabric addresses this in two parts, and both are part of the same repository.

The bridge converts between the two languages. The agent speaks natural language; SolidCraft speaks a JSON command list. scripts/solidcraft.py finds the CLI wherever it is installed (--solidcraft, SOLIDCRAFT_CLI, SOLIDCRAFT_HOME, PATH, or the vendor's default folders), verifies it with --version so a stale shim cannot pass, runs the script with --out, and checks that every promised file exists and is non-empty. The same bridge answers questions about a design someone else made: script turns a .sc back into a command list, model --in replays a patch against it, measure reads its volume, mass and topology out of the B-rep, and snapshot renders it to PNG. Exit code, stderr and the per-step results list all land in one report.

The gate supplies the verdict the bridge cannot give itself. scripts/engine.py measures what a slicer cares about: watertightness, winding consistency, normal orientation, non-manifold edges, boundary loops and their count, degenerate faces, bounds and signed volume — every closed shell checked on its own, so a small inside-out part cannot hide behind a large correct one. The verdict is one of ready_to_print, needs_repair or blocked, and every defect carries a code, a severity and a count. A model that fails is never reported as a success.

Which half to use. A dimensioned, printable part is CAD: run.py and SolidCraft. Something whose silhouette, surface or motion is the point is Blender: the bundled skills, which need a local Blender and a Blender MCP server. The two share one deliverable path — a Blender mesh reaches the printer through run.py --action inspect and repair on an exported STL.

The halves are deliberately separable: inspect and repair do not require SolidCraft at all. Meshes that came from a scanner, a download or another program stay checkable on a machine that has never installed a CAD application.


Bundled third-party material

references/solidcraft/ holds the four agent reference documents SolidCraft publishes for its own MCP server — modeling, editing, checking and mechanisms — together with the small helper scripts and design template that ship beside solidcraft-checking. The plugin's skill reads them for command shapes, plane axes, ids, reply sizes and the traps that make a build succeed with the wrong geometry.

What this is, precisely:

  • Verbatim. Every file is byte-identical to upstream github.com/tangency-labs/solidcraft at branch main (fetched 2026-11-06). Nothing was rewritten, trimmed or merged. Per-file SHA-256 values are listed in references/solidcraft/README.md.
  • Reference text, not skills. Their YAML frontmatter is part of the upstream file. Nothing in that folder is registered as a Claude Code skill, and run.py never executes any of it.
  • MIT, with the notice kept. SolidCraft is dual-licensed MIT OR Apache-2.0; this copy is taken under MIT. Copyright (c) 2026 SolidCraft contributors. references/solidcraft/LICENSE-MIT carries the full MIT text and NOTICE the upstream attribution. Those files remain the contributors' copyright and are not covered by 3d-fabric's own MIT grant; everything outside references/solidcraft/ is Jiaming Shi's work under MIT.
  • Optional. Delete the folder and run.py still works — you only lose the built-in command reference and fall back to solidcraft-cli commands.

The upstream text is written against SolidCraft's MCP tool names (batch, execute, measure). The command names inside {"commands": [...]} are the same ones; the MCP call names are not accepted by solidcraft-cli run. Where the two disagree, solidcraft-cli commands wins.


The Blender half

Thirty skills ship in skills/, copied verbatim from RobLe3/cc-blender-skill at commit a2634b5 (MIT). Each declares its Blender MCP tools in allowed-tools, so it activates only where a Blender MCP server is connected.

SkillCovers
text-to-blenderthe router: picks the right sub-skill, the MCP backend guide, assembly order
blender-modelingmeshes, primitives, modifiers, bmesh, hard-surface work
blender-materialsPrincipled BSDF, metallic switch, coat/sheen/SSS/transmission, procedural patterns
blender-lightingthree-point setups, HDRI, colour temperature, light groups
blender-camerasfocal length, depth of field, composition, animated cameras
blender-renderingCycles vs EEVEE, samples, denoising, AgX/Filmic, output formats
blender-animationkeyframes, F-curves, easing, shape keys, drivers, NLA
blender-exportglTF/GLB, FBX, OBJ, USD, STL, collision hulls, normal baking
blender-uv-texturingunwrap, atlas mapping, projection, baking, decals
blender-pro-workflowthe order to assemble a scene, critique protocol, time budgets
blender-skill-harmonizerprecedence and handoffs when several of the above apply
orbital-hud-motioncircular HUD, aura rings, orbit arcs around a subject
animation-quality-gatecontact sheets, flicker and silhouette checks before accepting a pass

The other seventeen reconstruct a model from supplied references — the family that makes "match this sheet exactly" possible:

SkillCovers
reference-to-3drebuild from reference sheets, orthographic views, brand or mascot art
wireframe-to-3dorthographic wireframe drawings → model, exported as glTF/GLB
mascot-logo-reconstructionfail-gated, source-locked mascot / logo / avatar rebuild
orthographic-registrationregister front/side/back/top views into one coordinate contract
multiview-constraint-solverdecide whether one rigid model can satisfy every view; emit constraints (no Blender tool needed)
multiview-fit-loopcompare-adjust-repeat fitting against the templates
fit-repair-optimizerturn fit reports into a repair queue
landmark-fit-repairrepair against named landmarks (tips, corners, eyes, rim thickness)
reference-analysis-validatorvalidate the supplied references before calling a rebuild 1:1
reference-look-calibrationcalibrate materials, light, crop, glow and HUD styling against the original
source-part-segmentationplan how a reference splits into parts (no Blender tool needed)
contour-to-meshbuild surfaces from extracted contours and masks
atlas-uv-fittingmap each source part to its own atlas rectangle
closed-surface-uv-coveragecover caps and sidewalls of closed or extruded assets
texture-driven-mesh-fittingreshape geometry to texture or decal contours
texture-state-animationtexture-state transitions without crossfades or popping
quality-refinement-autoloopself-refine when a result misses the bar

What this half needs: Blender installed on the machine, and one Blender MCP server connected (mcp__blender__* from ahujasid/blender-mcp, or mcp__blender_official__*). Without them the CAD half still runs; the Blender skills say what is missing instead of describing a render they did not make.

Not edited here. They are upstream text; routing and local advice live in skills/3d-fabric/SKILL.md and AGENTS.md. skills/vendored.json records the upstream commit date and a SHA-256 per file, and tests/test_bundled_skills.py fails if a file and its hash disagree.


How a run flows

run.py is a thin CLI over seven actions. probe is the gate on the environment; model, script, measure and snapshot need it, and inspect and repair do not.

flowchart LR
    NL["Natural language request"] --> AG["Host agent
writes a SolidCraft script"]
    AG --> PROBE{"probe
CLI found and answers --version?"}
    PROBE -->|"no"| STOP["UNVERIFIED
install SolidCraft first"]
    PROBE -->|"yes"| RUN["model
solidcraft-cli run --out"]
    EXIST["Existing design
.sc / .step"] --> READ["script → commands
measure → mass, volume
snapshot → PNG
model --in → edited part"]
    READ --> RUN
    RUN -->|"exit 1"| FAIL["FAIL
error: step N (cmd)"]
    RUN -->|"file written"| INSP["inspect
watertight / manifold / normals"]
    INSP -->|"ready_to_print"| PASS["PASS"]
    INSP -->|"needs_repair"| REP["repair
then inspect again"]
    EXT["External mesh
scan, download, other CAD"] --> INSP

Three things the diagram makes explicit:

  • probe is the only gate on the environment. It accepts a CLI only after --version exits 0, so a stale shim on PATH is rejected rather than used. Four actions need it; inspect and repair do not.
  • A written file is checked, not assumed. SolidCraft exits 0 without exporting when the command list did not include the export, so model verifies that every promised file exists and is non-empty and turns a silent run into FAIL.
  • The CAD path and the external-mesh path end at the same gate. A part this plugin built and an STL from a scanner are judged by the same inspect, the same defect codes and the same three verdicts.

A built model yields three files side by side: the mesh (bracket.stl), an editable design (bracket.sc) and the exact script that produced it (bracket.solidcraft.json). Editing the .sc in SolidCraft and re-exporting, or re-running the script, both reproduce the part — and script recovers that same command list from a design that arrived without one.


Installation

Install the whole thing as one plugin: run.py, scripts/ and skills/ share one engine, and a scattered copy fails.

Prerequisite: install SolidCraft

3d-fabric ships no solid kernel; it drives a SolidCraft installation you already have. SolidCraft is open source and free (MIT / Apache-2.0 dual licence) and has to be installed separately:

PlatformDownload
Windowssolidcraft-windows-x64.msi
macOSsolidcraft-macos-universal.dmg (Apple silicon and Intel)
Linuxsolidcraft-linux-x86_64.AppImage, or sudo snap install solidcraft
  • Everything else — ARM64 and 32-bit builds, portable zip, .deb, .rpm, Flatpak — is on the downloads page.
  • The Windows downloads are not code-signed yet, so SmartScreen stops you once: More info → Run anyway.
  • The browser build at needs no install, but it exposes no solidcraft-cli, so this plugin cannot use it.

solidcraft-cli --version printing a version line is enough; if it is not on PATH, point at it with --solidcraft, SOLIDCRAFT_CLI or SOLIDCRAFT_HOME — details in docs/INSTALL_COMMANDS.md.

Only four actions need it: model, script, measure, snapshot. inspect and repair do not — a mesh from a scanner, a download or another CAD package stays checkable and repairable on a machine that has never installed SolidCraft.

Prerequisite: Blender (only if you want that half)

The thirty Blender skills need two things, both from the Blender ecosystem and neither bundled here:

  1. A local Blender — (4.x is fine)
  2. A Blender MCP server, exposing Blender as the mcp__blender__* or mcp__blender_official__* tool set

With either missing, the Blender skills say what is missing rather than describing a render they did not make. The CAD half is unaffected — run.py never touches Blender.

Method 1: install from the plugin marketplace by URL

Every host has a plugin marketplace of its own. Register this repository's Git URL and install the plugin it lists (registering twice is harmless — the second call reports it is already known).

https://github.com/JiamingShi-JsPhys/3d-fabric

An unpublished, renamed or moved repository changes nothing: the marketplace manifest uses source: "./", a relative path, so the line above can be replaced with the folder you already have — installing never touches the network.

Method 2: install with commands

Claude Code, Codex, dsh and CodeBuddy each take one plugin command; Cursor, Windsurf, Cline, Continue, Roo Code, GitHub Copilot and opencode read rule files, and one script writes them all. Every host's full command, every install.py flag and the optional capabilities are on this page: docs/INSTALL_COMMANDS.md.

Method 3: let your AI install it

Please visit the GitHub repository `https://github.com/JiamingShi-JsPhys/3d-fabric`, clone it, and run `python install.py --check --deps`. If your host has a plugin system, install the whole set as a single plugin instead; that script covers the hosts that read rule files.

Warning: an AI that copies run.py without scripts/ can scatter the files into unrelated directories. Modules import each other, and a loose copy fails outright. If you want the complete plugin, use Method 1.


Quick