Datasheets
Extract component specifications, pinouts, and electrical characteristics from datasheet PDFs.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/datasheets-aklofas/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Extract structured specifications from electronic component datasheet PDFs β pinouts, electrical characteristics, peripherals, topology, and features. Cache extractions per project for consumption by schematic and PCB analyzers. Primary consumer infrastructure for `kicad`, `emc`, `spice`, and `thermal` analyzers. Use this skill whenever the user asks to extract, verify, or read specs from a component datasheet; when analyzers need verified IC knowledge (EN pin thresholds, PG presence, USB peripheral speed); or when a review mentions datasheet coverage, extraction quality, or per-MPN specifications. Also triggers on "extract this datasheet", "what are the specs for MPN X", "verify datasheet extraction", or "check pin functions for part Y".
What this skill does
Datasheets Skill
Related Skills
| 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 + Phase 4b lookup detectors (AM-001/OV-001/TJ-001/FT-001/EX-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 β SPICE model presence + IBIS data feed simulation-readiness checks |
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.
Purpose
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).
Scope
This skill owns:
- Extraction schemas β canonical JSON structures for per-MPN specs. v1.4 ships 6 JSON Schema Draft 2020-12 schemas under
schemas/(base,pinout,spec_value,regulator,extraction,manifest) plus 5 v1.4 category extensions (diode, transistor, opamp, mcu, crystal). v1.3 cache format (EXTRACTION_VERSIONinscripts/datasheet_extract_cache.py) is still read for compat. - Typed access layer (v1.4) β
datasheet_types/package exposesDatasheetFacts,SpecValue,Pin,Pinout,lookup(),best(),trusted(),has_data(). Recommended for all new consumers. - PDF page selection β heuristics to pick pages most likely to contain pinouts, e-chars, applications, SPICE models.
- Quality scoring β v1.4 uses a three-dimension rubric (pinout completeness, base completeness, category-extension completeness, 0β100 scale). v1.3 5-dimension weighted rubric still applies to legacy caches.
- Consumer APIs β
scripts/datasheet_lookup.pyfor v1.4 typed access;scripts/datasheet_features.pyfor 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. Sunset planned for v1.6. - Verification β
datasheet_verify.py(v1.3, schema-vs-usage cross-check) plusdatasheet_verify_v14_extraction(v1.4, power_domain references resolve, recommended β€ absolute, regulator pin references exist).
Non-goals
- No PDF downloading. That is owned by distributor skills (
digikey,mouser,lcsc,element14). - No global library. Each project's extractions live in
<project>/datasheets/extracted/. There is no shared cross-project cache.
Cache location
<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)
Reference guides
references/extraction-schema.mdβ canonical schema, every field definedreferences/field-extraction-guide.mdβ how to find each field in datasheets from common vendors (TI, ST, NXP, Espressif, Microchip)references/quality-scoring.mdβ rubric details, score thresholdsreferences/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)
Entry-point scripts
scripts/datasheet_extract_cache.pyβ v1.3 cache manager, resolver, indexerscripts/datasheet_page_selector.pyβ page selection heuristics (used by both v1.3 and v1.4 pipelines)scripts/datasheet_score.pyβ v1.3 extraction quality scoringscripts/datasheet_verify.pyβ cross-check extraction vs schematic usage (v1.3 + v1.4verify_v14_extractionmode)scripts/datasheet_lookup.pyβ v1.4 typedlookup(mpn) β DatasheetFactsfacade with staleness detectionscripts/datasheet_features.pyβ v1.3 consumer helper API (dual-reads v1.4 caches via_derive_*_v14translators)scripts/plan_extraction.pyβ v1.4 orchestration plan generator (Phase 3 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)
Extraction workflow
Run python3 skills/datasheets/scripts/plan_extraction.py <project> to generate an orchestration plan, then merge_results.py to validate and merge per-task outputs. Full scoutβplanβdispatchβmerge procedure: references/extraction-pipeline.md.
Consuming extractions (v1.4 typed API)
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, str(pathlib.Path(__file__).parent.parent / "datasheets"))
from datasheet_types import lookup, has_data, best, trusted
# Returns Optional[DatasheetFacts]. None on cache miss / stale PDF / low quality.
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().
pu_range = facts.base.recommended_pullup_range # Optional[list[SpecValue]]
if has_data(pu_range):
# Most-trusted single value (first SpecValue meeting threshold, preserves extractor order).
rec = best(pu_range, 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()returnsNoneon cache miss, stale PDF (PDF newer than extraction), or quality score below the configured floor. Always guard withif facts is None: return.- Category extensions are optional on
DatasheetFacts.facts.regulatorisNonewhen the part isn't in theregulatorcategory β check before dereferencing. - SpecValue lists can be
None(field not extracted),[](extracted but empty), orlist[SpecValue].has_data()collapses the first two toFalse; pair withbest()/trusted()for confidence gating. SpecValue.min/.max/.typare eachOptional[float]. A SpecValue carrying onlytyp(no range) makes>/<comparisons against.min/.maxraiseTypeErrorβ guard with explicitis not Nonechains on every numeric access.confidenceis one of"low"/"medium"/"high". Callingbest()/trusted()with any other string raisesValueError.
v1.3 compat shim
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. Sunset planned for v1.6 β new code should use lookup() directly.
When to trigger this skill
- Immediately after downloading datasheets via
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. - Before running analyzers on a new project where datasheets are present but
datasheets/extracted/is empty β the analyzers won't produce the extractions themselves. - When a review flags low trust level due to missing manufacturer evidence: extracting the ICs referenced by power regulators, MCUs, and high-speed peripherals typically flips
trust_level: lowβmixedorhigh. - When a user asks for pin verification ("verify U1 pin names match datasheet") β this skill's cached extraction is the authoritative source.
Related skills
Word Document Editor
anthropics
Create, edit, and format Word documents with tables, images, and tracked changes.
Ask Questions If Underspecified
trailofbits
Ask clarifying questions before starting work on ambiguous requests.
CLAUDE.md Optimizer
daymade
Optimize your CLAUDE.md file for clarity, efficiency, and maintainability.
Claude Skills Troubleshooter
daymade
Diagnose and fix plugin installation, enablement, and activation problems.