pcb
БесплатноБез исполняемых скриптовНе проверенDesigns, edits and reviews KiCad circuit boards and schematics (.kicad_pcb, .kicad_sch). Use for any request about a PCB, a schematic or a circuit - parts and…
от earthtojake★ 27 943 звезды на GitHubОб этом скилле
PCB design
A board is its native KiCad files: the .kicad_pcb, its schematic and its project. text-to-cad reads,
draws and inspects them itself, and runs KiCad headless for everything KiCad owns: ERC, DRC, exports
and edits through its IPC API. There is no board model or build step; the files are the source.
Start with the task
| Task | Start with | Reference |
|---|---|---|
| Read a board or a schematic | kicad_pcb.read, kicad_sch.read in a script; cad kicad_pcb inspect |
Checks, schematic |
| Draw or edit a schematic | kicad_sch.edit, then cad kicad_sch erc |
Schematic |
| Choose parts and footprints | The datasheet, then the project's libraries | Parts |
| Create or edit a board | kicad_pcb.edit (below) |
Native files |
| Place and route | The schematic's netlist, one functional group at a time | Layout, placement |
| Check a change | cad kicad_pcb drc, snapshots |
Check each change |
| Review before ordering | DRC, then measurements, then the checklist | Before ordering |
| Export fabrication files, a BOM, or a STEP for an enclosure | cad kicad_pcb export, cad kicad_sch export |
Manufacturing |
| Show a board or a schematic; what the person can see or pick in it; a missing 3D model | cad viewer --json FILE |
Show the model, views |
Setup
Written for cad==0.11.21. Before first use in a chat, run cad --version. If it fails, or cad is missing or older
than 0.11.12, run uv tool install --force cad. If it is older than the release this skill was written for, run
cad update.
If cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin: https://github.com/earthtojake/text-to-cad A project written for an earlier version may need changes; the migration guides say what: https://github.com/earthtojake/text-to-cad/tree/main/docs/migrations
Reading and inspecting a board or schematic needs no KiCad. DRC, ERC, exports, edits, and drawing a
board (its copper pours are refilled on a copy first) run KiCad's own kicad-cli and IPC API, which
cad fetches the first time one is needed (kicode: about 100 MB to download, 340 MB on disk, once);
cad run gives a script the same. Things to know about that KiCad:
- It is a nightly (10.99). A file it saves is in the nightly's format, which a stable KiCad app refuses to open; viewing and snapshots still work, and the viewer tells the person which KiCad on this computer can open the file. Say so before the first save of a board the person opens in a stable KiCad.
- It runs headless with private settings, never the person's KiCad app or its settings: never open
a board in KiCad's app to check it. A project library row that names a stock library as KiCad's own
tables do (
${KICAD10_SYMBOL_DIR}/Device.kicad_sym) is read from the KiCad the person installed; with none installed, ERC warnslib_symbol_issuesand DRClib_footprint_issues. A project that carries its libraries (${KIPRJMOD}) needs no KiCad installed. - An edit needs a local socket. It runs KiCad's edit server on a Unix socket in a private folder
in the temporary folder (
TMPDIR; a named pipe on Windows), and reaches no network host. A shell sandbox that refuses local sockets (an agent app's default) stops an edit at once, saying so: ask the person to approve that onecad run, through the app's own approval prompt, for that socket alone. Inspecting, DRC, exports and snapshots run inside the sandbox. - A KiCad the person installed is never run. Where the fetched one does not run on a computer,
CAD_KICAD_CLInames anotherkicad-cli(KiCad 9 or newer; a nightly's for an edit). CAD_KICAD_REFILL=0in the server's environment turns the refill off: showing a board then downloads nothing, and its pours are drawn as the file saved them.
Native files are the source
Edit the .kicad_pcb itself and keep its .kicad_pro, .kicad_dru, libraries and schematic beside
it. Reading or showing a board never writes it. Reread the file before an edit, preserve records and
UUIDs you do not understand, and never regenerate an existing project from a partial description.
A board changes inside a with block that hands over KiPy's open Board and saves at the end only if
the block changed it; a block that raises saves nothing. kicad_sch.edit does the same for a schematic
(schematic). Run the script with cad run board.py:
from cad import kicad_pcb
from kicode.util.units import from_mm
BOARD = "board.kicad_pcb"
with kicad_pcb.edit(BOARD) as b: # the board file is the source; the block edits it in
Установить pcb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pcb?
Designs, edits and reviews KiCad circuit boards and schematics (.kicad_pcb, .kicad_sch). Use for any request about a PCB, a schematic or a circuit - parts and nets, placement and routing, ERC and DRC, a review before ordering from JLCPCB, PCBWay or another fab, and fabrication files, a BOM, a netlist or a STEP of the board. Not for the enclosure or other mechanical parts, which the cad skill makes.
Как установить скилл pcb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pcb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic