hashgraph-online/awesome-codex-plugins / plugins/aklofas/kicad-happy/skills/digikey
digikey
VerifiedSearch 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.5 KB |
| scripts/_core_path.py | script | 697 B |
| scripts/fetch_datasheet_digikey.py | script | 5.9 KB |
| scripts/provider_digikey.py | script | 15.2 KB |
| scripts/sync_datasheets_digikey.py | script | 2.4 KB |
scripts/sync_datasheets_digikey.py
View on GitHub#!/usr/bin/env python3
"""Sync a local datasheets directory for a KiCad project.
Extracts components with MPNs from a KiCad schematic (or pre-computed
analyzer JSON), searches DigiKey for datasheet URLs, downloads missing
PDFs, and maintains a manifest.json file (formerly index.json — the legacy name
is still read for backward compat on existing projects).
The manifest.json tracks download status so subsequent runs only fetch new
or changed parts. The kicad skill can read this index to cross-reference
datasheets during design review.
Usage:
python3 sync_datasheets_digikey.py <file.kicad_sch>
python3 sync_datasheets_digikey.py <analyzer_output.json> --output ./datasheets
python3 sync_datasheets_digikey.py <file.kicad_sch> --force # retry failures
python3 sync_datasheets_digikey.py <file.kicad_sch> --dry-run # preview only
python3 sync_datasheets_digikey.py --mpn-list mpns.txt --dry-run
python3 sync_datasheets_digikey.py --mpn-list mpns.txt --output ./datasheets
Requires DIGIKEY_CLIENT_ID and DIGIKEY_CLIENT_SECRET environment variables.
Dependencies:
- requests (pip install requests) — strongly recommended
- playwright (pip install playwright && playwright install chromium) — optional, only with datasheets.allow_private_hosts
"""
import sys
from pathlib import Path
# Import download functions from sibling script
sys.path.insert(0, str(Path(__file__).parent))
import _core_path # noqa: F401
import provider_digikey
from distributor_core import sync as core_sync
from distributor_core.cli import sync_main
# ---------------------------------------------------------------------------
# Core sync logic
# ---------------------------------------------------------------------------
def sync_datasheets(**kwargs) -> dict:
"""Sync via the shared driver (distributor_core.sync) with the digikey adapter. Returns summary dict."""
return core_sync.sync_datasheets(provider_digikey, **kwargs)
def main():
sync_main(
sync_datasheets,
description=("Sync datasheets for a KiCad project via DigiKey API. Parts with neither an MPN nor a part "
"number from this distributor are skipped."),
vendor="DigiKey",
delay=1.0,
delay_help="Seconds between DigiKey API calls (default: 1.0)",
)
if __name__ == "__main__":
from kicad_core.cli import utf8_stdio
utf8_stdio()
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |