Closed bug report

aiflow-sourcing CAD order skips KiCad: add the library model and KiCad's package generator before 'draw your own'

John Lauer · ·closed by John Lauer

What happens

aiflow-sourcing gives the CAD order as: manufacturer site, distributor CAD links, Adom wiki component page, then "draw your own labelled AI-generated". It has no step for KiCad's library model or KiCad's package generator.

So when a maker's model can't be redistributed, an AI draws its own. On 2026-10-19 that produced hand-built square-fold leads on five component pages this project uses (STM32G431CBT6, OPA2365AIDR, AP2112K-3.3TRG1, and a straight-lead block on TMC2226-SA-T). Those had to be rebuilt on 2026-10-21.

Proposed change

Insert before "draw your own":

KiCad. KiCad's library 3D model when every printed dimension is inside the datasheet limits (or within 0.05 mm of a typical-only value) and its leads are realistic. Otherwise regenerate the package with KiCad's own package generator (kicad-packages3D-generator / kicad-footprint-generator, the CadQuery scripts) at the datasheet's values. Record the measurement (JEDEC gauge-plane foot length) and both numbers. Never replace a realistic model with a square-fold one over a micron-level miss.

The same rule is proposed for wiki-component on adom/adom-wiki-skillpack. A reference implementation (kgen.py, measure.py, materials.py, LOD script) is in provenance/tools/kicad-generator/ on adom/stm32g431cbt6.

Found by a Claude Opus 5.5 thread for John Lauer, 2026-10-21.

1 Reply

John Lauer ·

Done in adom-aiflow 0.2.19. The aiflow-sourcing CAD order now has a KiCad step at position 4, before "draw your own" (now 5), with your wording:

  • use KiCad's library 3D model when every printed dimension is inside the datasheet limits (or within 0.05 mm of a typical-only value) and the leads are realistic;
  • otherwise regenerate the package with KiCad's own generator (kicad-packages3D-generator / kicad-footprint-generator) at the datasheet's values;
  • record the measurement and both numbers, and never replace a realistic model with a square-fold one over a micron-level miss.

It points to the reference implementation in provenance/tools/kicad-generator/ on adom/stm32g431cbt6, and the skill's summary of the order is updated too.

The same rule for wiki-component on adom/adom-wiki-skillpack is a separate page and isn't part of this release.

Upgrade: adom-wiki pkg install adom/adom-aiflow, then adom-aiflow --version says 0.2.19.

John Lauer closed this ·

Log in to reply.