Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

lcsclcsc 搜索

Agent Skill

lcsc 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,304

周安装

56

GitHub Stars

251

下载量

457
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lcsc(lcsc 搜索)
来源仓库:https://github.com/aklofas/kicad-happy
仓库路径:skills/lcsc
安装命令:
npx skills add https://github.com/aklofas/kicad-happy --skill lcsc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aklofas/kicad-happy --skill lcsc

简介

用于电子元器件参数查询、Datasheet 获取和 JLCPCB 产线下单。

  • 支持 LCSC 元件库检索并与 KiCad 原理图自动联动提取 MPN。
  • 适合 PCB 设计与 BOM 管理流程中的元件选型与采购环节。
  • 安装前建议确认权限范围和维护状态,以及是否会调用外部 API 或导出文件。
  • lcsc 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

LCSC Electronics — Component Search, Datasheets & Ordering

Related Skills

SkillPurpose
kicadSchematic analysis — extracts MPNs for part lookup
bomBOM management — orchestrates sourcing across distributors
jlcpcbPCB assembly — shares the same parts library
spiceUses 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

jlcsearch API Reference

The jlcsearch community API is the recommended way to search LCSC. No authentication required.

Base URL: https://jlcsearch.tscircuit.com

General Search

GET /api/search?q=<query>&limit=20&full=true

Parameters:

  • q — search query (matches MPN, LCSC code, or description keywords)
  • package — optional footprint filter (e.g., 0402)
  • limit — max results (default 100)
  • full — set to true to include all fields (datasheet URL, specs, stock per warehouse)

Category-Specific Search

GET /resistors/list.json?search=10k+0402
GET /capacitors/list.json?search=100nF+0402
GET /microcontrollers/list.json?search=STM32
GET /voltage_regulators/list.json?search=3.3V

Response Format

Results are returned as {"components": [...]}. With full=true, each component has:

{
  "lcsc": 14663,
  "mfr": "GRM155R71C104KA88D",
  "package": "0402",
  "description": "",
  "datasheet": "https://www.lcsc.com/datasheet/...",
  "stock": 2751535,
  "price": [{"qFrom": 1, "qTo": 9, "price": 0.0069}, ...],
  "basic": 0,
  "extra": {
    "number": "C71629",
    "mpn": "GRM155R71C104KA88D",
    "manufacturer": {"id": 4, "name": "Murata Electronics"},
    "package": "0402",
    "description": "16V 100nF X7R ±10% 0402 ...",
    "quantity": 2751535,
    "whs-js": 1234567,
    "whs-zh": 567890,
    "whs-hk": 0,
    "moq": 100,
    "order_multiple": 100,
    "packaging": "Tape & Reel (TR)",
    "packaging_num": 10000,
    "datasheet": {"pdf": "https://wmsc.lcsc.com/wmsc/upload/file/pdf/v2/lcsc/...pdf"},
    "images": [{"96x96": "...", "224x224": "...", "900x900": "..."}],
    "rohs": true,
    "url": "https://www.lcsc.com/product-detail/...",
    "attributes": {
      "Capacitance": "100nF",
      "Voltage Rated": "16V",
      "Temperature Coefficient": "X7R",
      "Tolerance": "±10%"
    },
    "prices": [{"min_qty": 100, "max_qty": 499, "currency": "USD", "price": 0.0048}, ...]
  }
}

Key fields:

  • lcsc — numeric LCSC ID (without "C" prefix)
  • extra.number — full LCSC code with prefix (e.g., C71629)
  • extra.mpn — manufacturer part number
  • extra.manufacturer.name — manufacturer
  • extra.datasheet.pdfdirect PDF URL (wmsc.lcsc.com CDN, downloads without auth)
  • extra.attributes — parametric specs (capacitance, voltage, etc.)
  • extra.quantity — total stock across all warehouses
  • extra.whs-js, extra.whs-zh, extra.whs-hk — stock per warehouse
  • basic1 if JLCPCB basic part (no setup fee), 0 if extended
  • extra.moq — minimum order quantity
  • extra.order_multiple — must order in multiples of this
  • extra.rohs — RoHS compliance (boolean)

Rate Limits

The jlcsearch API is community-run with no documented rate limits, but be respectful — use delays of 0.5s between calls.

Datasheet Download & Sync

LCSC's CDN serves datasheet PDFs directly — no bot protection, no special headers needed. This makes LCSC a reliable datasheet source alongside DigiKey.

Datasheet Directory Sync

Use sync_datasheets_lcsc.py to maintain a datasheets/ directory alongside a KiCad project. Same workflow and manifest.json format as the DigiKey and Mouser skills. No API key required.

# Sync datasheets for a KiCad project
python3 <skill-path>/scripts/sync_datasheets_lcsc.py <file.kicad_sch>

# Preview what would be downloaded
python3 <skill-path>/scripts/sync_datasheets_lcsc.py <file.kicad_sch> --dry-run

# Retry previously failed downloads
python3 <skill-path>/scripts/sync_datasheets_lcsc.py <file.kicad_sch> --force

# Custom output directory
python3 <skill-path>/scripts/sync_datasheets_lcsc.py <file.kicad_sch> -o ./my-datasheets

# Parallel downloads (3 workers)
python3 <skill-path>/scripts/sync_datasheets_lcsc.py <file.kicad_sch> --parallel 3

# Batch mode — sync from a plain MPN list (no KiCad project required)
python3 <skill-path>/scripts/sync_datasheets_lcsc.py --mpn-list mpns.txt --output ./datasheets

MPN-list batch mode (KH-312) — when you have a list of MPNs but no KiCad project to point at. One MPN per line; blank lines and # comments (full-line and inline) are skipped; generic values are filtered via is_real_mpn() and de-duplicated. Output defaults to ./datasheets/ in the current working directory when --output is omitted.

The script:

  • Runs the kicad schematic analyzer to extract components, MPNs, and LCSC codes
  • Accepts any identifier — MPN, LCSC code, or other distributor PNs from KiCad symbol properties
  • Prefers LCSC code for search (exact match) — falls back to MPN keyword search
  • Falls back to wmsc.lcsc.com API when jlcsearch has no results for an LCSC code (Cxxxxx)
  • Downloads from LCSC CDN — direct PDF URLs, no bot protection
  • Writes manifest.json manifest — same format as DigiKey/Mouser skills
  • Verifies PDF content — checks MPN, manufacturer, and description keywords
  • Rate-limited — 0.5s between API calls (configurable with --delay)
  • Saves progress incrementally — safe to interrupt

Single Datasheet Download

Use fetch_datasheet_lcsc.py for one-off downloads.

# Search by MPN
python3 <skill-path>/scripts/fetch_datasheet_lcsc.py --search "GRM155R71C104KA88D" -o datasheet.pdf

# Search by LCSC code
python3 <skill-path>/scripts/fetch_datasheet_lcsc.py --search "C14663" -o datasheet.pdf

# Direct URL download
python3 <skill-path>/scripts/fetch_datasheet_lcsc.py "https://wmsc.lcsc.com/..." -o datasheet.pdf

# JSON output
python3 <skill-path>/scripts/fetch_datasheet_lcsc.py --search "C14663" --json

The script:

  • OS-agnostic — uses requestsurllibplaywright fallback chain (no wget/curl)
  • Validates PDF headers — rejects HTML error pages
  • Falls back to alternative manufacturer sources when LCSC URL fails
  • Exit codes: 0 = success, 1 = download failed, 2 = search/API error
  • Dependencies:

- pip install requests (recommended; urllib fallback works fine for LCSC) - pip install playwright && playwright install chromium (optional; rarely needed for LCSC)

LCSC Official API (Requires Approval)

Base URL: https://ips.lcsc.com. Requires API key + signature authentication. Contact support@lcsc.com for access. Rarely needed — jlcsearch covers most use cases.

Web Search Fallback

If the jlcsearch API is unavailable, search LCSC by fetching the website directly:

https://www.lcsc.com/search?q=<query>

Cross-Referencing & Missing Equivalents

LCSC part numbers are specific to the LCSC/JLCPCB ecosystem. Use the extra.mpn field to cross-reference on DigiKey/Mouser.

When an MPN has no exact LCSC match:

  1. Search by key parameters (e.g., "100nF 0402 X7R 16V")
  2. Look for pin-compatible alternatives from Chinese manufacturers
  3. Verify specs and footprint match — pad dimensions can vary even within the same package size
  4. As a last resort, mark as "consigned" and source separately

Tips

  • basic field matters — JLCPCB basic parts have no setup fee; extended parts cost $3 each
  • Check stock per warehouse (whs-js, whs-zh, whs-hk) — availability varies
  • moq and order_multiple — many parts require minimum quantities or specific multiples
  • Datasheet quality varies for Chinese manufacturers — cross-reference MPN on DigiKey for better docs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.03%
按下载量换算174

Claude

29.28%
按下载量换算134

Cursor

17.31%
按下载量换算79

Gemini CLI

8.94%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills