reflect-skills-from-me…
This skill should be used when the user asks to "reflect on skills from memory", "audit marketplace skills against memory",…
Writes OpenSCAD code and drives the `openscad` command-line compiler to produce STL/3MF/AMF/DXF/SVG/PNG outputs from parametric `.scad` models. This skill should be used when the user asks to design a 3D-printable part, generate a laser-cut 2D plate, render a preview image of a
$ npx -y skills add FradSer/dotclaude --skill use-openscad --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/use-openscadContext preview
The summary Claude sees to decide when to auto-load this skill.
Writes OpenSCAD code and drives the `openscad` command-line compiler to produce STL/3MF/AMF/DXF/SVG/PNG outputs from parametric `.scad` models. This skill should be used when the user asks to design a 3D-printable part, generate a laser-cut 2D plate, render a preview image of a
name: use-openscad description: Writes OpenSCAD code and drives the `openscad` command-line compiler to produce STL/3MF/AMF/DXF/SVG/PNG outputs from parametric `.scad` models. This skill should be used when the user asks to design a 3D-printable part, generate a laser-cut 2D plate, render a preview image of a CAD model, export STL for 3D printing, batch-render parametric variants, or convert between mesh formats. Invoked via "/hardware:use-openscad". user-invocable: true license: MIT metadata: version: "1.0"
Design parametric 3D and 2D parts in OpenSCAD and compile them to fabrication outputs with the `openscad` CLI. OpenSCAD is a functional code-based CAD language — modules and functions, CSG booleans, extrusion — ideal for an agent to write and iterate.
1. Understand what the user wants (a printable part, a laser-cut plate, a preview image, a mesh conversion) and pick the target format (STL/3MF/AMF for 3D printing, DXF/SVG for 2D cutting, PNG for preview). 2. Locate and verify the binary (see "Locating the binary"). Run `openscad_run --version` first to confirm it works. 3. Author the `.scad` model using `references/language.md` for syntax. Make dimensions `-D` variables when the user wants parametric control from the command line. 4. Compile with the right flags from `references/cli.md`. Use `references/workflows.md` for end-to-end recipes and `references/design.md` for printability rules. 5. After STL/3MF export, scan stderr for manifold warnings (see CRITICAL rules) before declaring success.
| User wants | Flags | Reference | |---|---|---| | STL for 3D printing | `--export-format binstl -o out.stl` | `references/cli.md` | | 3MF / AMF | `-o out.3mf` | `references/cli.md` | | 2D DXF / SVG (laser cut) | `-o out.dxf` | `references/cli.md` | | Preview PNG | `--preview --imgsize W,H --viewall --autocenter` (`--render` for accurate non-preview) | `references/cli.md` | | Parametric variants | `-D var=val` (repeatable) | `references/cli.md` | | Batch render | shell loop over `-D` values | `references/workflows.md` | | Mesh conversion (STL→3MF) | `import()` in a re-export `.scad` | `references/workflows.md` | | Language syntax | modules, functions, CSG, extrusion | `references/language.md` | | Printability rules | walls, overhangs, clearance | `references/design.md` |
# Resolve the OpenSCAD binary — local binary or Docker container
__openscad_resolve() {
# 1. macOS .app bundle
local mac="/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD"
if [[ -x "$mac" ]]; then echo "local:$mac"; return; fi
# 2. PATH
if command -v openscad &>/dev/null; then echo "local:openscad"; return; fi
if command -v openscad-nightly &>/dev/null; then echo "local:openscad-nightly"; return; fi
# 3. Docker (image must exist locally)
if command -v docker &>/dev/null; then
local img="${OPENSCAD_DOCKER_IMAGE:-openscad-cli}"
if docker image inspect "$img" &>/dev/null 2>&1; then
echo "docker:$img"
return
fi
fi
echo ""
}
OPENSCAD_TARGET="$(__openscad_resolve)"
if [[ -z "$OPENSCAD_TARGET" ]]; then
echo "ERROR: OpenSCAD not found." >&2
echo " Install locally: brew install openscad (macOS) or apt install openscad (Linux)" >&2
echo " Build Docker: docker build -t openscad-cli '${CLAUDE_PLUGIN_ROOT:-.}/scripts/docker/openscad/'" >&2
exit 1
fi
# Run wrapper — transparently handles local binary vs Docker
openscad_run() {
local mode="${OPENSCAD_TARGET%%:*}" # "local" or "docker"
local target="${OPENSCAD_TARGET#*:}" # binary path or image name
if [[ "$mode" = "docker" ]]; then
docker run --rm -v "$PWD:/work" -w /work "$target" "$@"
else
"$target" "$@"
fi
}
openscad_run --versionThe `openscad_run` function wraps every invocation. Usage is ident
A curated collection of 22 plugins for Claude Code, providing specialized agents, skills, and automation tools for development and productivity workflows.
This skill should be used when the user asks to "reflect on skills from memory", "audit marketplace skills against memory",…
Use acpx as a headless ACP CLI for agent-to-agent communication, always inside an isolated SubAgent. Use when running coding…
Delegates a self-contained task to a Google Gemini Managed Agent (Antigravity) running in a remote sandbox with code execution,…
Runs a deep-research query on Google Gemini's deep-research managed agent and returns a cited report. This skill should be used…
This skill should be used when the user asks to "understand a codebase", "get code context", "research a library", "explore a…
Execute this when the user requests code context for a repository, library, or any natural-language code/technology question…