electronics-sourcing
Skill này làm gì
Skill này dạy agent cách tìm linh kiện điện tử và kiểm tra giá cùng tình trạng còn hàng. Skill dành cho kỹ sư, người làm mô hình và người mua cần tìm nguồn linh kiện.
Khi nào nên dùng
- ✓Khi bạn cần tìm một linh kiện điện tử cụ thể, chẳng hạn tụ điện hoặc chip.
- ✓Khi bạn muốn so sánh giá và tồn kho giữa các nhà cung cấp.
- ✓Khi một linh kiện quá đắt hoặc hết hàng và bạn cần phương án thay thế.
Liên kết skill
https://github.com/andrewyng/context-hub/blob/main/content/sourceparts/skills/electronics-sourcing/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn tìm tụ điện 100nF 50V X7R 0402, so sánh giá và kiểm tra xem có còn hàng không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm theo mã linh kiện hoặc theo thông số, rồi kiểm tra chi tiết, giá và tồn kho. Nếu linh kiện quá đắt hoặc không có sẵn, agent tìm linh kiện thay thế.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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_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 wait
Câu hỏi thường gặp
Khi nào nên cung cấp thêm chi tiết khi tìm kiếm?
Skill gợi ý tìm theo thông số khi bạn đưa ra ba giá trị cụ thể trở lên.
Tại sao cần kiểm tra cả tồn kho lẫn giá?
Skill nói nên kiểm tra cả giá và tình trạng còn hàng trước khi quyết định chọn linh kiện.
Nó dùng công cụ nào?
Nó dùng các công cụ parts-mcp để tìm kiếm và kiểm tra linh kiện.
Chi tiết
Mô tả gốc của tác giả
Guide for AI agents to source electronic components using parts-mcp — tool sequencing, decision patterns, and multi-step workflows
repo: andrewyng/context-hub
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11276
- Giấy phép
- MIT
- Cập nhật
- 31/5/2026
Bình luận
- …
Thêm skill từ kho mã này
get-api-docs
14kGiúp agent của bạn tải tài liệu hiện tại cho các API và thư viện bên thứ ba trước khi viết mã, thay vì dựa vào trí nhớ cũ.
bloc-cubit
14kDạy agent của bạn cách quản lý trạng thái ứng dụng Flutter bằng Bloc hoặc Cubit, gồm khi nào chọn loại nào và thiết lập mặc định an toàn để test.
riverpod
14kDạy agent của bạn quản lý trạng thái Flutter bằng Riverpod: provider, dữ liệu bất đồng bộ và kiểm thử, với mặc định hợp lý cho từng trường hợp.
document-extraction
14kGiúp agent của bạn đọc PDF, hình ảnh và bảng tính, chuyển thành văn bản sạch và lấy các trường như tổng hóa đơn bằng dịch vụ ADE của LandingAI.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.