/kicad-happy:datasheetsfrom kicad-happy
Extracts structured specifications (pinouts, electrical characteristics, peripherals) from electronic component datasheet PDFs. Caches per-project for schematic/PCB analyzers like kicad, emc, spice, and thermal.
Ships in kicad-happy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Skill | Relationship |
|---|---|
digikey / mouser / lcsc / element14 | Producers — download the PDFs under <project>/datasheets/ that this skill extracts from |
kicad | Primary consumer — VM-001/PU-001/FS-001/PP-001/LR-001/XT-001 + the datasheet-backed lookup detectors (AM-001/OV-001/TJ-001/FT-001/EX-001/PM-001) query extractions via lookup(mpn) for verified-IC knowledge |
emc | Consumer — switching-frequency, package-Rθ_JA, and operating-voltage data sharpen EMC heuristics |
spice | Consumer (limited) — the model resolver reads legacy spice_specs fields only; v1.4 typed facts are not used |
thermal | Consumer — package Rθ_JA + junction temperature limits drive Tj estimates (TS-001..TJ-001) |
bom | Indirect — coverage of structured extractions affects BOM verification confidence |
Handoff guidance: This skill is consumer infrastructure. The typical flow is distributor skill downloads PDF → datasheets skill extracts → analyzer skill queries. Use this skill directly when (a) the user asks to extract or verify a specific MPN, (b) an analyzer reports trust_level: low and the gap is per-MPN extraction quality, or (c) a new MPN was added to the BOM and downstream detectors should pick up its verified specs. Don't run this skill in isolation if the user just wants a design review — call it from the kicad workflow at the "Sync datasheets" step instead.
Extract structured, machine-readable specifications from component datasheet PDFs and make them available to analyzer skills. Works on whatever PDFs are downloaded under <project>/datasheets/ (downloads are owned by distributor skills like digikey, mouser, lcsc, element14).
This skill owns:
schemas/ (base, pinout, spec_value, regulator, extraction, manifest) plus 5 v1.4 category extensions (diode, transistor, opamp, mcu, crystal). v1.3 cache format (EXTRACTION_VERSION in scripts/datasheet_extract_cache.py) is still read for compat.datasheet_types/ package exposes DatasheetFacts, SpecValue, Pin, Pinout, lookup(), best(), trusted(), has_data(). Recommended for all new consumers.datasheet_types.cache_reader (from datasheet_types import lookup) for v1.4 typed access; scripts/datasheet_features.py for the v1.3 dict-shaped helpers (get_regulator_features, get_mcu_features, get_pin_function) — the v1.3 helpers dual-read v1.4 caches and translate to v1.3 dict shape for legacy detector code.datasheet_verify.py (v1.3, schema-vs-usage cross-check) plus verify_v14_extraction (v1.4, power_domain references resolve, recommended ≤ absolute, regulator pin references exist).digikey, mouser, lcsc, element14).<project>/datasheets/extracted/. There is no shared cross-project cache.<project>/
design.kicad_sch
datasheets/
TPS61023DRLR.pdf # downloaded by distributor skills
extracted/
manifest.json # extraction manifest (legacy name: index.json)
TPS61023DRLR.json # structured extraction (this skill's output)
An extraction file records its source PDF and extractor, not a capability_mode: that is a per-analysis-run record (analysis/capability_mode.json) written by the analyzers.
references/extraction-schema.md — legacy v1.3 cache fields; the current v1.4 contracts are schemas/extraction.schema.json, schemas/base.schema.json and the category schemas, with extraction instructions under prompts/references/field-extraction-guide.md — how to find each field in datasheets from common vendors (TI, ST, NXP, Espressif, Microchip)references/quality-scoring.md — legacy v1.3 0–10 rubric; the current 0–100 score is summarised at its topreferences/consumer-api.md — how kicad/emc/spice/thermal consume extractionsreferences/cache-layout.md — v1.4 cache directory convention (per-MPN files, _families/ reservation, staleness rules)scripts/datasheet_extract_cache.py — v1.3 cache manager, resolver, indexerscripts/datasheet_page_selector.py — page selection heuristics (manual helper; no pipeline script imports it)scripts/datasheet_score.py — v1.3 extraction quality scoringscripts/datasheet_verify.py — cross-check extraction vs schematic usage (v1.3 + v1.4 verify_v14_extraction mode)scripts/datasheet_features.py — v1.3 consumer helper API (dual-reads v1.4 caches via _derive_*_v14 translators)scripts/plan_extraction.py — v1.4 orchestration plan generator (extraction pipeline)scripts/merge_results.py — v1.4 per-task result validator + mergerdatasheet_types/ — v1.4 typed access layer package (DatasheetFacts, SpecValue, Pin, Pinout, lookup, best, trusted, has_data)distributor_core/ — shared sync/fetch plumbing for the four distributor skills (BOM projection, manifest.json, download, verification, the sync driver); not an entry point of this skillRun the scout first: dispatch prompts/scout.md for the MPN and PDF and save its schema-valid, unwrapped output, with the PDF's "pdf_sha256": "sha256:<hex>" added, as <cache_dir>/<sanitized_mpn>.scout.json (the MPN with every character outside [A-Za-z0-9_.-] replaced by _: LM317/NOPB → LM317_NOPB) (references/dispatch-claude-code.md Step 1). Then run python3 <skill-path>/scripts/plan_extraction.py <mpn> <pdf_path> --use-cached-scout --cache-dir <cache_dir> (<skill-path> is this skill's directory) to write the plan, dispatch its tasks, and run merge_results.py <mpn> --cache-dir <cache_dir> to validate and merge their results. Without --use-cached-scout it exits 2 (it cannot run the scout itself); with the flag and no saved scout it exits 2 and names the scout file to write. merge_results.py and validate_extraction_result.py need the jsonschema package (pip install jsonschema), and validate_sanity_vector.py (a QA helper) needs PyYAML; everything else here is stdlib-only. Full scout→plan→dispatch→merge procedure: references/extraction-pipeline.md.
The recommended consumer surface is the typed lookup(mpn, cache_dir=...) facade plus the trust-gating helpers from datasheet_types. Import like:
import sys, pathlib
sys.path.insert(0, "<datasheets-skill-path>")
from datasheet_types import lookup, has_data, best, trusted
# Returns Optional[DatasheetFacts]. None on cache miss or unreadable cache; quality is reported on the object, not gated.
facts = lookup("TPS61023DRLR", cache_dir=pathlib.Path("datasheets/extracted"))
if facts is None:
return # heuristic-only path; no datasheet evidence available
# Field-level trust gating — every SpecValue list runs through has_data() / best() / trusted().
vin = facts.base.recommended_operating.get("VIN") # Optional[list[SpecValue]]; recommended_operating is dict[str, list[SpecValue]]
if has_data(vin):
# Most-trusted single value (first SpecValue meeting threshold, preserves extractor order).
rec = best(vin, min_confidence="medium") # Optional[SpecValue]
if rec is not None and rec.min is not None:
... # use rec.min, rec.max, rec.typ, rec.unit, rec.evidence.{page,section,confidence}
# All SpecValues at threshold (for multi-value fields like absolute_max).
hi_conf = trusted(facts.base.absolute_max.get("VDD", []), min_confidence="high")
Defensive patterns (mirrors kicad/SKILL.md § "Probing Analyzer JSON"):
lookup() returns None on a cache miss or an unreadable cache (malformed, non-UTF-8, symlinked, not a regular file, oversized, not an object); a stale PDF or a low quality score is described on the facts (facts.stale, facts.quality), never a None. Always guard with if facts is None: return.DatasheetFacts. facts.regulator is None when the part isn't in the regulator category — check before dereferencing.None (field not extracted), [] (extracted but empty), or list[SpecValue]. has_data() collapses the first two to False; pair with best() / trusted() for confidence gating.SpecValue.min / .max / .typ are each Optional[float]. A SpecValue carrying only typ (no range) makes > / < comparisons against .min / .max raise TypeError — guard with explicit is not None chains on every numeric access.confidence is one of "low" / "medium" / "high". Calling best() / trusted() with any other string raises ValueError.Legacy detectors still call get_regulator_features(mpn) / get_mcu_features(mpn) / get_pin_function(mpn, pin) from scripts/datasheet_features.py. These dual-read v1.4 caches and translate to the v1.3 dict shape. New code should use lookup() directly.
sync_datasheets_digikey.py, sync_datasheets_lcsc.py, or equivalent. Without extraction, IC-aware checks (VM-001 rail voltage, PS-001 power-good, PR-004 USB, DP-002 USB speed classification) fall back to heuristics on unknown ICs.datasheets/extracted/ is empty — the analyzers won't produce the extractions themselves.trust_level: low → mixed or high.datasheet_types/__init__.py (opens in a new tab)datasheet_types/base_block.py (opens in a new tab)datasheet_types/cache_reader.py (opens in a new tab)datasheet_types/codec.py (opens in a new tab)datasheet_types/extraction.py (opens in a new tab)datasheet_types/pinout.py (opens in a new tab)datasheet_types/regulator.py (opens in a new tab)datasheet_types/spec_value.py (opens in a new tab)datasheet_types/trust_gating.py (opens in a new tab)distributor_core/__init__.py (opens in a new tab)distributor_core/cli.py (opens in a new tab)distributor_core/download.py (opens in a new tab)distributor_core/inputs.py (opens in a new tab)distributor_core/manifest.py (opens in a new tab)distributor_core/sync.py (opens in a new tab)distributor_core/verify.py (opens in a new tab)examples/abm8g-106-12.000mhz-t.json (opens in a new tab)examples/irlml6344.json (opens in a new tab)examples/lm2596-adj.json (opens in a new tab)examples/lm358.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/bomBOM (Bill of Materials) management for electronics projects — the workflow skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad skills around a unified BOM lifecycle. Create, update, and maintain BOMs with part numbers, costs, quantities stored as KiCad symbol properties. ALWAYS trigger this skill for any task involving component sourcing, pricing, ordering, distributor searches, BOM export, or fabrication preparation — even if the user names a specific distributor or fab house (e.g. "search DigiKey for...", "generate JLCPCB BOM", "order from Mouser"). This skill analyzes the schematic for sourcing gaps, recommends which distributor/fab skills to call for each gap, and writes results back as symbol properties — the agent (or user) performs the actual searches via the called skills. Also trigger on phrases like "what parts do I need", "order components", "how much will this cost", "export for JLCPCB", "find parts for this board", "compare pricing", or "check stock"./digikeySearch DigiKey for electronic components and download datasheets — primary source for prototype orders and the preferred API method for fetching datasheets. Find parts by keyword or MPN, check pricing/stock, download datasheets via API, analyze specifications. Sync and maintain a local datasheets directory — extract components from schematics, download missing datasheets, keep them up to date. Also supports batch MPN-list seeding (`--mpn-list`) for bulk workflows without a KiCad project. Use when the user asks about electronic components, part specs, datasheets, pricing, stock, footprints, or needs to download a datasheet — even without mentioning "DigiKey". Also for "sync datasheets", "download datasheets for my board/project", or mentions a datasheets directory. DigiKey is the default distributor for prototyping. For BOM workflows, see the bom skill./element14Search Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets, analyze specifications. One unified API covers all three storefronts (Newark for US, Farnell for UK/EU, element14 for APAC). Free API key, simple query-parameter auth, no OAuth. Datasheets download directly from farnell.com CDN with no bot protection. Sync and maintain a local datasheets directory for a KiCad project, or use batch MPN-list seeding (`--mpn-list`) for bulk workflows without a project. Use this skill when the user mentions Newark, Farnell, element14, needs parts from a non-US distributor, wants to compare pricing across regions, or needs datasheets from a source that doesn't require complex API auth. For package cross-reference tables and BOM workflow, see the `bom` skill./emcEMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching harmonics, clock routing, differential pair skew, board edge radiation, PDN impedance, return paths, crosstalk, ESD protection, shielding, and magnetic leakage from switching inductors. Produces severity-ranked risk report with pre-compliance test plan. Supports FCC Part 15, CISPR 32, CISPR 25 (automotive), MIL-STD-461G. SPICE-enhanced when available. Use when the user asks about EMC, EMI, radiated/conducted emissions, FCC compliance, CE marking, CISPR, ground plane issues, decoupling strategy, clock routing EMC, switching noise, differential pair skew, or whether their board will pass EMC testing. Also for "will this pass FCC?", "check my EMC", "is my ground plane okay?", "check my decoupling", or "generate an EMC test plan"./jlcpcbJLCPCB PCB fabrication and assembly — BOM/CPL generation, basic vs extended parts, assembly constraints, design rules, ordering workflow. Use with KiCad for JLCPCB manufacturing. Use this skill when the user mentions JLCPCB, wants to order PCBs or assembled boards, needs prototype bare PCBs and stencils, wants to know JLCPCB design rules and capabilities, or is asking about PCB manufacturing costs or turnaround times. For gerber/CPL export, stencil ordering, and BOM management, see the `bom` skill./kicadAnalyze KiCad projects and PDF schematics: schematics, PCB layouts, Gerbers, footprints, symbols, netlists, and design rules. Reviews designs for bugs, traces nets, cross-references schematic to PCB, extracts BOM data, checks DRC/ERC, DFM, power trees, and regulator circuits. Every finding carries a confidence label and evidence source with trust_summary rollup. Analyzes PDF schematics from dev boards, reference designs, eval kits, and datasheets. Supports KiCad 5–10. Use whenever the user mentions .kicad_sch, .kicad_pcb, .kicad_pro, PCB design review, schematic analysis, PDF schematics, reference designs, Gerber files, DRC/ERC, netlist issues, BOM extraction, signal tracing, power budget, DFM, or wants to understand, debug, compare, or review any hardware design. Also for "check my board", "review before fab", "what's wrong with my schematic", "is this ready to order", "check my power supply", "verify this circuit", OSHWA certification readiness, or any electronics/PCB design question.npx claudepluginhub aklofas/kicad-happy --plugin kicad-happyOther plugins' skills for the same job