Logo Kicad

Kicad

Cộng đồng
bacnh85
kicad

Design KiCad schematics and PCB layouts via the Konnect bridge. Use when the user wants to create/edit KiCad schematics or PCBs, place and wire components, route traces, run ERC/DRC, export Gerbers/BOM/PDF/3D, search JLCPCB parts, use reference circuits, or do manufacturing prep. Trigger on "KiCad", "schematic", "PCB", "layout", "route traces", "ERC", "DRC", "Gerber", "BOM", "footprint", "design rule check", "pick-and-place", or any CAD/EDA design task.

Tổng quan

Nhà phát hànhbacnh85
Kho mãpi-extensions
Tên kỹ năngkicad
Sao
42
Bản fork
15
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được bacnh85 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kicad trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/bacnh85/pi-extensions/tree/main/pi-kicad/skills/kicad
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bacnh85/pi-extensions.git /tmp/pi-extensions
mkdir -p .claude/skills
cp -r /tmp/pi-extensions/pi-kicad/skills/kicad .claude/skills/kicad
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kicad trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kicad ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kicad với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

pi-kicad — KiCad CAD design via Konnect

Drive KiCad 10 through the Konnect binary using three Pi tools:

ToolPurpose
kicad_callInvoke any Konnect tool by name (185 tools across 18 toolsets)
kicad_batchRun multiple Konnect tool calls SEQUENTIALLY in one shot (each awaits before the next, so same-file writes don't race)
kicad_statusWire up + health-check the bridge (binary, kicad-cli, IPC socket, daemon, version)

First move

If anything is unclear or a call fails, run kicad_status first. It resolves the Konnect binary + kicad-cli, (re)starts the local HTTP daemon, and reports whether the bridge is healthy. Restart with restart: true after changing KiCad config or the IPC socket.

The toolset-loading protocol (context economy)

Konnect exposes ~185 tools but loads only a small starter kit (~2K tokens, not ~23K). Domain tools live in toolsets you must load before use:

kicad_call tool=list_toolboxes                      → see all toolsets + counts
kicad_call tool=load_toolset arguments={name:"sch_components"}
kicad_call tool=add_schematic_component arguments={...}
kicad_call tool=unload_toolset arguments={name:"sch_components"}   → prune when done

If a tool errors with "toolset not loaded", the message names the toolset — call load_toolset("<that>") then retry. That single hop recovers every such error.

Toolsets: project, sch_components, sch_wiring, sch_analysis, sch_batch, sch_export, sch_hierarchy, pcb_board, pcb_components, pcb_routing, pcb_export, plus design-review, JLCPCB parts, Freerouting, reference circuits, manufacturing. (Call list_toolboxes for the live list.)

Two editing models — know which one you're in

  • Schematic tools edit .kicad_sch files directly via Konnect's S-expression engine (atomic writes, UUID-safe). No running KiCad needed. Work headless.
  • PCB tools talk to KiCad's IPC API. Requires KiCad 10 open with Preferences → Plugins → Enable KiCad API, and the target board loaded. PCB edits integrate with KiCad's undo/redo and appear live in the editor.

Productive habits

  • Batch-first. Prefer batch_add_wire, batch_delete, bulk_move_schematic_components, batch_edit_schematic_components — one file read/write cycle instead of N.
  • Let the tool compute coordinates. connect_pins (route by reference+pin), add_schematic_connection (auto H+V between points), connect_to_net (stub + label) beat hand-placing every wire.
  • Validate as you go. validate_wire_connections, validate_component_connections, find_orphan_items, find_shorted_nets catch placement errors immediately; don't wait for ERC.
  • Reference circuits as starters. Load the reference-circuits toolset for verified USB-C / LDO / buck / STM32 / I2C / LED blocks instead of building from scratch.
  • JLCPCB parts. Use the JLCPCB toolset to find in-stock footprints/symbols and alternatives from the local 2.5M-part catalog.
  • Visual feedback. get_schematic_view / get_board_2d_view render PNGs; open_schematic_viewer launches the live auto-refresh viewer.
  • Self-diagnose. get_recent_calls and server_stats show the last tool calls, durations, and errors — use them when a tool misbehaves.

Standard design flow

create_project / open_project
  → schematic capture (sch_components, sch_wiring)
  → annotate_schematic            (R? → R1, U? → U1)
  → run_erc  →  fix violations    (sch_analysis tools find orphans/shorts)
  → update PCB from schematic
  → layout (pcb_components) → route (pcb_routing) → copper pours / mounting holes (pcb_board)
  → get_drc_violations  →  fix    →  refill_zones
  → export_gerber / export_pdf / export_bom / export_position_file / export_3d

Snapshot before risky edits with snapshot_project (exports a timestamped PDF).

Known Konnect v0.2.0 limitations (work around these)

These are Konnect (third-party Rust binary) bugs, not pi-kicad bugs. pi-kicad works around them where it can:

  • Standard symbol libraries don't resolve. Konnect's .kicad_sym parser returns 0 symbols from KiCad 10's standard libraries (Device, power, …), so add_schematic_component Device:R, power:GND, etc. all fail. Build every symbol from scratch with create_symbol in a .kicad_sym inside the project, then place dcdc:<Name>.
  • add_schematic_component resolves lib_id ONLY via KICAD10_SYMBOL_DIR (a single dir set at daemon start, NOT the sym-lib-table). pi-kicad ALWAYS points it at its managed symbol dir ~/.pi/kicad-symbols (created automatically). So create your from-scratch symbols there: create_symbol with library_path=~/.pi/kicad-symbols/<lib>.kicad_sym, then place <lib>:<sym>. No env var or project-dir setup needed — kicad_status prints the symbol dir. (The daemon never reuses a stale stranger daemon, so it always runs with the correct env.)
  • register_symbol_library writes the wrong table format ((fp_lib_table …) into sym-lib-table). Hand-write sym-lib-table as (sym_lib_table …) if ERC warns "configuration does not include the symbol library".
  • list_symbols_in_library mangles names (strips the first char: Res→es). Placement lookup is unaffected — place by the real lib_id.
  • delete_symbol reports success but doesn't persist; annotate_schematic reports success but leaves references as ?. Pass explicit reference (e.g. R1, U1) when placing, and don't rely on annotate/delete.
  • Wiring by net label is the robust path. connect_to_net needs pin_x/pin_y (not pin numbers): call get_schematic_pin_locations (or batch_get_schematic_pin_locations) first, then connect_to_net {schematic, pin_x, pin_y, net} per pin — it adds a **wire stub
    • label** that KiCad attaches. Use all-passive pin types to keep ERC focused on connectivity (avoids power-pin driver rules when power symbols are unavailable).
    • ⚠ Do NOT use batch_connect_to_net — in Konnect v0.2.0 it places bare net labels at pin coords with no wire stub, so they FLOAT and do not connect. ERC won't catch it (passive pins aren't flagged) and list_schematic_nets just reads label names. This is a Konnect tool bug, not a sequencing issue — batching does NOT make it safe. Always place nets with connect_to_net (per pin, inside kicad_batch).
    • Verify connectivity with get_net_connectivity or the kicad-cli netlist (generate_netlist) — NOT run_erc alone (passive pins hide unconnected pins) and NOT list_schematic_nets (label names ≠ attached).
    • For VISIBLE wires between components (a real schematic, not just connect-by-name), use connect_pins {schematic, ref1, pin1, ref2, pin2} which routes an actual wire (L-bend) between two pins. Chain/star same-net pins (e.g. star each net through the regulator). connect_to_net only adds a short stub+label (connect-by-name, no inter-component wire) — fine for naming a net, but pair it with connect_pins when real wires are expected. Render to PDF/PNG and eyeball it (or ask a vision model) to confirm.
  • PCB tools need KiCad 10 running with its API enabled; schematic/export tools are file-based and work headless.
  • Never call file-mutating Konnect tools in parallel (multiple kicad_call in one message run concurrently). Konnect's read-modify-write + atomic-rename races: concurrent calls lose edits or fail with "No such file or directory" and can corrupt the file (duplicates, lost symbols). Use kicad_batch for any multi-step flow — it runs the ops strictly sequentially (each awaited). Inside one Konnect tool, prefer the batch_* variants for multi-item edits (except batch_connect_to_net, which is broken in v0.2.0 — see the warning above; use connect_to_net per pin instead).

Câu hỏi thường gặp

Kỹ năng AI Kicad làm được gì?

Design KiCad schematics and PCB layouts via the Konnect bridge. Use when the user wants to create/edit KiCad schematics or PCBs, place and wire components, route traces, run ERC/DRC, export Gerbers/BOM/PDF/3D, search JLCPCB parts, use reference circuits, or do manufacturing prep. Trigger on "KiCad", "schematic", "PCB", "layout", "route traces", "ERC", "DRC", "Gerber", "BOM", "footprint", "design rule check", "pick-and-place", or any CAD/EDA design task.

Vì sao nên dùng Kicad trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kicad là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kicad trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/bacnh85/pi-extensions/tree/main/pi-kicad/skills/kicad. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kicad?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kicad với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kicad với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kicad có miễn phí không?

Kỹ năng này được bacnh85 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇