Kicad logo

Kicad

Community
znlgis
kicad

Use when doing schematic capture or PCB layout in KiCad (10.0.x) — Eeschema symbols and hierarchical sheets, Pcbnew board setup, net classes, zones, DRC/ERC, and scripting via kicad-cli (sch export pdf/netlist, pcb export gerbers/drill/pos/step) or the pcbnew Python module. Also for pcbnew wxPoint-to-VECTOR2I mismatches across versions, Gerber sets rejected by fabricators like JLC, and footprint assignment lost when syncing schematic to board.

Overview

Publisherznlgis
Repositoryopengis-skills
Skill namekicad
Stars
76
Forks
12
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by znlgis on GitHub. Read the source before you install it.

Installation

Install the Kicad AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/znlgis/opengis-skills/tree/main/cad/kicad
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/znlgis/opengis-skills.git /tmp/opengis-skills
mkdir -p .claude/skills
cp -r /tmp/opengis-skills/cad/kicad .claude/skills/kicad
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kicad in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kicad on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kicad is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

项目地址: https://gitlab.com/kicad/code/kicad

官网: https://www.kicad.org/

官方文档: https://docs.kicad.org/

API(Python): https://docs.kicad.org/doxygen-python/

许可证: GPL-3.0+

包管理器: kicad(Ubuntu PPA ppa:kicad/kicad-10.0-releases / brew install --cask kicad / Windows 安装包,最新 10.0.7 截至 2026-10)

版本: 10.0.7(GitHub 镜像 Release 10.0.7,2026-10-16;版本号 10.99.0 是下一大版本 11.0 的开发版)

概述

KiCad 主要程序:

程序用途
KiCad(项目管理)项目入口
Eeschema原理图编辑
Symbol Editor元件符号库
PcbnewPCB 布局布线
Footprint Editor封装库
3D Viewer3D 预览
GerbViewGerber 浏览
BOM 工具物料清单
CLI(KiCad 7+)自动化(kicad-cli)

当前稳定线为 10.0.x(最新 10.0.7,见文首版本行)。现代版本相对 5.x 的关键变化:

  • 文件格式改为 S-expression(.kicad_sch / .kicad_pcb / .kicad_pro),旧 .lib / .mod 需导入
  • 官方 CLI kicad-cli(7.0 起)替代旧 pcbnew_do 脚本,可无头导出制造文件
  • Python pcbnew 模块持续演进:7.0 起坐标类型由 wxPoint 换成 VECTOR2I,配 pcbnew.VECTOR2I_MM(x, y) / pcbnew.FromMM(v) 使用
  • 支持 IPC-2581 / ODB++ 等制造输出,DRC 规则支持差分对与长度匹配

安装

bash
# Linux
sudo add-apt-repository --yes ppa:kicad/kicad-10.0-releases
sudo apt install kicad

# macOS
brew install --cask kicad

# Windows: 安装包

库(Symbols/Footprints/3D Models)随主程序安装;亦可单独 kicad-symbols / kicad-footprints / kicad-packages3D 仓库 git 跟踪。


核心 API

原理图(Eeschema)要点

  • 元件:A 添加;R/L/C 等快捷键
  • 连线:W Wire、B Bus
  • 注释:Tools → Annotate Schematic
  • 电气规则:ERC(菜单 Inspect → ERC)
  • 分页:File → Schematic Setup → Page Settings;分页通过 Hierarchical Sheet
  • 总线展开:{NET[0..7]}

PCB(Pcbnew)要点

  • 板框:Edge.Cuts 层用 Polygon 或 Line 画
  • 摆件:拖动 / 旋转 / 翻面 (F)
  • 走线:X 起线、V 通孔 / 切层
  • 网络规则:File → Board Setup → Net Classes
  • 覆铜:Add Filled Zone,绑定 GND/PWR
  • DRC:Inspect → Design Rules Checker
  • 推走线:菜单 Route → Interactive Router
  • 长度调谐:Route → Tune Length

库管理

  • 全局库:Preferences → Manage Symbol/Footprint Libraries(按用户/项目级别)
  • 推荐项目级库:在项目目录新建 lib/ 放 .kicad_sym / .pretty/
  • KiCad 5.x 旧 .lib / .mod 可通过 Symbol Library Editor 导入

制造输出(Gerber + Drill)

text
File → Plot
  Layers: F.Cu, B.Cu, F.Mask, B.Mask, F.Silkscreen, B.Silkscreen, Edge.Cuts (+ inner)
  Format: Gerber (X2 推荐)
  Generate Drill Files → Excellon / Gerber X2

输出:
  *-F_Cu.gbr / *-B_Cu.gbr ...
  *-PTH.drl / *-NPTH.drl
  *-F_Pos.csv / *-B_Pos.csv  (Pick & Place)

打包成 ZIP 上传给嘉立创/PCBWay/JLC 等代工厂。


命令行自动化(CLI,KiCad 7+)

bash
# 原理图导出 PDF / 网表 / BOM
kicad-cli sch export pdf     project/main.kicad_sch -o sch.pdf
kicad-cli sch export netlist project/main.kicad_sch -o net.net
kicad-cli sch export bom     project/main.kicad_sch -o bom.csv

# Gerber + Drill(-o 是输出目录,不是文件)
kicad-cli pcb export gerbers project/board.kicad_pcb -o gerber/
kicad-cli pcb export drill   project/board.kicad_pcb -o gerber/

# Pick & Place(贴片坐标)
kicad-cli pcb export pos --format csv project/board.kicad_pcb -o pos.csv

# STEP(3D)/ BOM
kicad-cli pcb export step project/board.kicad_pcb -o board.step

# 版本自检
kicad-cli version

Python 脚本(pcbnew)

python
import pcbnew

board = pcbnew.LoadBoard("board.kicad_pcb")
for fp in board.GetFootprints():
    print(fp.GetReference(), fp.GetValue(), fp.GetPosition())

# 添加新走线
track = pcbnew.PCB_TRACK(board)
track.SetStart(pcbnew.VECTOR2I_MM(10, 10))
track.SetEnd  (pcbnew.VECTOR2I_MM(20, 10))
track.SetLayer(pcbnew.F_Cu)
track.SetWidth(pcbnew.FromMM(0.25))
board.Add(track)

pcbnew.SaveBoard("out.kicad_pcb", board)

坐标单位与类型是版本分界点:7.0 起 PCB_TRACK.SetStart 等签名接收 VECTOR2I(用 pcbnew.VECTOR2I_MM(x, y) 构造毫米坐标,pcbnew.FromMM(v) 转内部纳米单位);6.x 及更早用 wxPoint + pcbnew.FromMM。

pcbnew 是编译进 KiCad 的模块,不是 PyPI 包:Windows 用安装目录附带的 python.exe;Linux 由发行版包提供,先用 python3 -c "import pcbnew" 确认可用再写脚本,不要在系统 Python 里 pip install pcbnew。


典型工作流

输入:原理图(.kicad_sch)与封装库;输出:Gerber + 钻孔 + 贴片坐标 + BOM(CI 场景下为整套制造文件 ZIP)。

text
新建 Project (.kicad_pro)
    │
    ├── 1. 原理图 (.kicad_sch):放置元件 → 连线 → 注释 → 总线 → 分页
    │       │
    │       └── ERC(Electrical Rules Check)
    │
    ├── 2. 分配封装:Tools → Assign Footprints(CvPcb)
    │
    ├── 3. 生成网表 / 同步到 PCB(Update PCB from Schematic)
    │
    ├── 4. PCB 布局 (.kicad_pcb):摆件 → 布线 → 覆铜 → DRC
    │
    ├── 5. 3D 预览 / 导出 STEP
    │
    └── 6. 制造输出:Gerber + Drill + Pick & Place + BOM

工作流一:从原理图到 PCB 的完整设计

  1. 新建项目(.kicad_pro),在 Eeschema 中放置元件符号并联线
  2. 运行 ERC 检查电气错误,Annotate 注释元件编号
  3. 使用 CvPcb 为每个元件分配封装(Footprint)
  4. Update PCB from Schematic 同步网表到 Pcbnew
  5. 在 Pcbnew 中布局(摆件)、布线(走线)、覆铜
  6. 运行 DRC 检查设计规则,修复所有错误
  7. 导出 Gerber + Drill + Pick & Place + BOM 用于制造

工作流二:CI 自动化 Gerber 生成

  1. 在 CI 环境安装 kicad(含 kicad-cli)
  2. kicad-cli sch export netlist project/main.kicad_sch -o net.net
  3. kicad-cli pcb export gerbers project/board.kicad_pcb -o gerber/
  4. kicad-cli pcb export drill project/board.kicad_pcb -o gerber/
  5. kicad-cli pcb export pos project/board.kicad_pcb --format csv -o pos.csv
  6. 打包 Gerber + Drill 为 ZIP 上传至构建产物

性能与最佳实践

  1. 使用项目级符号/封装库,便于版本管理
  2. **网络类(Net Class)**预设差分对 / 高速信号宽度间距
  3. 覆铜后及时 Refill Zones (B) 检查
  4. DRC 在每次重要修改后运行;不要忽略红色错误
  5. 3D 模型:使用 STEP 比 WRL 体积小且更适合 STEP 联合导出
  6. 多人协作:用 Git LFS 管理 .kicad_pcb;避免冲突

常见问题

问题解决
元件找不到 footprint在 Symbol 属性中绑定 footprint,或用 CvPcb 重新分配
中文丝印选支持中文的 TTF(KiCad 6+ 起支持 TTF/OTF);更早版本仅 stroke 字体
Gerber 不全板厂常需要 F.Mask/B.Mask/F.Silk/B.Silk/Edge.Cuts/F.Cu/B.Cu + 钻孔
覆铜失效重新 Refill;检查热焊盘连接
嘉立创不识别输出格式选 X2;勾选 Plot pad on silk 关闭
kicad-cli: command not foundCLI 自 7.0 起随主程序安装;Windows 在 C:\Program Files\KiCad\<ver>\bin,macOS 在 /Applications/KiCad/KiCad.app/Contents/MacOS,加入 PATH 后 kicad-cli version 验证
脚本里 import pcbnew 失败用 KiCad 自带 Python,不要 pip install pcbnew(该模块无 PyPI 发布);Linux 装发行版的 kicad 包后 python3 -c "import pcbnew" 验证
从原理图更新后 PCB 元件消失网表同步(Update PCB from Schematic)会按 reference 匹配;改过 reference/删过封装需先重新注释(Annotate)再同步

AI 使用建议

  • 推荐工作流模式:AI 助手应遵循 KiCad 标准设计流程:原理图(Eeschema)→ 封装分配 → PCB(Pcbnew)→ DRC → 制造输出。自动化批处理使用 kicad-cli 命令行工具,Python 脚本使用 pcbnew 模块。
  • 关键注意事项:① ERC/DRC 必须在每次重要修改后运行,红色错误不可忽略;② 元件封装需在原理图阶段绑定,否则同步到 PCB 时会丢失;③ Gerber 输出需包含完整层栈(F.Cu/B.Cu/F.Mask/B.Mask/Edge.Cuts/Silk + Drill);④ 覆铜后需 Refill Zones 检查热焊盘连接。
  • 常用代码模式:CLI 自动化:kicad-cli sch export pdf / kicad-cli pcb export gerbers / kicad-cli pcb export drill。Python:pcbnew.LoadBoard("board.kicad_pcb") → 遍历 footprints/tracks → 修改 → pcbnew.SaveBoard()。

相关技能

  • freecad — 3D 参数化 CAD,可导入 KiCad 的 STEP 做机壳/装配检查:../freecad/SKILL.md
  • occt — OCCT 几何内核(KiCad 3D Viewer 与 STEP 导出链路的底层依赖):../occt/SKILL.md
  • blender — 3D 场景与渲染(PCB 展示图、产品级渲染):../blender/SKILL.md
  • cadquery — Python 参数化 CAD(需要按板框尺寸生成结构件时使用):../cadquery/SKILL.md

参考资源

Frequently asked questions

What does the Kicad AI skill do?

Use when doing schematic capture or PCB layout in KiCad (10.0.x) — Eeschema symbols and hierarchical sheets, Pcbnew board setup, net classes, zones, DRC/ERC, and scripting via kicad-cli (sch export pdf/netlist, pcb export gerbers/drill/pos/step) or the pcbnew Python module. Also for pcbnew wxPoint-to-VECTOR2I mismatches across versions, Gerber sets rejected by fabricators like JLC, and footprint assignment lost when syncing schematic to board.

Why use Kicad on TypingMind?

Because you install it once and use it with any model. Kicad is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kicad in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/znlgis/opengis-skills/tree/main/cad/kicad. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kicad?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kicad?

As many as you like. As long as a model supports skills, you can use Kicad with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kicad AI skill free?

Yes. It is published on GitHub by znlgis under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇