← 返回 Skills 市场
g0head

KiCad PCB

作者 G0HEAD · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2333
总下载
2
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install kicad-pcb
功能描述
Automate PCB design with KiCad. Create schematics, design boards, export Gerbers, order from PCBWay. Full design-to-manufacturing pipeline.
使用说明 (SKILL.md)

🔧 KiCad PCB Automation

Design → Prototype → Manufacture

Automate PCB design workflows using KiCad. From natural language circuit descriptions to manufacturing-ready Gerber files.

What This Skill Does

  1. Design — Create schematics from circuit descriptions
  2. Layout — Design PCB layouts with component placement
  3. Verify — Run DRC checks, generate previews for review
  4. Export — Generate manufacturing files (Gerbers, drill files, BOM)
  5. Order — Prepare and place orders on PCBWay

Requirements

KiCad Installation

# Ubuntu/Debian
sudo add-apt-repository ppa:kicad/kicad-8.0-releases
sudo apt update
sudo apt install kicad

# Verify CLI
kicad-cli --version

Python Dependencies

pip install pillow cairosvg

Quick Start

# 1. Create a new project
python3 scripts/kicad_pcb.py new "LED Blinker" --description "555 timer LED blinker circuit"

# 2. Add components to schematic
python3 scripts/kicad_pcb.py add-component NE555 U1
python3 scripts/kicad_pcb.py add-component LED D1
python3 scripts/kicad_pcb.py add-component "R 1K" R1 R2

# 3. Generate schematic preview (for review)
python3 scripts/kicad_pcb.py preview-schematic

# 4. Run design rule check
python3 scripts/kicad_pcb.py drc

# 5. Export manufacturing files
python3 scripts/kicad_pcb.py export-gerbers

# 6. Prepare PCBWay order
python3 scripts/kicad_pcb.py pcbway-quote --quantity 5

Commands

Project Management

Command Description
new \x3Cname> Create new KiCad project
open \x3Cpath> Open existing project
info Show current project info
list-projects List recent projects

Schematic Design

Command Description
add-component \x3Ctype> \x3Cref> Add component to schematic
connect \x3Cref1.pin> \x3Cref2.pin> Wire components together
add-net \x3Cname> \x3Crefs...> Create named net
preview-schematic Generate schematic image
erc Run electrical rules check

PCB Layout

Command Description
import-netlist Import schematic to PCB
auto-place Auto-place components
auto-route Auto-route traces
set-board-size \x3CW>x\x3CH> Set board dimensions (mm)
preview-pcb Generate PCB preview images
drc Run design rules check

Manufacturing Export

Command Description
export-gerbers Export Gerber files
export-drill Export drill files
export-bom Export bill of materials
export-pos Export pick-and-place file
export-3d Export 3D model (STEP/GLB)
package-for-fab Create ZIP with all files

PCBWay Integration

Command Description
pcbway-quote Get instant quote
pcbway-upload Upload Gerbers to PCBWay
pcbway-cart Add to cart (requires auth)

Workflow: Natural Language to PCB

Step 1: Describe Your Circuit

Tell me what you want to build:

"I need a simple 555 timer circuit that blinks an LED at about 1Hz. Should run on 9V battery, through-hole components for easy soldering."

Step 2: I'll Generate the Design

# Create project
kicad_pcb.py new "LED_Blinker_555"

# Add components based on description
kicad_pcb.py from-description "555 timer LED blinker, 1Hz, 9V battery"

Step 3: Review & Confirm

I'll show you:

  • Schematic preview image
  • Component list (BOM)
  • Calculated values (resistors for timing, etc.)

You confirm or request changes.

Step 4: PCB Layout

# Import to PCB
kicad_pcb.py import-netlist

# Auto-layout (or manual guidance)
kicad_pcb.py auto-place --strategy compact
kicad_pcb.py set-board-size 50x30

# Preview
kicad_pcb.py preview-pcb --layers F.Cu,B.Cu,F.Silkscreen

Step 5: Manufacturing

# Run final checks
kicad_pcb.py drc --strict

# Export everything
kicad_pcb.py package-for-fab --output LED_Blinker_fab.zip

# Get quote
kicad_pcb.py pcbway-quote --quantity 10 --layers 2 --thickness 1.6

Common Circuit Templates

templates/555_astable.kicad_sch

Classic 555 timer in astable mode. Parameters:

  • R1, R2: Timing resistors
  • C1: Timing capacitor
  • Freq ≈ 1.44 / ((R1 + 2*R2) * C1)

templates/arduino_shield.kicad_pcb

Arduino Uno shield template with:

  • Header footprints
  • Mounting holes
  • Power rails

templates/usb_c_power.kicad_sch

USB-C power delivery (5V):

  • USB-C connector
  • CC resistors
  • ESD protection

Configuration

Create ~/.kicad-pcb/config.json:

{
  "default_fab": "pcbway",
  "pcbway": {
    "email": "[email protected]",
    "default_options": {
      "layers": 2,
      "thickness": 1.6,
      "color": "green",
      "surface_finish": "hasl"
    }
  },
  "kicad_path": "/usr/bin/kicad-cli",
  "projects_dir": "~/kicad-projects",
  "auto_backup": true
}

Design Review Protocol

Before ordering, I'll always:

  1. Show schematic — Visual confirmation of circuit
  2. Show PCB renders — Top, bottom, 3D view
  3. List BOM — All components with values
  4. Report DRC — Any warnings or errors
  5. Show quote — Cost breakdown before ordering

I will NOT auto-order without explicit confirmation.

PCBWay Order Flow (Current)

  1. Export Gerbers + drill files
  2. Create ZIP package
  3. Manual step: You upload to pcbway.com
  4. Future: Automated upload + cart placement

Cost Reference

PCBWay typical pricing (2-layer, 100x100mm, qty 5):

  • Standard (5-7 days): ~$5
  • Express (3-4 days): ~$15
  • Shipping: ~$15-30 DHL

Safety Notes

⚠️ High Voltage Warning: This skill does not validate electrical safety. For mains-connected circuits, consult a qualified engineer.

⚠️ No Auto-Order (Yet): Cart placement requires your explicit confirmation.

Changelog

v1.0.0

  • Initial release
  • KiCad CLI integration
  • Schematic/PCB preview generation
  • Gerber export
  • PCBWay quote integration
  • Template system

Built by PaxSwarm

安全使用建议
This skill appears to do what it says: it creates KiCad projects, runs kicad-cli, generates Gerbers and ZIPs, and provides commands related to PCBWay. Before installing or running it, consider the following: - Inspect the full scripts: I reviewed a large portion but the provided source was truncated; review the complete scripts for any network calls, hidden endpoints, or credential-handling logic (look for requests, urllib, httpx, sockets, or subprocess calls that run curl/wget). - Understand where credentials go: PCBWay integration is mentioned. Currently SKILL.md says manual upload is required, but some commands indicate future/optional automated upload/cart placement. Confirm whether PCBWay authentication is stored in ~/.kicad-pcb/config.json (file on disk) or expected as environment variables, and prefer a manual flow or use temporary credentials if you are concerned. - Expect local file writes: the skill will create ~/.kicad-pcb/ and ~/kicad-projects/ and write project files and reports. Back up any important files and verify file locations if you have storage/permission concerns. - Run in a controlled environment first: if you are unsure about provenance (owner is unknown and repository/homepage are external), consider running the tool in a VM or isolated environment until you are comfortable. - Verify kicad-cli and dependencies are from trusted sources: install KiCad from the official site or your OS package manager. The Python dependencies are standard (pillow, cairosvg). If you want, I can further inspect the remaining (truncated) parts of scripts/kicad_pcb.py for any network or credential-handling code and re-evaluate the confidence level.
功能分析
Type: OpenClaw Skill Name: kicad-pcb Version: 1.0.0 The skill bundle is benign. The `SKILL.md` provides clear instructions for PCB design automation using KiCad, including system-level installation commands (`sudo apt install kicad`) which are necessary for the tool's functionality but do not indicate malicious intent. The `scripts/kicad_pcb.py` script primarily interacts with the local file system to manage KiCad projects and uses `subprocess.run` to execute the `kicad-cli` tool, which is a legitimate interaction with a system dependency. There is no evidence of data exfiltration, unauthorized network activity (the `pcbway-quote` command is a local estimate), persistence mechanisms, or prompt injection attempts against the agent. All actions are aligned with the stated purpose of PCB design and manufacturing preparation.
能力评估
Purpose & Capability
The name/description (KiCad automation, Gerber export, PCBWay ordering) aligns with the files and runtime behavior: the script creates projects, runs kicad-cli, exports Gerbers, packages ZIPs, and includes PCBWay-related commands. skill.json and SKILL.md consistently require kicad-cli and optional Python packages (cairosvg, pillow).
Instruction Scope
The SKILL.md stays on task: it instructs using kicad-cli, the included Python script, and a config file under ~/.kicad-pcb. It promises manual confirmation before ordering and currently requires manual upload to PCBWay. Note: SKILL.md and the script read/write files under the user's home (~/.kicad-pcb and ~/kicad-projects), which is expected for this purpose but worth understanding as the skill will create and modify those files.
Install Mechanism
There is no install spec (instruction-only with a bundled script). That minimizes supply-chain risk compared to remote fetch/install steps. The script relies on local KiCad and Python packages; installation instructions are standard and local.
Credentials
The skill declares no required environment variables or credentials, and the config file (~/.kicad-pcb/config.json) is used to store preferences (including a pcbway/email block). This is reasonable. One minor inconsistency: SKILL.md and commands mention PCBWay actions (pcbway-upload, pcbway-cart that require auth) but skill.json does not declare any credential requirement and SKILL.md does not specify how auth should be stored (env var vs config). Confirm how PCBWay credentials are handled before enabling any automated upload functionality.
Persistence & Privilege
always is false; the skill is user-invocable and may run autonomously per platform defaults. The script only writes its own config and project files in the user's home directory and does not appear to modify other skills or system-wide settings. This level of persistence and privileges is proportional to its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kicad-pcb
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kicad-pcb 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: PCB design automation with KiCad
元数据
Slug kicad-pcb
版本 1.0.0
许可证
累计安装 4
当前安装数 4
历史版本数 1
常见问题

KiCad PCB 是什么?

Automate PCB design with KiCad. Create schematics, design boards, export Gerbers, order from PCBWay. Full design-to-manufacturing pipeline. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2333 次。

如何安装 KiCad PCB?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kicad-pcb」即可一键安装,无需额外配置。

KiCad PCB 是免费的吗?

是的,KiCad PCB 完全免费(开源免费),可自由下载、安装和使用。

KiCad PCB 支持哪些平台?

KiCad PCB 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 KiCad PCB?

由 G0HEAD(@g0head)开发并维护,当前版本 v1.0.0。

💬 留言讨论