stl-cube-scaffold
Analyze an STL mesh (AABB + approximate OBB) and generate a single connected STL that includes an L×L×L cube scaffold (default 100mm) plus connectors, so the final solid's OBB is locked to the target cube size for packing/measurement checks.
Best use case
stl-cube-scaffold is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyze an STL mesh (AABB + approximate OBB) and generate a single connected STL that includes an L×L×L cube scaffold (default 100mm) plus connectors, so the final solid's OBB is locked to the target cube size for packing/measurement checks.
Teams using stl-cube-scaffold should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/stl-cube-scaffold/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How stl-cube-scaffold Compares
| Feature / Agent | stl-cube-scaffold | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyze an STL mesh (AABB + approximate OBB) and generate a single connected STL that includes an L×L×L cube scaffold (default 100mm) plus connectors, so the final solid's OBB is locked to the target cube size for packing/measurement checks.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# STL Cube Scaffold (AABB/OBB, default 100mm) ## Goals - Compute an STL's AABB and an approximate OBB (random rotation sampling search) - Generate a single-piece STL: original model + L×L×L cube frame/pillars + connectors (default L=100mm) ## Prerequisites Python 3.8+ with: `numpy`, `scipy`, `manifold3d` ## Workflow ### 1) Analyze the input STL (optional) ```bash python scripts/stl_cube_support.py <in.stl> --analyze python scripts/stl_cube_support.py <in.stl> --analyze --target <edge_mm> ``` If the script reports that the model cannot fit into the target cube (given the current search result), stop and confirm next steps with the user (e.g. increase `<edge_mm>`, or increase `--samples/--search-points` and retry the search). ### 2) Export a cube-scaffolded STL (recommended: `frame`, default L=100mm) ```bash python scripts/stl_cube_support.py <in.stl> \ --export-stl <out.stl> \ --scaffold frame \ --target <edge_mm> ``` - If you omit `--target`, it defaults to `100` (mm). - Check the output: - `AABB dim: <edge_mm> x <edge_mm> x <edge_mm> mm` - `Connected components: 1` ### 3) Tuning options | Option | When to use | |--------|-------------| | `--connector-penetration`, `--connector-count`, `--connector-thickness` | Multiple shells (`Connected components > 1`) | | `--samples`, `--search-points` | Search didn't find a good orientation (can't fit into cube) | | `--objective max` | Alternative optimization objective | | `--scaffold frame` | Lock OBB to cube size (default, recommended) | ## How It Works - **AABB vs OBB**: An AABB (axis-aligned bounding box) depends on the model's orientation. An OBB (oriented bounding box, minimum-volume sense) is invariant under global rotation/translation. - **Why add an L×L×L cube frame/pillars**: By unioning an explicit L×L×L frame with the model, the final solid's minimum-volume OBB is forced to L×L×L. - **Why connectors must intersect the model**: If the scaffold is disconnected from the original mesh, slicers and mesh tools will treat it as multiple shells/parts. Connectors must have a volumetric intersection (not just touching) with the model to ensure the boolean union becomes a single connected solid.
Related Skills
surface-theme-scaffold-gen
Generate Clef Surface design system theme scaffolds including palette configuration , typography scale , motion definitions , elevation scale , and light dark theme manifests Follows WCAG accessibility guidelines for contrast ratios
skills-scaffolding
Guide for creating effective Claude Code skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
scaffold-project
Bootstrap or review project-level context primitives for Claude Code. First run creates .claude/primitives/ and .claude/skills/project-context/. Re-runs review existing primitives against the codebase, auto-update what changed, and flag what's stale. Invoke with '/scaffold-project' or say 'scaffold project', 'set up project context', 'review project context'.
project-scaffold
Generate project boilerplate from scaffold templates. Use when creating a new project after stack selection. Triggers on: scaffold project, generate boilerplate, create from template.
plugin-scaffolder
Scaffolds complete Claude Code plugin structures with all necessary directories, manifest, and documentation. Activates when user wants to create a new plugin, package features together, or prepare for marketplace distribution. Creates plugin.json, directory structure, and starter documentation. Use when user mentions "create plugin", "new plugin", "scaffold plugin", "plugin structure", or "share via marketplace".
m365-agent-scaffolder
Quickly scaffolds new Microsoft 365 Copilot declarative agent (M365 agent, copilot agent, agent, declarative copilot, copilot) projects using ATK CLI. Collects project information and creates the initial project structure. Use only when creating a new empty M365 Copilot agent project from scratch.
electron-scaffold
Scaffold a native-looking, effective Electron app with best practices baked in. Creates a production-ready Electron application with security hardening, modern tooling, proper IPC patterns, auto-updates, native UI elements, and optimal build configuration. Use this skill when users want to start a new Electron project or modernize an existing one.
create-plugin-scaffold
Create a new Cursor plugin scaffold with a valid manifest, component directories, and marketplace wiring. Use when starting a new plugin or adding a plugin to a multi-plugin repository.
awesome-copilot-root-meta-agentic-project-scaffold
Meta agentic project creation assistant to help users create and manage project workflows effectively. Use when: the task directly matches meta agentic project scaffold responsibilities within plugin awesome-copilot-root. Do not use when: a more specific framework or task-focused skill is clearly a better match.
awesome-copilot-meta-agentic-project-scaffold
Meta agentic project creation assistant to help users create and manage project workflows effectively. Use when: the task directly matches meta agentic project scaffold responsibilities within plugin awesome-copilot. Do not use when: a more specific framework or task-focused skill is clearly a better match.
api-scaffolding
Quickly scaffold production-ready FastAPI endpoints for client workflows. Use when building new APIs for QuickBooks, ShipStation, or webhook integrations.
anchor-project-scaffold
Set up a production-ready Anchor workspace: program/client layout, env config, testing, and build hygiene. Use when starting new Anchor projects or re-baselining repos.