archibate/dotfiles-opencode / skills/openscad
openscad
VerifiedCreate and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.1 KB |
| examples/parametric_box.scad | other | 2.6 KB |
| examples/phone_stand.scad | other | 3.1 KB |
| tools/common.shexecutable | script | 1.1 KB |
| tools/export-stl.shexecutable | script | 1.1 KB |
| tools/extract-params.shexecutable | script | 4.3 KB |
| tools/multi-preview.shexecutable | script | 1.4 KB |
| tools/preview.shexecutable | script | 1.6 KB |
| tools/render-with-params.shexecutable | script | 2.1 KB |
| tools/validate.shexecutable | script | 954 B |
tools/common.sh
View on GitHub#!/bin/bash
# Common utilities for OpenSCAD tools
# Find OpenSCAD executable
find_openscad() {
# Check common locations
if command -v openscad &> /dev/null; then
echo "openscad"
return 0
fi
# macOS Application bundle
if [ -d "/Applications/OpenSCAD.app" ]; then
echo "/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD"
return 0
fi
# Homebrew on Apple Silicon
if [ -x "/opt/homebrew/bin/openscad" ]; then
echo "/opt/homebrew/bin/openscad"
return 0
fi
# Homebrew on Intel
if [ -x "/usr/local/bin/openscad" ]; then
echo "/usr/local/bin/openscad"
return 0
fi
return 1
}
# Check if OpenSCAD is available
check_openscad() {
OPENSCAD=$(find_openscad) || {
echo "Error: OpenSCAD not found!"
echo ""
echo "Install OpenSCAD using one of:"
echo " brew install openscad"
echo " Download from https://openscad.org/downloads.html"
exit 1
}
export OPENSCAD
}
# Get version info
openscad_version() {
check_openscad
$OPENSCAD --version 2>&1
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |