跳到正文
cccskills
免费在 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".

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

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

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

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.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

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.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

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

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

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.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

查看 hybridlabor-api 的全部技能

报告此技能的问题