digikey

digikey is a skill for Claude Code from aklofas/kicad-happy. It costs 179 tokens per session (4,596 once invoked), scanned A, original, MIT.

A search and datasheet tool for electronic parts from DigiKey, a component distributor. It can find parts, check availability and prices, download datasheets, and examine specifications.

In plain words
What is it for?
Use it to look up parts by name or part number, retrieve datasheets, review specifications, and keep a local collection of datasheets for circuit and parts-list work.
Why use it?
It reduces the manual work of searching distributor pages and collecting technical documents when selecting parts or building a prototype.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kicad-happy plugin — 11 skills shipped together

Good fit Use it to look up parts by name or part number, retrieve datasheets, review specifications, and keep a local collection of datasheets for circuit and parts-list work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aklofas/kicad-happy/digikey
About the project

kicad-happy is a collection of coding-agent skills and tools that inspect KiCad schematics, PCB layouts, and Gerber files for electronics design issues. It is for hardware designers who want automated reviews, simulations, datasheet checks, component sourcing, and fabrication preparation. The catalogue entries are its agent skills, rules, plugin, and instruction for integrating this workflow with coding agents.

aklofas/kicad-happy · 1,188 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aklofas/kicad-happy --skill digikey
Clone the repo
git clone --depth 1 https://github.com/aklofas/kicad-happy

Made for: Claude Code.

Or install kicad-happy, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for digikey

README.md
[![agentmods](https://agentmods.dev/badge/skills/aklofas/kicad-happy/digikey/github.svg)](https://agentmods.dev/skills/aklofas/kicad-happy/digikey)
Your own site
<a href="https://agentmods.dev/skills/aklofas/kicad-happy/digikey"><img src="https://agentmods.dev/badge/skills/aklofas/kicad-happy/digikey/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for digikey

Your own site · 80×15
<a href="https://agentmods.dev/skills/aklofas/kicad-happy/digikey"><img src="https://agentmods.dev/badge/skills/aklofas/kicad-happy/digikey.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,596 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 17 Apr 2026
  • Snyk warn 17 Apr 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 48
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 50
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Rogue Agent · line 34
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Data Exfiltration · line 66
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 66
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.04596
Opus 5 $0.00089 $0.02298
Sonnet 5 $0.00036 $0.00919
Haiku 4.5 $0.00018 $0.00460

Measured 13d ago against content hash f31dd04ef685, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

digikey scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fetch_datasheet_digikey.py, scripts/sync_datasheets_digikey.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST https://api.digikey.com/v1/oauth2/token \
skills/digikey/SKILL.md · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DigiKey Parts Search & Analysis

Skill Purpose
kicad Schematic analysis — extracts MPNs for datasheet sync
bom BOM management — orchestrates sourcing across distributors
spice Uses DigiKey parametric data for behavioral SPICE models

DigiKey is the primary source for prototype orders (Mouser is secondary). Its API returns direct PDF datasheet links, making it the preferred datasheet source. For production orders, see lcsc/jlcpcb. For BOM management and export workflows, see bom.

API Credential Setup

The DigiKey API requires OAuth 2.0 credentials. Here's how to set them up:

  1. Create a DigiKey account at digikey.com if you don't have one
  2. Register an API app at developer.digikey.com:
    • Sign in with your DigiKey account
    • Go to "My Apps" → "Create App"
    • App name: anything (e.g., "kicad-happy")
    • Select "Product Information v4" API
    • OAuth type: Client Credentials (2-legged, no user login needed)
    • Callback URL: https://localhost (not used for client credentials, but required)
    • After creation, note the Client ID and Client Secret
  3. Set the environment variables before running the scripts:
    export DIGIKEY_CLIENT_ID=your_client_id_here
    export DIGIKEY_CLIENT_SECRET=your_client_secret_here
    
    If credentials are stored in a central secrets file (e.g., ~/.config/secrets.env), load them first:
    export $(grep -v '^#' ~/.config/secrets.env | grep -v '^$' | xargs)
    

The client credentials flow has no user interaction — once configured, API calls work automatically.

DigiKey Product Information API v4

The API is the preferred way to search DigiKey. It returns structured JSON with full product details, pricing, stock, datasheets, and parametric data.

Base URL: https://api.digikey.com

Authentication

All API requests require OAuth 2.0. Use the client credentials flow (2-legged). Credentials must be loaded as environment variables (see "API Credential Setup" above).

Read the full file on GitHub · 378 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 378 lines · 179 tokens per session scan A f31dd04ef685

Subscribe to this mod's changes

digikey is a skill published in the GitHub repository aklofas/kicad-happy (1,188 stars, last pushed 10d ago), licensed MIT. It adds 179 tokens to every session and 4,596 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

altium-library

Create and verify Altium schematic symbols (.SchLib) and PCB footprints (.PcbLib) from datasheets and 2D drawings, as code. Use whenever a part library must be made, fixed, measured from a drawing, or checked. Triggers: "make a footprint", "create a symbol", "add this part to the library", "SchLib", "PcbLib"…

ScottJeong/altium-claude-skills · 256 tokens

circuit-design

Use when designing an electronic circuit from requirements, choosing topology or regulator type, selecting component values, planning protection circuits, or deciding what goes on a board before schematic capture begins. Also use when the user asks "what components do I need" or "how should I power this.".

ProductOfAmerica/mcp-server-kicad · 60 tokens

schematic-plan

Use after circuit-design produces a validated BOM (specs/bom.md) to plan exact component placement coordinates and wiring before schematic capture begins. Pure planning — no file modifications.

ProductOfAmerica/mcp-server-kicad · 39 tokens

using-kicad

Use when starting any conversation involving electronics, KiCad, PCB design, schematic capture, circuit design, or EDA tasks.

ProductOfAmerica/mcp-server-kicad · 30 tokens

altium-pcb-placement

Altium PCB component placement — derive board size, decide rotation for main ICs and connectors, split zones, generate a 1:1 placement plan drawing, then inject real coordinates after approval, and check overlaps. Triggers: "PCB placement", "place the components", "how big should the board be", "board outline", "start…

ScottJeong/altium-claude-skills · 250 tokens

altium-schematic-review

Review an Altium schematic (.SchDoc) — find unconnected pins, missing footprint links and net errors, then judge each candidate against the datasheet before calling it a defect. Triggers: "review this schematic", "check my circuit", "ERC", "floating pins", "unconnected", "any missing footprints", "does this schematic…

ScottJeong/altium-claude-skills · 251 tokens