part-sourcer

part-sourcer is an agent for Claude Code from BeckhamLabsLLC/kicad-jlcpcb. It costs 198 tokens per session (1,419 once invoked), scanned C, original, MIT.

An agent that finds LCSC electronic components matching a requested specification, such as voltage, package shape, and output capacity. LCSC is an electronics parts supplier used by JLCPCB.

In plain words
What is it for?
Use it to get one recommended part and two alternatives, with notes about stock, library tier, cost impact, or any requirements that had to be relaxed.
Why use it?
It reduces the time spent searching through parts and highlights whether a suitable component is in JLCPCB’s basic library or may add a setup fee.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the kicad-jlcpcb plugin — 1 skill, 2 commands, 1 agent, 1 MCP server shipped together

Good fit Use it to get one recommended part and two alternatives, with notes about stock, library tier, cost impact, or any requirements that had to be relaxed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer
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.

Clone the repo
git clone --depth 1 https://github.com/BeckhamLabsLLC/kicad-jlcpcb

Made for: Claude Code.

Or install kicad-jlcpcb, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent, 1 MCP server.

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 part-sourcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer/github.svg)](https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer)
Your own site
<a href="https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer"><img src="https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer/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 part-sourcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer"><img src="https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 198 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00198 $0.01419
Opus 5.5 $0.00079 $0.00568
Sonnet 5.5 $0.00040 $0.00284
Haiku 4.5 $0.00020 $0.00142

Measured 1mo ago against content hash 720431695081, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

part-sourcer scanned grade C 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 1mo 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

- **Package substitution is OK with a warning.** SOT-223 instead of SOT-23-5, 0805 instead of 0603 — flag it but don't refuse.
agents/part-sourcer.md · 102 lines

How it starts

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

Part Sourcer Agent

Find the best JLCPCB-stocked LCSC part for a given generic spec, with a hard preference for the basic library (no setup fee) over the extended library.

Sourcing strategy

  1. Try basic-tier first. Call lcsc_search with basic_only=true and stock_min=100 to filter out parts at risk of going out of stock.

    Write a short query. The catalog AND-matches every word, so a spec restated as prose finds nothing. Use the distinctive terms: TVS SMB 30V, not bidirectional TVS diode rated 30 volts in an SMB package.

    Keep the value and package in the query (10k 0603, 0.1uF 0402). A resistance or capacitance routes the search to an exact structured lookup, which is the only reliable way to find basic passives — many of them have no description in the catalog and cannot be found by text at all. 0.1uF and 100nF are treated as the same part, as are 4k7 and 4.7k.

  2. If basic returns results: pick the top match, then pick 2 alternates from the same call. Done.

  3. If basic returns nothing: call lcsc_search again with basic_only=false. Pick the best extended-tier match. Include a clear cost-impact warning in the output.

  4. If extended also returns nothing: loosen the query and try again, calling out what you loosened. Drop tolerance and temperature rating first, then the package. Do not just add more words — the search narrows automatically, and extra words only ever reduce the match set.

  5. If still nothing: return an explicit "no match" with the queries you tried, so the calling command can ask the user for help.

Stock you cannot verify

A result carrying stock_unknown was resolved through a source that does not report JLCPCB SMT inventory — its stock reads 0 regardless of the real figure. Never present that 0 as a fact, and never reject a part for it. Report the stock as unverified in your rationale and let the caller decide.

Output format

Return a structured response, not prose:

{
  "spec": "3.3V LDO, SOT-23-5, 500mA",
  "pick": {
    "lcsc": "C6186",
    "mfr_part": "AMS1117-3.3",
    "value": "AMS1117-3.3",
    "package": "SOT-223",
    "tier": "basic",
    "stock": 850000,
    "price_usd": 0.045,
    "rationale": "AMS1117-3.3 is the canonical basic-tier 3.3V LDO at JLCPCB. SOT-223 instead of SOT-23-5 because the requested package isn't in basic — flag this for user confirmation."
  },
  "alternates": [
    {
      "lcsc": "C5446",
      "mfr_part": "ME6211C33M5G-N",
      "tier": "basic",
      "package": "SOT-23-5",
      "rationale": "Exact package match, basic tier, but lower stock than AMS1117."
    },
    {
      "lcsc": "...",
      "tier": "extended",
      "rationale": "Extended-tier with the exact requested specs. ~$3 setup fee."
    }
  ],
  "warnings": [
    "Best basic-tier match uses SOT-223 instead of the requested SOT-23-5 package. Confirm with the user."
  ]
}

Read the full file on GitHub · 102 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. 1mo ago Changed · +6 lines 720431695081
  2. 1mo ago Changed · +12 lines e08daf02f6bc
  3. 1mo ago First seen · 84 lines · 198 tokens per session scan C e0ca5d0b7962

Subscribe to this mod's changes

part-sourcer is an agent published in the GitHub repository BeckhamLabsLLC/kicad-jlcpcb (26 stars, last pushed 25d ago), licensed MIT. It adds 198 tokens to every session and 1,419 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ha-pattern-analyst

Analyzes HA history artifacts and entity data to identify patterns, anomalies, and automation opportunities. Cheap and fast — read-only.

gtapps/hermitd · 31 tokens

ha-pattern-analyst

Analyzes HA history artifacts and entity data to identify patterns, anomalies, and automation opportunities. Cheap and fast — read-only.

gtapps/claude-code-hermit · 31 tokens

bom-reviewer

Use after the circuit-design skill writes specs/bom.md, and pass it that path. Checks the BOM independently through the KiCad MCP tools: every symbol and footprint exists in its library, every IC has a decoupling capacitor, ratings keep a derating margin over the Constraints section, every external connector has input…

ProductOfAmerica/mcp-server-kicad · 105 tokens

schematic-plan-reviewer

Use after the schematic-plan skill writes specs/schematic-plan.md, and pass it that path and the path of specs/bom.md. Checks the placement and wiring plan independently through the KiCad MCP tools: every BOM part is placed, every coordinate fits the declared page inside its margins and title block, components and…

ProductOfAmerica/mcp-server-kicad · 139 tokens

kicad-design-review-agent

Performs a thorough hardware design review of a KiCAD project. Triggers: full design review, audit everything, is my board ready for fab, comprehensive check, pre-fab review.

nevenfo/kicad-agentic-mcp · 45 tokens

kicad-schematic-build-agent

Builds complete circuits from requirements or reference designs. Triggers: build this circuit, design a power supply, create an amplifier schematic, implement this reference design, wire up this IC.

nevenfo/kicad-agentic-mcp · 45 tokens