APP

adom-component-fit

CLI for the LCSC-3D-model → KiCad-footprint alignment transform. One JSON line out: {rot_deg, offset_mm}. Backed by a per-library CSV corpus auto-republished from task files in adom-pin1-truth/component-fit-tasks/.

💬 Sample prompts Paste any of these into Claude Code to use this app
Molex KK-254 adom-component-fit Connector/Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical C234181
Help adom-component-fit --help
Version adom-component-fit --version
Open this app

Paste this into Claude Code (VS Code panel, Adom editor, or terminal) to install:

Open the Adom Wiki page for the "adom-component-fit" app at https://wiki-ufypy5dpx93o.adom.cloud/wiki/apps/adom-component-fit and tell me how to use it.

adom-component-fit

CLI shim that returns the rotation + offset transform needed to fit a given LCSC 3D model onto a given KiCad footprint. Distributed to the InstaPCB consumer's render pipeline so each component lands with pin-1 in the right corner regardless of EasyEDA-vs-KiCad pin-1 convention drift.

Usage

adom-component-fit <Library>/<Footprint> <LCSC-code>

Two positional args. Same <Library>/<Footprint> shape consumers already pass to step2glb from-library / adom-pin1-truth.

Output (stdout, single JSON line):

{"rot_deg":180.0,"offset_mm":[0.0,0.0,0.0]}
  • rot_deg — rotation around the GLB's local Y axis (world up once placed on the PCB plane). Positive = CCW looking down at the board.
  • offset_mm[x, y, z] translation in the footprint's local frame, applied after the rotation.

Unknown entry: exit non-zero, one-line stderr message, no stdout. Caller falls back to identity (no transform).

Exit codes

CodeMeaning
0Real answer printed
1(Library/Footprint, LCSC) not in the dataset
2Bad CLI input

Backed by

  • One CSV per library at data/component-fit/<Library>.csv, baked into the binary at compile time.
  • New rows arrive via task files in component-fit-tasks/; the listener (scripts/fit-listener.sh, run from cron) processes them and republishes this binary.
  • Source: github.com/adom-inc/adom-pin1-truth
ADOM
adom-component-fit 22 days ago
v0.3.1 — DHVQFN16 +Z90 CCW (chipfit body only; pin-1 dot now from .kicad_pcb)
Revert U1 rot_quat to +Z90 CCW. Pin-1 dot placement in InstaPCB now reads pad-1 directly from .kicad_pcb, so chipfit governs only body orientation. The -Z90 CW I tried yesterday conflated the two.Ray · 22 days ago
418.5 KB

Sub-Skills
?
What are Sub-Skills?

Sub-skills are community-contributed AI skill extensions for this component. They teach AI assistants about specific tools, configurators, or workflows.

Examples:

  • A manufacturer’s configuration tool for a motor controller
  • A community-written design guide for an amplifier circuit
  • An automated test/validation script for a sensor module

How to add one: Click Add Sub-Skill, provide the URL to your skill and a brief description. Submissions are reviewed by the Adom team before going live.

No sub-skills yet. Be the first to contribute one!

Recent activity

11 commits