Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Easyeda Lcsc Sourcing

ASecurity

Fetch real LCSC/EasyEDA component catalog data over plain HTTPS: resolve an MPN to its LCSC part code, download the combined symbol+footprint JSON from the EasyEDA API, grab the official datasheet PDF, and convert the geometry into a DipTrace .elixml library fragment for schematic/PCB builds. Use when the user asks to source parts, download a datasheet, get a component symbol or footprint from EasyEDA/LCSC/JLCPCB, or feed vendor geometry into the headless DipTrace build pipeline. Not for the ...

23 stars
0 votes
0 copies
0 views
Added 9/19/2026
toolspythongobashapidocumentation

Works with

apimcp

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add fireostendere/mcp_diptrace --skill easyeda-lcsc-sourcing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Easyeda Lcsc Sourcing?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Easyeda Lcsc Sourcing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fireostendere-easyeda-lcsc-sourcing/badge)](https://www.skillsdirectory.com/skills/fireostendere-easyeda-lcsc-sourcing)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: easyeda-lcsc-sourcing
description: >
  Fetch real LCSC/EasyEDA component catalog data over plain HTTPS: resolve an
  MPN to its LCSC part code, download the combined symbol+footprint JSON from
  the EasyEDA API, grab the official datasheet PDF, and convert the geometry
  into a DipTrace .elixml library fragment for schematic/PCB builds. Use when
  the user asks to source parts, download a datasheet, get a component symbol
  or footprint from EasyEDA/LCSC/JLCPCB, or feed vendor geometry into the
  headless DipTrace build pipeline. Not for the EasyEDA Pro editor MCP and not
  for stock/price queries at scale.
---

# EasyEDA / LCSC Component Sourcing

Verified against the live endpoints on 2026-08-25. All commands are stdlib-only
(`curl`, `python3`). Rate-limit yourself: ~1 request/second, cache everything
you download into the project's `vendor/` directory.

## Verified pipeline

### 1. Resolve MPN -> LCSC part code

LCSC's own search APIs (`wmsc.lcsc.com/wmsc/...`, `cart.jlcpcb.com/shoppingCart/
...`) are dead or auth-walled. Two working options:

- DuckDuckGo HTML endpoint (scriptable, no JS):

```bash
curl -sSL -m 20 -A "Mozilla/5.0" \
  "https://html.duckduckgo.com/html/?q=INA226AIDGSR+lcsc+product-detail" \
| grep -oE 'lcsc\.com/product-detail/(C[0-9]{6,8})\.html' | head -1
```

- Or any web-search tool with the query `<MPN> lcsc product detail`.
- If you already have the code (`C2980299`), skip this step.

### 2. Product page -> EasyEDA uuids + datasheet URL

`item.lcsc.com` may not resolve; use `www.lcsc.com`:

```bash
curl -sSL -m 25 -A "Mozilla/5.0" \
  "https://www.lcsc.com/product-detail/C165948.html" -o item.html
grep -oE 'component_svgs/prod/[a-f0-9]{32}' item.html | sort -u
grep -oE '"pdfUrl":"[^"]+"' item.html
```

The page embeds one or more `image.easyeda.com/component_svgs/prod/<uuid>.svg`
previews (symbol-only doc and usually a combined doc) plus a
`"pdfUrl":"https://datasheet.lcsc.com/datasheet/pdf/<uuid>.pdf?productCode=C..."`
field.

### 3. Download the combined component JSON

The authoritative geometry lives behind:

```bash
curl -sS "https://easyeda.com/api/components/<uuid>" > C165948.json
```

Response shape (same as historical `vendor/*.json` files):

- `result.dataStr.shape` — **symbol**: `P~show~0~<pin>~<x>~<y>~...` pins,
  `R~...` body rectangle;
- `result.packageDetail.dataStr.shape` — **footprint**: `PAD~RECT~...`,
  `TRACK~...`, `CIRCLE~...` entries, plus `packageDetail.title` (land-pattern
  name) and `dataStr.head.x/y` (footprint origin);
- `result.uuid`, `result.packageDetail.uuid` — provenance for AddFields.

If several svg uuids were found on the page, call the API for each and keep the
one whose `result.packageDetail` is non-null (that is the combined
symbol+footprint document).

### 4. Datasheet PDF

Direct download, no viewer:

```bash
curl -sSL -m 30 -A "Mozilla/5.0" "<pdfUrl>" -o C165948.pdf
file C165948.pdf   # must say: PDF document
```

Espressif moved its own docs to `documentation.espressif.com`; the old
`espressif.com/sites/default/files/documentation/*.pdf` links now return HTML.
For Espressif parts use `https://documentation.espressif.com/<doc>_en.pdf`.

### 5. Convert to DipTrace .elixml

Follow the proven converter pattern in
`attiny85-arduino-clone/convert_lcsc_c2845237.py`: parse the `P~show~...`
symbol pins and the footprint `PAD~RECT~...` records, emit
`Library/Library/PadStyles` + `Patterns` + `Library/Components` XML
(units are EasyEDA 1/100 inch -> multiply by 0.254 mm), validate with the repo
component/pattern validators, then import through `_component_definitions`
(`diptrace_mcp.services.builtin_library`) during schematic build.

Never hand-draw a component before this lookup documented zero exact matches
(house rule: DipTrace catalog -> LCSC/EasyEDA -> custom).

## One-shot helper

`fetch_component.py` in this directory automates steps 1-4:

```bash
python3 fetch_component.py INA226AIDGSR --out vendor     # by MPN
python3 fetch_component.py C2980299 --out vendor          # by LCSC code
# writes vendor/C2980299.json + vendor/C2980299.pdf, prints the summary
```

## Failure modes

- Endpoints change silently: always `file`-check downloads and assert
  `result.packageDetail` before converting; record the check date in the
  project `COMPONENT_PROVENANCE.md`.
- Some parts have no EasyEDA library at all (page has no `component_svgs`);
  fall back to the manufacturer land pattern from the datasheet and document it.
- Do not scrape search pages in bulk; keep lookups targeted and cached.

Attribution

fireostenderefireostendere
View sourceMore from fireostendere →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1066600 votes
View all in tools →