Skip to content
cccskills
FreePublished on GitHub

pb-pcb-to-case

From a KiCad board to a parametric enclosure that fits it: ERC and DRC clean, board dimensions extracted, an OpenSCAD case with your clearance, Gerbers exported, fab hand-off only after GO. Use for "PCB to enclosure", "case for this board", "KiCad to OpenSCAD case".

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

PCB to enclosure

What you get: a DRC-clean board and a parametric enclosure that fits it, with Gerbers ready for a fab order that you place after your GO. Availability: MCP-only (kicad, openscad MCP servers) plus 3 skills from the bdb-hardware-pcb repo (not shipped). Without them the run stops at preflight.

Inputs

  • kicad_project — path to the KiCad project (.kicad_pro, .kicad_pcb, .kicad_sch)
  • clearance_mm — gap between board and case wall on every axis
  • mounting_style — for example standoffs, rails or snap-fit

Steps

  1. Preflight — get_pcb_statistics on kicad; get_capabilities on openscad; for pcb-validation-dfm-signoff, pcb-constraint-definition and code-first-hardware-design, the skill is listed in the harness skill list, or a SKILL.md for it exists under the harness skills dir — ~/.claude/skills, ~/.agents/skills, ~/.codex/skills, ~/.config/opencode/skills. MCP tools may be deferred in the harness: try to load the tool once via the harness MCP list before declaring it missing. MCP tool not loaded or call errors → stop with "Missing MCP: <server> (<tool> unavailable). Check mcpServers.<server> in your harness config." A skill file absent → stop with "Missing skill: <name> (bdb-hardware-pcb repo, not shipped by AOS). Install it and rerun." Write nothing except the run log on a stop — all probes answered
  2. Ask — kicad_project, clearance_mm, mounting_style, project slug → run log and hw/<project>/ — all answered, project files exist
  3. pcb-validation-dfm-signoff + godmode-hardware-pcb — run_erc and run_drc (details via get_erc_violations and get_drc_violations) → violation list in the run log — zero errors; any error stops the run, the board is not edited by this playbook
  4. pcb-constraint-definition — board outline, mounting holes and connector positions (get_pcb_statistics, list_pcb_footprints) → hw/<project>/dims.json (length, width, thickness, holes, connector edges, all in mm) — all values present; a missing value is asked of the human, never guessed
  5. code-first-hardware-design + openscad — dims.json, clearance_mm, mounting_style → case.scad (parameters at the top, driven by dims.json), then create_model_from_scad (returns the model_id), then STL and a preview via export_model and get_model_preview with that model_id → case.stl — inner dims >= board dims + clearance_mm on every axis, recomputed from dims.json and logged — stops for approval
  6. Gerbers — export_gerber → hw/<project>/gerbers/ — files exist; run_drc again with zero errors on the exported state
  7. [GO] fab hand-off — hw/<project>/fab.md with the Gerber list, board dimensions, layer count and case STL, shown in full. The run stops here until the human types GO. No fab ordering tool exists: the GO releases only the hand-off file and the order is placed manually by the human. — fab.md written

Run log: production_artifacts/pb-pcb-to-case-<date>.md in the start directory, never committed

Rules

  • Anything other than the literal GO (case-insensitive) is not a GO; a GO covers only that one step, one time.
  • A failed check stops the run: write the failure into the run log and report. No silent retries.
  • GO is by contract in every harness. The go-gate hook is only a backstop on Claude Code, OpenCode and agy (Codex: unverified; Cursor, Kimi: none). A missing hook is never permission to proceed.
  • Write one run-log line per step as it completes (N. done|skipped|failed — artifact — check result) and WAITING FOR GO: <step> at each gate.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.

The English summary is being prepared. Showing the original description.

hybridlabor-api/aos6Updated Oct 16, 2026

See all skills by hybridlabor-api

Report a problem with this skill