Skip to content
Skillpedia
Misc14k Β· #11276

electronics-sourcing

What it does

This skill teaches your agent how to search for electronic components and check their price and availability. It is for engineers, makers, and buyers who need to source parts.

When to use it

  • βœ“When you need to find a specific electronic part, such as a capacitor or chip.
  • βœ“When you want to compare prices and stock across suppliers.
  • βœ“When a part is too expensive or out of stock and you need an alternative.

Skill link

https://github.com/andrewyng/context-hub/blob/main/content/sourceparts/skills/electronics-sourcing/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/andrewyng/context-hub/blob/main/content/sourceparts/skills/electronics-sourcing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to find a 100nF 50V X7R 0402 capacitor, compare prices, and check whether it is in stock.”

5 new skills a week. 1 minute to read.

How it works

The agent searches by part number or by parameters, then checks details, prices, and stock. If a part is too costly or unavailable, it looks for a replacement.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 wait
FAQ

When should I give more details in my search?

The skill suggests searching by parameters when you give three or more specific values.

Why check stock as well as price?

The skill says to check both price and availability before deciding on a part.

What tool does it use?

It uses the parts-mcp tools to search for and check components.

Details

Original description by the author

Guide for AI agents to source electronic components using parts-mcp β€” tool sequencing, decision patterns, and multi-step workflows

repo: andrewyng/context-hub

Popularity

GitHub stars
14k
Ranking position
#11276
License
MIT
Updated
5/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills