Agent skill

Electronics Parts Sourcing Guide

by andrewyng in andrewyng/context-hub

Sequences parts-mcp tool calls for finding, pricing and checking availability of electronic components, including BOM processing and datasheet navigation.

MITAuto-check passedBusiness, Finance & HR

Install Electronics Parts Sourcing Guide

skills CLI
$ npx skills add andrewyng/context-hub --skill electronics-sourcing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install andrewyng/context-hub electronics-sourcing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/andrewyng/context-hub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/sourceparts/skills/electronics-sourcing .claude/skills/electronics-sourcing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
electronics-sourcing
GitHub stars
14k
Token cost
~1.8k tokens
SKILL.md length
679 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Sequences parts-mcp tool calls for finding, pricing and checking availability of electronic components, including BOM processing and datasheet navigation.

  • Works in 4 steps: Check quantity breaks: Call… → Suggest alternatives: If a part is… → Preferred suppliers: Use… → …
  • Finding a specific electronic component by part number or parameters
  • SKILL.md covers When to Use Which Search Tool, The Search → Price →…, BOM Processing Pattern and Datasheet Reading Strategy, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill teaches which parts-mcp search tool to reach for and in what order: a keyword or part-number search as the default starting point, or a parameter search when the user gives three or more specific electrical parameters such as capacitance, voltage and package size within one category. It then insists on a fixed four-step sourcing sequence - search, pull full specifications, compare price across suppliers, and check alternatives - rather than stopping at search results, since a part can exist in the database while being out of stock or too expensive.

For a bill of materials, it treats processing as asynchronous: upload the BOM to get a job id, poll its status until complete rather than assuming instant completion, review the matched and unknown parts, and retry unmatched ones by searching on their value and footprint fields instead of silently skipping them. For long datasheets, it lists the sections first, identifies which ones hold the needed information, and reads only those rather than the whole document.

The guidance is organized around the parts-mcp tool set specifically, naming tools such as search_parts, search_by_parameters, upload_bom, check_bom_status, and list_datasheet_sections.

When your agent uses it

  • Finding a specific electronic component by part number or parameters
  • Pricing and checking availability before confirming a part choice
  • Processing a bill of materials to match and rank components

Example prompts

  • “Find me a 50V 100nF X7R 0402 capacitor and compare suppliers.”
  • “Upload this BOM and tell me which parts didn't match.”
  • “Look up the STM32F411 and check its current stock and price.”

Requirements

  • parts-mcp tools connected

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Check quantity breaks: Call compare_prices with different quantities (1, 10, 100, 1000) to show price break curves
  2. Suggest alternatives: If a part is expensive, call find_alternatives and compare pricing
  3. Preferred suppliers: Use preferred_suppliers in calculate_bom_cost to bias toward the user's existing supplier relationships
  4. Consolidation: When multiple parts come from the same supplier, note the potential for consolidated shipping

What it can do on your machine

Read from SKILL.md and the folder at commit 67dcbeb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Electronics Parts Sourcing Guide loads about 1.8k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 679 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from andrewyng/context-hub at commit 67dcbeb, republished under its MIT licence (© andrewyng). 679 words, ~1,752 tokens.

Download SKILL.mdSave it as .claude/skills/electronics-sourcing/SKILL.md (or your agent's skills folder).
name
electronics-sourcing
description
Guide for AI agents to source electronic components using parts-mcp — tool sequencing, decision patterns, and multi-step workflows
metadata.revision
1
metadata.updated-on
2026-03-15
metadata.source
maintainer
metadata.tags
electronics,sourcing,bom,components,pcb,manufacturing,workflow

Electronics Sourcing Skill

This skill teaches you how to source electronic components effectively using parts-mcp tools. It covers tool sequencing, decision patterns, and how to handle common scenarios.

When to Use Which Search Tool

search_parts — Use when you have a part number, description, or general keywords. This is your default starting point.

"Find me a 100nF capacitor" → search_parts(query="100nF capacitor")
"Look up STM32F411" → search_parts(query="STM32F411")

search_by_parameters — Use when you need to match specific electrical parameters within a category. More precise than keyword search.

"I need a 50V 100nF X7R 0402 cap" → search_by_parameters(
  parameters={"capacitance": "100nF", "voltage": "50V", "dielectric": "X7R", "package": "0402"},
  category="capacitor"
)

Decision rule: If the user gives you 3+ specific parameters, use search_by_parameters. For part numbers or general queries, use search_parts.

The Search → Price → Availability → Alternative Pattern

This is the core sourcing workflow. Follow this sequence:

1. SEARCH → Find the part
2. DETAILS → Get full specifications (if needed for validation)
3. PRICE → Compare across suppliers
4. AVAILABILITY → Check stock levels
5. ALTERNATIVE → Find replacements (only if price is too high or stock is insufficient)

Do not skip steps 3 and 4. A part that exists in the database may be out of stock or prohibitively expensive.

When the user asks to "source" or "find" a part, they expect pricing and availability — not just search results. Always follow through to at least step 4.

BOM Processing Pattern

BOM processing is asynchronous. Always follow this exact sequence:

1. upload_bom(file_path=path)           → Get job_id
2. check_bom_status(job_id=job_id)      → Poll until status is "complete"
3. Review matched_parts and unknown_parts
4. For unmatched: search_parts() to resolve manually
5. calculate_bom_cost() with all resolved parts

Polling: Call check_bom_status and check the status field. If "in_progress", wait and poll again. Do not assume instant completion.

Handling unmatched parts: When unknown_parts is not empty, try search_parts with the value and footprint fields as the query. If still unmatched, report them to the user — do not silently skip them.

Datasheet Reading Strategy

Datasheets can be hundreds of pages. Always use this two-step approach:

1. list_datasheet_sections(sku="PART-NUMBER")
   → See the table of contents
   → Identify which sections contain what you need

2. read_datasheet(sku="PART-NUMBER", query="relevant keywords")
   → Read only matching chunks
   → Saves significant context window

Never call read_datasheet without a query parameter unless the datasheet is short (< 20 pages). An unfiltered read of a 200-page datasheet will consume excessive context.

Keyword tips: Use specific technical terms. "maximum input voltage absolute ratings" is better than "voltage". Multiple keywords narrow the results.

Manufacturing Pipeline

Manufacturing operations (DFM, fab quoting, assembly) are all asynchronous:

submit_dfm() → check_dfm_status()       # DFM analysis
quote_fabrication() → check_manufacturing_status()  # Fab quote
quote_assembly() → polls internally      # Combined fab + assembly

DFM first: Always run DFM analysis before requesting a fabrication quote. DFM may reveal issues that affect manufacturability or cost.

Assembly quotes combine fabrication and BOM costing in one call. Use quote_assembly when the user wants a complete per-unit cost including both PCB fabrication and component assembly.

Handling Partial Failures

Real-world sourcing often has partial results. Handle gracefully:

Some parts not found in BOM:

  • Report the unmatched count clearly
  • Attempt search_parts for each unmatched part
  • If still unmatched, list them for the user with their reference designators and values
  • Calculate cost for matched parts, noting the incomplete total

Some parts unavailable:

  • Report which parts are out of stock
  • Automatically call find_alternatives for each unavailable part
  • Present alternatives with their specifications and pricing
  • Let the user decide on substitutions

Price comparison with missing suppliers:

  • Report how many suppliers were checked
  • Note if key suppliers (the user's preferred ones) returned no results
  • Present available pricing data without waiting for all suppliers
Show full SKILL.md (233 more words)Show less

KiCad Project Workflow

When working with KiCad projects:

1. find_kicad_projects()                    → Discover available projects
2. analyze_kicad_project(project_path=...)  → Understand project structure
3. extract_bom_from_kicad(project_path=...) → Get component list
4. match_components_to_parts(components=...) → Match to real parts
5. Follow the BOM processing pattern above for unmatched components

KiCad CLI requirement: BOM extraction may invoke kicad-cli if no existing BOM file is found in the project. Ensure KiCad 8+ is installed.

Local mode only: All KiCad tools require local mode (stdio transport). They are not available in hosted/HTTP mode.

Cost Optimization Tips

When helping users optimize costs:

  1. Check quantity breaks: Call compare_prices with different quantities (1, 10, 100, 1000) to show price break curves
  2. Suggest alternatives: If a part is expensive, call find_alternatives and compare pricing
  3. Preferred suppliers: Use preferred_suppliers in calculate_bom_cost to bias toward the user's existing supplier relationships
  4. Consolidation: When multiple parts come from the same supplier, note the potential for consolidated shipping

Response Patterns

When a user asks to "source a part": → search_parts → get_part_details → compare_prices → check_availability Present: part details, best price, stock status, and any concerns.

When a user provides a BOM file: → upload_bom → poll check_bom_status → report matched/unmatched → calculate_bom_cost Present: match rate, unmatched items, total cost, per-line breakdown.

When a user asks "is this in stock?": → check_availability with quantities Present: stock levels, number of suppliers with stock, whether quantity is meetable.

When a user asks about a datasheet: → list_datasheet_sections → read_datasheet with targeted query Present: the specific information requested, citing page numbers.

When a user asks for a manufacturing quote: → submit_dfm (if not already done) → quote_fabrication or quote_assembly Present: DFM issues (if any), estimated cost, lead time.

© andrewyng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in content/sourceparts/skills/electronics-sourcing of andrewyng/context-hub.

Open the folder on GitHubat commit 67dcbeb

Compare with similar skills

Electronics Parts Sourcing Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Electronics Parts Sourcing Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Electronics Parts Sourcing Guide this skillandrewyng/context-hub14k—~1.8kAutomated safety check: PassMIT
Polymarket Tennislivetennisapi/livetennisapi-mcp152—~3kAutomated safety check: PassMIT
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo421—~699Automated safety check: PassMIT
Sops SecretsVeriTeknik/pluggedin-app103—~1.4kAutomated safety check: PassMIT
Wind MCP SkillWind-Alice/AliceMarket1301 repos~1.3kAutomated safety check: PassNone
Base MCP Wallet Readeraeonfun/aeon767—~2.5kAutomated safety check: PassMIT

Similar skills

  • Polymarket Tennis

    livetennisapi/livetennisapi-mcp

    Build observe-only Polymarket and Kalshi tennis market tooling on the polymarket-tennis Python package (MIT) plus the Live Tennis API free tier.

    152 GitHub stars~3k tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    421 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Sops Secrets

    VeriTeknik/pluggedin-app

    A skill your agent uses when adding, changing, reading or rotating a secret in infra/sops/secrets.env.sops, adding an age recipient, or when sops reports "Error unmarshalling input json", "Config…

    103 GitHub stars~1.4k tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed
  • Wind MCP Skill

    Wind-Alice/AliceMarket

    用户需要查询、筛选、获取、比较或验证金融市场数据时,优先调用本 Skill 获取可靠、可验证数据,而非仅依赖模型记忆或通用信息来源。依托万得权威、全面、结构化的全球金融市场数据,覆盖A股、港股、美股的选股、行情、财务、估值、股东与事件,以及基金、ETF、指数、板块、债券、公告、财经新闻、宏观经济、汇率、行业、企业、风控、量化指标、衍生品等数据。

    130 GitHub starsUsed in 1 repo~1.3k tokens
    Business, Finance & HRAuto-check passed
  • Reads a Base Account's address, portfolio and transaction history through the Base MCP server, and stays strictly read-only in unattended Aeon runs, reporting only changes.

    767 GitHub stars~2.5k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed
  • Helium MCP

    composio-community/awesome-codex-skills

    Search real-time news with bias scoring, get live stock/ETF/crypto data with AI analysis, ML options pricing, balanced news synthesis, and meme search via the Helium MCP server.

    17k GitHub stars~599 tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed

More from andrewyng/context-hub

All 8 skills in this repo
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 1 repo~775 tokens
    Auto-check passed
  • Tavily Search API Integration

    andrewyng/context-hub

    Guides building Tavily integrations for web search, URL extraction, site crawling and AI-assisted research in Python or JavaScript agent and RAG projects.

    14k GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Flutter Bloc and Cubit

    andrewyng/context-hub

    Helps choose between Bloc and Cubit in Flutter and sets defaults for packages, lifecycle, widget binding and tests.

    14k GitHub stars~998 tokensUpdated 4 mo ago
    Auto-check passed
  • Olakai Monitoring Integration

    andrewyng/context-hub

    Adds Olakai monitoring to an existing LLM application with minimal code changes, then configures custom KPIs so the dashboard tracks business outcomes instead of just token counts.

    14k GitHub stars~4.5k tokensUpdated 4 mo ago
    Auto-check passed
  • Playwright Login Flows

    andrewyng/context-hub

    Collects reusable Playwright patterns for logging in during end-to-end tests: password forms, OAuth redirects, saved browser state and TOTP two-factor codes.

    14k GitHub stars~715 tokensUpdated 4 mo ago
    Auto-check passed
  • Olakai Agent Project Setup

    andrewyng/context-hub

    Builds a new AI agent with Olakai monitoring from the start: CLI login, SDK integration, per-agent KPI configuration and an end-to-end check that data flows.

    14k GitHub stars~5k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Electronics Parts Sourcing Guide

What does Electronics Parts Sourcing Guide do?

Sequences parts-mcp tool calls for finding, pricing and checking availability of electronic components, including BOM processing and datasheet navigation. This skill teaches which parts-mcp search tool to reach for and in what order: a keyword or part-number search as the default starting point, or a parameter search when the user gives three or more specific electrical parameters such as capacitance, voltage and package size within one category. It then insists on a fixed four-step sourcing sequence - search, pull full specifications, compare price across suppliers, and check alternatives - rather than stopping at search results, since a part can exist in the database while being out of stock or too expensive.

When should I use Electronics Parts Sourcing Guide?

Electronics Parts Sourcing Guide fits situations like: finding a specific electronic component by part number or parameters; pricing and checking availability before confirming a part choice; processing a bill of materials to match and rank components.

How do I install Electronics Parts Sourcing Guide in Claude Code?

Run `npx skills add andrewyng/context-hub --skill electronics-sourcing -a claude-code`. Or copy the skill folder (content/sourceparts/skills/electronics-sourcing in andrewyng/context-hub) into .claude/skills/electronics-sourcing in your project. Claude Code loads it when a task matches its description.

How do I install Electronics Parts Sourcing Guide in Codex?

Run `npx skills add andrewyng/context-hub --skill electronics-sourcing -a codex`. Or copy the skill folder (content/sourceparts/skills/electronics-sourcing in andrewyng/context-hub) into .agents/skills/electronics-sourcing in your project. Codex loads it when a task matches its description.

Can I use Electronics Parts Sourcing Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add andrewyng/context-hub --skill electronics-sourcing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/electronics-sourcing, .gemini/skills/electronics-sourcing, .github/skills/electronics-sourcing and .opencode/skills/electronics-sourcing in your project.

What does Electronics Parts Sourcing Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Electronics Parts Sourcing Guide is instructions for the agent only. Our summary lists: parts-mcp tools connected.

Does Electronics Parts Sourcing Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Electronics Parts Sourcing Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Electronics Parts Sourcing Guide use?

Electronics Parts Sourcing Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Electronics Parts Sourcing Guide use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Electronics Parts Sourcing Guide?

Skills that share tags, products or a category with Electronics Parts Sourcing Guide: Polymarket Tennis (livetennisapi/livetennisapi-mcp, 152 stars), Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 421 stars), Sops Secrets (VeriTeknik/pluggedin-app, 103 stars) and Wind MCP Skill (Wind-Alice/AliceMarket, 130 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Electronics Parts Sourcing Guide?

andrewyng (a GitHub user) maintains it in andrewyng/context-hub, which has 13,975 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on May 31, 2026.

Source: andrewyng/context-hub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.