lcsc

lcsc is a skill for Claude Code from aklofas/kicad-happy. It costs 174 tokens per session (3,209 once invoked), scanned A, original, MIT.

A lookup tool for LCSC Electronics, an online distributor of electronic parts. It finds components by LCSC number or manufacturer part number, checks stock and prices, and retrieves datasheets.

In plain words
What is it for?
Use it to search parts, maintain a local datasheet folder for a KiCad project, prepare production sourcing, or seed searches from a batch list of part numbers.
Why use it?
It helps source production parts and keeps component information organized, including parts shared with LCSC's sister company, JLCPCB.

Skill for Claude Code

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

Part of the kicad-happy plugin — 11 skills shipped together

Good fit Use it to search parts, maintain a local datasheet folder for a KiCad project, prepare production sourcing, or seed searches from a batch list of part numbers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aklofas/kicad-happy/lcsc
About the project

kicad-happy is a collection of coding-agent skills and tools that inspect KiCad schematics, PCB layouts, and Gerber files for electronics design issues. It is for hardware designers who want automated reviews, simulations, datasheet checks, component sourcing, and fabrication preparation. The catalogue entries are its agent skills, rules, plugin, and instruction for integrating this workflow with coding agents.

aklofas/kicad-happy · 1,504 stars · on GitHub

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.

Any agent
npx skills add aklofas/kicad-happy --skill lcsc
Clone the repo
git clone --depth 1 https://github.com/aklofas/kicad-happy

Made for: Claude Code.

Or install kicad-happy, the plugin that ships this one along with the rest of its 11 skills.

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 lcsc

README.md
[![agentmods](https://agentmods.dev/badge/skills/aklofas/kicad-happy/lcsc/github.svg)](https://agentmods.dev/skills/aklofas/kicad-happy/lcsc)
Your own site
<a href="https://agentmods.dev/skills/aklofas/kicad-happy/lcsc"><img src="https://agentmods.dev/badge/skills/aklofas/kicad-happy/lcsc/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 lcsc

Your own site · 80×15
<a href="https://agentmods.dev/skills/aklofas/kicad-happy/lcsc"><img src="https://agentmods.dev/badge/skills/aklofas/kicad-happy/lcsc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 174 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 5 Oct 2026
  • Snyk warn 7 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00174 $0.03209
Opus 5.5 $0.00070 $0.01284
Sonnet 5.5 $0.00035 $0.00642
Haiku 4.5 $0.00017 $0.00321

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

Security

Grade A, and why

lcsc scanned grade A 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.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/fetch_datasheet_lcsc.py, scripts/search_lcsc.py, scripts/sync_datasheets_lcsc.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **OS-agnostic** — uses `requests` → `urllib` → `playwright` fallback chain (no wget/curl)
skills/lcsc/SKILL.md · 242 lines

How it starts

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

LCSC Electronics — Component Search, Datasheets & Ordering

Skill Purpose
kicad Schematic analysis — extracts MPNs for part lookup
bom BOM management — orchestrates sourcing across distributors
jlcpcb PCB assembly — shares the same parts library
spice Uses LCSC parametric data for behavioral SPICE models (no auth needed)

LCSC is JLCPCB's sister company — they share the same parts library and Cxxxxx part numbers. Use LCSC for production sourcing (assembled boards from JLCPCB/PCBWay). DigiKey/Mouser are for prototyping. For BOM management and export workflows, see bom.

Key Differences from DigiKey/Mouser

  • No API key needed — jlcsearch community API is free and open
  • Lower prices — especially for passives and Chinese-manufactured ICs
  • JLCPCB integration — same LCSC part numbers used in JLCPCB assembly BOMs
  • Direct PDF downloads — LCSC's CDN (wmsc.lcsc.com) serves datasheets without bot protection
  • Low MOQ — many parts available in quantities as low as 1
  • Warehouses — Shenzhen (JS), Zhuhai (ZH), Hong Kong (HK)
  • Website: https://www.lcsc.com

LCSC Part Numbers

Format: Cxxxxx (e.g., C14663). This is the universal identifier across both LCSC and JLCPCB. Use it for:

  • Direct ordering on LCSC
  • BOM matching in JLCPCB assembly (see jlcpcb skill)
  • Cross-referencing between platforms

Use search_lcsc.py to search LCSC and JLCPCB for electronic components, check live stock, inspect pricing tiers, identify basic vs. extended parts, and fetch parametric attributes. No API key required.

# Search by keyword or description
python3 <skill-path>/scripts/search_lcsc.py "tactile switch"

# Search for basic parts only (no JLCPCB extended loading fees)
python3 <skill-path>/scripts/search_lcsc.py "0805 100R" --basic

# Filter by package/footprint and stock
python3 <skill-path>/scripts/search_lcsc.py "red led" --package 0805 --in-stock

# Inspect full component details (manufacturer, datasheet URL, price breaks, parametric attributes)
python3 <skill-path>/scripts/search_lcsc.py "C318884" --details

# Output machine-readable JSON (for scripts and agent workflows)
python3 <skill-path>/scripts/search_lcsc.py "ME2108" --limit 5 --json

# Sort results by price or stock
python3 <skill-path>/scripts/search_lcsc.py "microcontroller STM32" --sort price

# Parametric category search (rows carry package, stock, price and attributes)
python3 <skill-path>/scripts/search_lcsc.py "STM32" --category microcontrollers

Read the full file on GitHub · 242 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · +18 lines 84b5af2fc0e9
  2. 1mo ago First seen · 224 lines · 174 tokens per session scan A 1d295aa3f4e1

Subscribe to this mod's changes

lcsc is a skill published in the GitHub repository aklofas/kicad-happy (1,504 stars, last pushed yesterday), licensed MIT. It adds 174 tokens to every session and 3,209 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kicad-jlcpcb-workflow

Use this skill when the user asks to "design a PCB", "make a board", "build a PCB project", "order from JLCPCB", "create a schematic", "source LCSC parts", "wire up a board", "generate a PCB from a BOM", or any KiCad + JLCPCB workflow. Also use when working with .kicadpro or .kicadpcb files. Handles project setup…

BeckhamLabsLLC/kicad-jlcpcb · 140 tokens

pcb-layout

Use when placing footprints on a PCB, routing traces, adding vias or copper zones, deciding trace widths, or planning board layout strategy. Also use when the user asks about PCB stackup, ground planes, trace spacing, or component placement on a board.

ProductOfAmerica/mcp-server-kicad · 54 tokens

schematic-design

Use when executing a schematic placement plan (plan mode) or modifying an existing schematic (modification mode).

ProductOfAmerica/mcp-server-kicad · 25 tokens

verification

Use when running ERC or DRC checks, fixing electrical or design rule violations, debugging unconnected nets, resolving "power pin not driven" errors, or preparing a design for manufacturing export. Also use when the user says "my ERC has errors" or "DRC is failing.".

ProductOfAmerica/mcp-server-kicad · 59 tokens

circuit-design

Use when designing an electronic circuit from requirements, choosing topology or regulator type, selecting component values, planning protection circuits, or deciding what goes on a board before schematic capture begins. Also use when the user asks "what components do I need" or "how should I power this.".

ProductOfAmerica/mcp-server-kicad · 60 tokens

using-kicad

Use when starting any conversation involving electronics, KiCad, PCB design, schematic capture, circuit design, or EDA tasks.

ProductOfAmerica/mcp-server-kicad · 30 tokens