← Commit history

Initial commit: skill/kicad-export-molecule

Drew Owens ·cf1f924816 ·3mo ago
2 files changed +92
README.mdadded+36
@@ -0,0 +1,36 @@+# kicad-export-molecule++Agent skill: ship a molecule from the user's **local KiCad** to the Adom wiki+and into their Hydrogen account, in four verified stages:++1. **Export** — KiCad 10 `kicad-cli pcb export step --subst-models` on the+   laptop via the adom-desktop KiCad bridge (3D models only resolve there),+   plus optional white silkscreen PNGs; pulled to the container.+2. **Convert** — OCCT molecule mode (`service-occt` / step2glb service):+   MP-marker anchoring, gold machine pins, silk overlay, and the+   footprint + symbol JSON with per-pad wire-attach Z.+3. **Publish** — wiki component package (`adom-wiki pkg publish` ++   `repo push`) carrying the GLB + board + footprint + symbol, so imports+   never regenerate anything.+4. **Import** — handoff to the `adom-molecule-import` skill+   (`adom-molecule create --glb ... --no-optimize`).++The skill is gate-driven: preflight checks (bridge up, KiCad 10, MP1-MP4+markers, locally-resolving 3D models) and a post-conversion stats table+(`anchored`, `footprint_applied`, `contact_z`, `warnings[]`) that stop a+degraded run before it pollutes the wiki.++## Install++```bash+adom-wiki pkg install adom/kicad-export-molecule+```++Pulls `adom/adom-desktop` and `adom/adom-molecule` as dependencies.++## Siblings++- `fusion-export-molecule` — same job from Fusion 360+- `altium-export-molecule` — same job from Altium (via KiCad's importer)+- `adom-molecule-import` — the import half (ships with adom-molecule)+- `kicad-to-molecule` — make a plain PCB molecule-ready first
page.jsonadded+56
@@ -0,0 +1,56 @@+{+  "slug": "kicad-export-molecule",+  "version": "1.0.0",+  "type": "skill",+  "description": "Ship a KiCad molecule to the Adom wiki: local KiCad STEP export via the adom-desktop bridge, OCCT molecule conversion (anchored GLB + footprint + symbol), wiki component publish, and handoff to adom-molecule-import for Hydrogen registration.",+  "tags": [+    "molecule",+    "kicad",+    "export",+    "hydrogen",+    "skill"+  ],+  "dependencies": {+    "adom/adom-desktop": "^1.9.0",+    "adom/adom-molecule": "^1.1.3"+  },+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "hero": {+    "type": "billboard",+    "headline": "KiCad board to wiki molecule",+    "subhead": "export, OCCT-convert, publish, and import to Hydrogen in one flow",+    "screenshot": "docs/shot.png"+  },+  "discovery_triggers": [+    "publish my kicad molecule",+    "kicad molecule to the wiki",+    "upload molecule from kicad",+    "kicad to hydrogen",+    "ship this board as a molecule",+    "export molecule from kicad",+    "kicad export molecule"+  ],+  "discovery_pitch": "Take a molecule designed in local KiCad all the way to the wiki and a Hydrogen account: bridge-driven STEP export, OCCT molecule pipeline, component publish, import handoff.",+  "sample_prompts": [+    {+      "label": "Publish a molecule",+      "prompt": "Publish my KiCad molecule ABC to the wiki and import it into my Hydrogen account"+    },+    {+      "label": "Ship a board",+      "prompt": "Ship piprobe from my KiCad to Hydrogen"+    },+    {+      "label": "Export only",+      "prompt": "Export my kicad board as a molecule bundle and publish it"+    }+  ],+  "org": "adom",+  "author": {+    "name": "Drew Owens",+    "email": "[email protected]"+  }+}\ No newline at end of file