← Commit history
Cargo.toml+1−1
@@ -1,6 +1,6 @@ [package] name = "adom-lbr"-version = "1.3.0"+version = "1.3.1" edition = "2021" description = "EAGLE .lbr generator, linter, and validator for Fusion 360 Electronics. Converts KiCad symbols + footprints to complete EAGLE libraries." 
VERSION+1−1
@@ -1 +1 @@-1.3.0\ No newline at end of file+1.3.1\ No newline at end of file
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-lbr",-  "version": "1.3.0",+  "version": "1.3.1",   "type": "app",   "description": "KiCad \u2192 EAGLE .lbr generator for the whole EAGLE family (Fusion 360 / Altium / OrCAD), real-footprint accurate, with 3D-model handoff. Bidirectional KiCad converter + 7-check linter. Includes a focused fusion-export sub-skill.",   "dependencies": {},
page.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-lbr",-  "version": "1.3.0",+  "version": "1.3.1",   "type": "app",   "description": "KiCad → EAGLE .lbr generator for the whole EAGLE family (Fusion 360 / Altium / OrCAD), real-footprint accurate, with 3D-model handoff. Bidirectional KiCad converter + 7-check linter. Includes a focused fusion-export sub-skill.",   "dependencies": {},
skills/fusion-export/README.md+75
@@ -66,5 +66,80 @@ adom-lbr-owned bookkeeping. | `bind-3d` rejected the URN | self-uploaded → `--wip-urn`; managed → `--urn` | | 3D offset / wrong pin 1 | run chipfit; set `placement` in the sidecar before FINISH | +## Drawing the 3D chip outline onto the symbol — `--symbol-art`++adom-symbol does a lot of work to produce a **vector line-drawing of the chip**+(`<mpn>-3d-outline-*.svg`). `--symbol-art` puts that drawing **on the schematic+symbol**, so the part shows a little picture of itself in Fusion / Altium / OrCAD.++```bash+adom-lbr generate --sym part.kicad_sym --fp part.kicad_mod \+  --symbol-art part-3d-outline.svg -o part.lbr+```++### The format — SVG polylines → EAGLE wires++The outline SVGs are already **flattened polylines** (no beziers) in a 320×320+pixel space. adom-lbr transcribes them into the symbol:++- each `<polyline>`/`<polygon>` point-run → a chain of EAGLE `<wire>`s on **layer 94**,+- SVG is Y-down, EAGLE is Y-up → **Y is negated**,+- the drawing is **decimated** (dense curve sampling collapsed) and **centred ++  scaled** to the symbol body.++The transcription is pixel-faithful — here's adom-symbol's source outline next to+exactly what lands on the symbol:++![Source outline SVG vs the same outline transcribed onto the symbol as wires](symbol-art-transcribe.png)++### Matching adom-symbol's size (the iterations)++adom-symbol sizes the outline to a **small centred icon** (~⅓ of the body) so it+doesn't crowd the pins/labels. The first pass drew it too big; tuning the fit to+**0.38× the body's smaller side** matches adom-symbol's own placement:++![adom-symbol's default symbol render vs adom-lbr's matched 0.38x placement](symbol-art-sizing.png)++> **Standing rule:** always match what adom-symbol gives you as closely as you can.+> If the match drifts, the real fix is a tighter contract from adom-symbol (emit the+> outline already in symbol mm-space). See [../../docs/ROADMAP.md](../../docs/ROADMAP.md).++Tune per-part with `--symbol-art-scale <frac>` (default `0.38`; higher = bigger).++### Pitfall — a too-detailed outline bloats the library++A detailed outline is a *lot* of wires. The `-blueprint` variant ≈ **3000 `<wire>`s+/ ~300 KB** for one part — that bloats the `.lbr` and can lag Fusion's symbol+editor. So the tool **warns the AI in-band** and tells it to pass a simpler outline:++![Light outline gets a friendly note; heavy outline triggers a WARN to use a simpler one](symbol-art-hints.png)++Rule of thumb: `-bold` / `-thin` (~120 KB) for normal use or batching a whole+library; `-blueprint` (~300 KB) only when you want the full iso wireframe on one+showcase part.++### Commands the AI can call++```bash+# default look (matches adom-symbol, light outline)+adom-lbr generate --sym P.kicad_sym --fp P.kicad_mod --symbol-art P-3d-outline-bold.svg -o P.lbr++# bigger icon+adom-lbr generate --sym P.kicad_sym --fp P.kicad_mod --symbol-art P-3d-outline-bold.svg --symbol-art-scale 0.55 -o P.lbr++# full detail (heavy — only when you want it)+adom-lbr generate --sym P.kicad_sym --fp P.kicad_mod --symbol-art P-3d-outline-blueprint.svg -o P.lbr+```++### Sample prompts (what a user says → what the AI runs)++- *"Make a Fusion library for this part and put the chip drawing on the symbol."*+  → `generate --fp … --symbol-art <mpn>-3d-outline-bold.svg`+- *"The chip picture on the symbol is too big."* → re-run with `--symbol-art-scale 0.3`.+- *"My .lbr is huge / the symbol editor is laggy."* → the heavy-art WARN already told you:+  swap `-blueprint` for `-bold`/`-thin`, or drop `--symbol-art`.+- *"Match adom-symbol exactly."* → use adom-symbol's outline SVG as `--symbol-art`; for a+  pixel-exact match, ask adom-symbol for the mm-space outline (see ROADMAP).+ → **Agent-facing rules: [SKILL.md](SKILL.md).** The app, full CLI, and live 3-column viewer: **[adom/adom-lbr](https://wiki.adom.inc/adom/adom-lbr)**.
skills/fusion-export/SKILL.md+19
@@ -80,6 +80,23 @@ adom-lbr-owned bookkeeping (idempotency + provenance). - Silkscreen outline comes from the footprint body (`F.SilkS` → `F.Fab` → pad   extents), matched per-layer. +## Drawing the chip outline on the symbol — `--symbol-art`++If adom-symbol gave a 3D outline (`<mpn>-3d-outline-*.svg`), draw it on the symbol:++```bash+adom-lbr generate --sym P.kicad_sym --fp P.kicad_mod --symbol-art P-3d-outline-bold.svg -o P.lbr+```++- Transcribes the outline's polylines → EAGLE `<wire>`s on layer 94, Y negated,+  centred + scaled to ~0.38× the body (matches adom-symbol). Tune with+  `--symbol-art-scale`. One `.lbr` carries it into Fusion/Altium/OrCAD.+- **Pitfall — heavy art:** `-blueprint` ≈ 3000 wires / ~300 KB; the tool prints a+  WARN telling you to use a lighter `-bold`/`-thin` outline. Heed it.+- **Standing rule:** match adom-symbol's outline as closely as possible on every+  export. `.lbr` done; KiCad `.kicad_sym` + future native exporters are TODO+  ([../../docs/ROADMAP.md](../../docs/ROADMAP.md)).+ ## Quick triage  | Symptom | Fix |@@ -89,6 +106,8 @@ adom-lbr-owned bookkeeping (idempotency + provenance). | 3D body is a gray placeholder | let the bridge attach it (Create3DPackage → FINISH) | | `bind-3d` rejected the URN | self-uploaded → `--wip-urn` (`fs.file:vf…?version=N`); managed → `--urn` | | 3D offset / wrong pin 1 | run chipfit; set `placement` in the sidecar before FINISH |+| Chip drawing on symbol too big/small | `--symbol-art-scale <frac>` (default 0.38) |+| `.lbr` huge / symbol editor laggy | use a lighter outline (`-bold`/`-thin`) or drop `--symbol-art` |  Human walkthrough + screenshots: **[README.md](README.md)** next to this skill (and the deeper dive in [docs/fusion-export.md](../../docs/fusion-export.md)). This
skills/fusion-export/symbol-art-hints.pngadded
⋯ 1 unchanged line ⋯
skills/fusion-export/symbol-art-sizing.pngadded
⋯ 1 unchanged line ⋯
skills/fusion-export/symbol-art-transcribe.pngadded
⋯ 1 unchanged line ⋯