andrewyng/context-hub/electronics-sourcing
Claude Code and agent skill by andrewyng/context-hub
- community
Checking that the SKILL.md file is still in the repository.
Guide for AI agents to source electronic components using parts-mcp — tool sequencing, decision patterns, and multi-step workflows
Install
npx vskill@latest install andrewyng/context-hub/electronics-sourcingSKILL.md
The same SKILL.md was published earlier as andrewyng/context-hub/electronics-sourcing.
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.
`search_by_parameters` — Use when you need to match specific electrical parameters within a category. More precise than keyword search.
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:
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:
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:
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:
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_partsfor 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_alternativesfor 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
KiCad Project Workflow
When working with KiCad projects:
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:
- Check quantity breaks: Call
compare_priceswith different quantities (1, 10, 100, 1000) to show price break curves - Suggest alternatives: If a part is expensive, call
find_alternativesand compare pricing - Preferred suppliers: Use
preferred_suppliersincalculate_bom_costto bias toward the user's existing supplier relationships - 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontent/sourceparts/skills/electronics-sourcing/SKILL.md
Popularity
- Repository stars
- 13,980
- Repository forks
- 1,205
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andrewyng/context-hub/electronics-sourcing)