digikey

digikey is a skill for Claude Code, Codex from AgentComputerAI/torch. It costs 140 tokens per session (2,305 once invoked), scanned A, original, MIT.

A scraping guide for collecting parts data from DigiKey category pages. DigiKey is an electronics distributor, and its category pages show parts in an HTML table with technical columns.

In plain words
What is it for?
Use it to collect manufacturer part numbers, availability, prices, package information, and other category-table fields. It is intended for browser-based access followed by HTML parsing.
Why use it?
It explains how to get past Cloudflare’s block on basic command-line requests. It also avoids rebuilding data from an API because the needed table is already in the page.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to collect manufacturer part numbers, availability, prices, package information, and other category-table fields. It is intended for browser-based access followed by HTML parsing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentcomputerai/torch/digikey
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 AgentComputerAI/torch --skill digikey
Clone the repo
git clone --depth 1 https://github.com/AgentComputerAI/torch

Made for: Claude Code, Codex.

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/agentcomputerai/torch/digikey/github.svg)](https://agentmods.dev/skills/agentcomputerai/torch/digikey)
Your own site
<a href="https://agentmods.dev/skills/agentcomputerai/torch/digikey"><img src="https://agentmods.dev/badge/skills/agentcomputerai/torch/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/agentcomputerai/torch/digikey"><img src="https://agentmods.dev/badge/skills/agentcomputerai/torch/digikey.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,305 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.
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.00140 $0.02305
Opus 5.5 $0.00056 $0.00922
Sonnet 5.5 $0.00028 $0.00461
Haiku 4.5 $0.00014 $0.00231

Measured 3mo ago against content hash 037f55eeae52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo ago.

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.

description: Proven scraping playbook for digikey.com /en/products/category/ listings. Cloudflare challenge (cf-mitigated: challenge) blocks bare curl with HTTP 403, but a puppeteer connection to the user's real Chrome v
skills/sites/digikey/SKILL.md · 155 lines

How it starts

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

DigiKey (digikey.com)

Cloudflare-protected catalog with a fully server-rendered HTML product table. Real Chrome connect kills the challenge in one navigation. Pure DOM scrape — no API replay needed, every parametric column is in the table.

Detection

Signal Value
CDN Cloudflare (server: cloudflare, cf-ray)
Anti-bot Cloudflare challenge — cf-mitigated: challenge, HTTP 403 on bare curl
Framework Server-rendered HTML (no __NEXT_DATA__, no SPA hydration needed)
Auth Not required
Captcha None visible after CF clears

Bare curl https://www.digikey.com/en/products/category/microcontrollers/685 returns:

HTTP/2 403
cf-mitigated: challenge
server: cloudflare

…with a 4.7KB challenge HTML body. Fetch / node-fetch / requests are all blocked the same way.

Architecture

  • Single canonical category URL: /en/products/category/<slug>/<id> (e.g. microcontrollers = 685).
  • HTML returned by Cloudflare-cleared session contains a <table> with:
    • <thead><th> cells for ~28 columns: blank (image), Mfr Part #, Quantity Available, Price, Tariff Status, Series, Package, Product Status, DigiKey Programmable, Core Processor, Core Size, Speed, Connectivity, Peripherals, Number of I/O, Program Memory Size, Program Memory Type, EEPROM Size, RAM Size, Voltage - Supply (Vcc/Vdd), Data Converters, Oscillator Type, Operating Temperature, Grade, Qualification, Mounting Type, Supplier Device Package, Package / Case.
    • <tbody><tr> rows, 25 per page by default. Each row has a[href*="/en/products/detail/<mfg>/<part>/<digikey-id>"] and a thumbnail <img> from mm.digikey.com.
  • Column set varies by category (microcontrollers exposes core/speed/memory; capacitors expose capacitance/voltage/ESR/etc.). Don't hard-code columns — read <thead> and zip.
  • The only XHR seen during page load is /en/api/scTools/Header2021/GeoInfo (geo banner). No internal product API call is needed — everything is in the SSR HTML.

Read the full file on GitHub · 155 lines

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. 3mo ago First seen · 155 lines · 0 tokens per session scan A 037f55eeae52

Subscribe to this mod's changes

digikey is a skill published in the GitHub repository AgentComputerAI/torch (5 stars, last pushed 7mo ago), licensed MIT. It adds 140 tokens to every session and 2,305 once invoked, about $0.0006 per session on Opus 5.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-31.

Related

digikey compared with skills from other repositories

digikey next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
digikeyAgentComputerAI/torchSkill57mo agoMITA140Claude Code, Codex
data-scraperericrisco/rsc-harnessSkill701yesterdayMITA77Claude Code, Codex
chrome-extensionericrisco/rsc-harnessSkill701yesterdayMITA76Claude Code, Codex
nodejsericrisco/rsc-harnessSkill701yesterdayMITA77Claude Code, Codex
copperheadcopperheadhq/copperheadSkill748todayApache-2.0A69Claude Code, Codex
browser-qadamianvtran/local-operatorSkill234todayMITA45Claude Code, Codex
checking-a-pageawss1i/assaySkill109todayMITA49Claude Code