nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:XiangyuYue/boardwise
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
An agent harness for hardware engineers.
Current development version: 0.6.2. Published packages are in Releases.
It lets an AI assistant (Claude Code, DeepSeek, Kimi Code — any of them) actually read your schematic — components, nets, pins, not screenshots — and do real work on it: review the board, mark the problems, edit with your sign-off, export the fab files. EasyEDA Pro is the platform we know inside-out today; KiCad is next, and the architecture has been multi-platform from day one.
Review. With the editor open, one command:
boardwise checkup
You get a report: ERC/DRC, 23 design rules, which parts
still lack datasheets, and every finding pointing at a concrete
component, pin and net — with markers drawn on the canvas where the
problems are. On real boards it has caught things the designer had
missed — a current-sense circuit with no bias, that kind of problem.
You don't find those by matching rules against a netlist; you have to
check whether the architecture makes sense together. When a rail's
voltage lives only in your head, intent audit lists those nets and
asks once; the answer lands in a design-intent contract
(intent set-rail) and is never asked again. The PCB review stages
already landed have flagged real layout defects on real boards — a
motor driver's exposed pad whose copper pour was left as a thermal
island on a four-layer FOC driver, that class of problem.
Edit. Find a problem, get a change preview; nothing moves until you approve; afterwards it reads back and re-reviews to confirm the problem is actually gone. Edit kinds today: change a component value, add a missing part, repair a single pin connection, insert an RC/divider subcircuit, move a functional block.
Export. One export-fab writes the whole fab bundle — Gerber,
pick-and-place and BOM together. (There is no netlist export command;
the netlist is read internally for review, not written out as a file.)
Draw. You state the circuit intent — a divider, an RC low-pass, an
LDO; parts, values, which pin joins which net — and the drawing
compiler turns it into a sheet a human can read: where parts sit, how
wires run, where text goes so it doesn't sit on a wire. Wrong
connectivity, not enough room, a conflict with your locked placement —
it refuses rather than hand you a bad drawing. It compiles offline, and
it can also land into the open editor itself — placement, pin readback
before any wire, save, and a render of the result. Several modules
compose onto one page: what is already on the page becomes keep-outs,
your locked placements are honoured, every rail gets a flag, and one
draw discard takes a landed page back off.
Newer pieces worth knowing:
checkup --file draws each board to
canvas-<board>.svg (two views, findings highlighted); it is drawn from the
archived geometry, not a screenshot.parts accept-unknown — an engineer puts on record that a part's unknowns
are acceptable, so the datasheet gate stops owing it; it is not a pass, and
the conclusion still counts the accepted parts.(net 3) with no name is read (as net#3) instead
of the whole board being refused for carrying no net names.review <file> --interconnect <declaration.json> (also on checkup --file)
discloses engineer-declared cross-board ties without merging netlists or moving
findings and verdicts.pcb net-path FILE --from REF.PAD --to REF.PAD [--board ...] proves a pad/track/via chain from an .epro2 or .eprj3
archive, with CONNECTED / NOT_PROVEN / INDETERMINATE rather than treating a
net name or a missing answer as connectivity. pcb.net_class.list reads the
host's persisted classes and net rules; an unreadable class list is null, never
an invented empty list. PCB ARC records are preserved and scoped by net, but arc
geometry and non-empty net classes are still outside the verified boundary.pcb-pad-overlap (pads of two different parts with a positive intersection on a
shared copper layer, same net or not), pcb-silk-on-foreign-pad (silk ink over
another part's pad) and pcb-silk-under-body (silk under a part body).
boardwise pcb gate --out <new-dir> is the read-only last step after a board
change: doc.list must prove the active document is the PCB you named (no
fallback to the first board), then one strict host DRC plus a fresh checkup
inside <new-dir>/checkup. Exit 0 GREEN / 2 RED / 3 INCOMPLETE or
unusable input; an incomplete checkup never turns GREEN, the out directory must
not already exist, and there is no --skip-checkup, no autofix and no save.
Only fake-bridge and offline runs back this so far — the live editor path is not
verified yet.checkup the first checkpoint
(initial/partial: environment and versions, report.conclusion, ERROR / host
DRC, open items, artifact paths) is delivered before any deeper digging; deeper
work then runs in small batches (at most 3 findings each). An existing report can be
read again instead of re-run, and an aborted run is summarised as partial from what
is already on disk. The first-checkpoint order remains a process constraint. The
optional checkup --file --strict gate refuses recomputation over an unchanged
baseline, and review finalize --strict-partial validates the four evidence
categories. These opt-in gates do not claim a harness-wide pre-execute guard;
that piece is not implemented.Three layers, all on your own machine — nothing goes through a cloud:
AI assistant
│ calls short commands (CLI / skill / dsh plugin)
▼
offline engine parse · review rules · drawing compiler · change plans
│ loopback only
▼
daemon + editor extension reads design data; writes go preview → approve → readback
▼
EasyEDA Pro (today) · KiCad (planned)
Standing rules: the checks and the delivery validation live in tools; orchestration constraints that have no runtime gate yet are disclosed in the SOP as exactly that; every conclusion carries evidence; writes are preview → authorize → readback; on a timeout or disconnect it reads back first and never blindly retries.
| Stage | Status |
|---|---|
| Schematic review (rule families + datasheet gate + eval harness) | Usable, in maintenance |
| Review-to-local-edit (preview / authorize / readback / re-review) | Usable |
| Drawing compiler (divider / RC / LDO / IC periphery / power entry) | Flyback, CH343 and CH340 example pages have passed their stated connectivity, lint and visual checks; CH343 also passed close/reopen persistence. Arbitrary circuits and CH340 persistence are not claimed |
| PCB review (DRC closure → module-by-module layout → device checks) | Stages A–E done, including device checks and integrated reports; V4 archives support per-PCB review. Real multi-board + library projects and live PCB bitmaps remain uncovered |
| Full schematic capture → PCB generation → SPICE simulation | In that order |
| KiCad platform | Planned |
One sentence on how the review rules are scored: the annotated eval
sets are signed and split into a tuning pile and an acceptance pile,
and the harness is built so the acceptance pile cannot leak into the
scores — --split defaults to dev and holdout records enter no
denominator. Two tuning constants predate the split discipline; their
comments declare their evidence boards, and
tests/test_doc_claims.py keeps this paragraph honest.
Details in outputs/017_generalization.md.
Three artifacts in Releases:
| File | For |
|---|---|
boardwise.exe |
Anyone who doesn't want Python: single-file CLI, part library embedded |
boardwise-connector-x.x.x.eext |
Everyone: the extension you import into EasyEDA |
boardwise-dsh-x.x.x.tgz |
DeepSeek users: the dsh plugin, optional |
Environment: Windows. Python ≥ 3.10 (source installs only; 3.9 and below are not supported). EasyEDA Pro 3.2.149 / 3.2.186 / 4.1.60 / 4.1.93 are all verified on real machines; older versions are not guaranteed. macOS/Linux are untested — the offline review probably runs, the bridge is unverified.
Fastest path: docs/install.md (Chinese — every
step says what you should see). For the impatient: pip install . →
import the .eext in the editor → boardwise doctor all green →
boardwise checkup.
Getting the review checklist into your AI: boardwise install-skill
installs it for Kimi Code and Claude Code (one side only: --harness kimi
or --harness claude; a different file already there is backed up to
SKILL.md.bak-<YYYYMMDD-HHMMSS>, never quietly replaced, and a second
install on the same day gets its own file rather than displacing the first).
Using another agent —
Codex, Hermes, anything? boardwise install-skill --agent prints a short
prompt to paste into your AI, and it puts the file where it looks for
skills, which it knows better than we do. If your AI is working inside a
clone of this repo, AGENTS.md already points it at the
checklist — nothing to install.
${BOARDWISE_HOME:-~/.boardwise}/log/daemon-<date>.log, and
the failure it prints names it). If it still is not up, run
boardwise bridge start in the foreground and read what it says;
BOARDWISE_NO_AUTO_DAEMON=1 turns the automatic start off for the
setups that manage it themselves.7K3M-9QXZ), and run boardwise bridge pair 7K3M-9QXZ on the daemon host.
That authorises one connector for five minutes (daemon memory only:
a restart drops it) and the window then pairs and prints the announcement.
The code is public and safe to read out; the token is never shown. After
that, ordinary reconnects need nothing — an existing pairing reconnects on
any Origin. bridge revoke and the connector's Re-pair on next connect
both make a new authorisation necessary; a re-pair also mints a new code,
so an ordinary Reconnect is what you want unless you are deliberately resetting.--project <name>. It
refuses to guess.major.minor series must match;
patch numbers are independent. A 0.6.1 daemon can use a 0.6.0 connector for
established actions, but a newer action may require the connector that provides
it and otherwise answers UNKNOWN_ACTION. A series bump such as 0.6.x → 0.7.0
requires both sides to upgrade together..epro2 export — unreadable; re-export with encryption
off..eprj2 file holds no drawing — it's just the project shell.
Read live through the bridge, or export an .epro2 backup.{checked: false} with no counts.We're glad these projects exist:
MIT
硬件工程师的 Agent Harness。
当前开发版本:0.6.2。已发布安装包见 Releases。
让 AI 助手(Claude Code、DeepSeek、Kimi Code……哪个都行)真正读懂你的 原理图——器件、网络、引脚,不是截图——然后替你干活:审板子、标问题、 按你的授权改图、导出制板文件。目前吃透的是立创 EDA 专业版,KiCad 是 下一个平台,架构从一开始就按多平台设计。
审板子。 编辑器开着,一条命令:
boardwise checkup
输出一份报告:ERC/DRC、23 条设计规则、哪些器件还缺数据手册、每条问题
各自指着具体的器件、引脚和网络;顺手把问题标记在画布上。它在真板子上
抓到过设计者自己没注意到的问题——比如一个该做偏置而没做的电流采样
电路。这类问题不是查规则书能查出来的,得先理解整个架构自不自洽。
有些电源网的电压只在你脑子里——intent audit 会把这些网列出来问一次,
答案用 intent set-rail 写进设计意图契约,以后不再问。PCB 审查已落地的
阶段也在真板子上抓到过真缺陷:一块四层 FOC 驱动板上,电机驱动器的
散热焊盘铺铜成了孤岛。
改图。 发现问题后,它给修改预览,你点头它才动,动完自己回读、再跑 一遍审查确认问题真的消失。已经支持的改法:改器件值、补一颗缺失的器件、 修单个引脚连接、插入 RC/分压子电路、局部移动一个功能块。
导出。 一条 export-fab 同时出 Gerber、坐标文件和 BOM 三样。
(网表没有单独的导出命令;它在内部读取供审查,不落文件。)
画图。 你写电路意图——分压、RC 低通、LDO,器件、参数、哪个脚接
哪个网——画法编译器负责把它变成一张能给人看的图:器件怎么摆、线怎么
走、字放哪不压线。接法错、空间不够、和你的锁定冲突,它宁可拒绝也不交
出一张烂图。离线出图之外,它已经能直接落进开着的编辑器——放件、
拉线前先回读引脚、保存、再出一张渲染图。多个模块能组合进同一页:
页上已有的图元自动变成禁布区、你锁定的位置被尊重、每条电源轨都有
旗标,一条 draw discard 能把落好的整页撤下来。
几件新东西值得知道:
checkup --file 给每块板出 canvas-<board>.svg(顶/底两个
视窗、finding 高亮);它是按归档几何画出来的,不是截图。parts accept-unknown——工程师当面记下「这颗器件的未知我接受」,数据手册闸
不再欠它;它不是审过,结论里照样数着这些被接受的器件。(net 3) 照读(记成 net#3),不再因为一块板
网名全丢就整盘读不出来。review <file> --interconnect <声明.json>(checkup --file 同样支持)只披露工程师确认的
板间连接,不合并网表、不改变 finding 或 verdict。pcb net-path FILE --from REF.PAD --to REF.PAD [--board …]
从 .epro2 / .eprj3 归档找出 pad/track/via 铜链,以 CONNECTED / NOT_PROVEN /
INDETERMINATE 区分「找到 / 未证明 / 证据不足」,不把网名或读不到当成连通。
pcb.net_class.list 读宿主持久化网络类和网规则;读不到是 null,不伪造成空列表。
PCB ARC 已按网保留,但弧几何和非空网络类仍属未验证边界。OVAL 和非圆 ELLIPSE 焊盘不再统一按外接矩形量间距;
默认货架不再受启动目录影响,文件缺失也不会被静默说成「真实空架」。checkup 之后,先把首轮检查点
(initial/partial:环境与版本、report.conclusion、ERROR / 宿主 DRC、待确认项、
产物位置)交付出去,再分批深挖;每批最多 3 条 finding。已有报告可以复读而不必重跑,
中止的 run 基于已在盘上的产物整理成 partial。首轮顺序仍是流程约束;显式
checkup --file --strict 可拒绝同基准重算,review finalize --strict-partial 可校验
四类证据披露。它们都是 opt-in,不代表 harness 级 pre-execute 闸已经实现。三层,全跑在你自己电脑上,不经过任何云端:
AI 助手
│ 调很短的命令(CLI / skill / dsh 插件)
▼
离线引擎 解析工程文件 · 审查规则 · 画法编译 · 修改计划
│ 本机回环
▼
daemon + 编辑器扩展 读工程数据,写之前先预览、你授权、它回读
▼
立创 EDA 专业版(现在) · KiCad(规划)
规矩就几条:检查与交付校验住在工具里;尚未形成硬闸的编排约束在 SOP 里明确 披露,不当成工具已自动执行;每个结论带证据; 写操作一律预览 → 授权 → 回读;超时断连先读回,绝不盲目重试。
路线图:
| 阶段 | 状态 |
|---|---|
| 原理图审查(规则族 + 数据手册闸 + 评测体系) | 可用,维护中 |
| 审查到局部修改(预览/授权/回读/复查) | 可用 |
| 画法编译器(分压/RC/LDO/IC 外围/电源入口) | 反激、CH343 与 CH340 示例页已通过各自声明的连通、lint 和视觉验收;CH343 另通过关闭重开持久化。任意电路与 CH340 持久化不作承诺 |
| PCB 审查(DRC 闭环 → 按模块布局 → 器件检查) | A–E 阶段完成,含器件检查与整合报告;V4 归档可逐块 PCB 审查。真实多板+库工程和实时 PCB 位图仍未覆盖 |
| 完整原理图绘制 → PCB 生成 → SPICE 仿真 | 按序推进 |
| KiCad 平台 | 规划中 |
审查规则的评测方式说一句人话:我们有一套签名标注过的评测集,分成
调参用和验收用两摞;harness 在结构上堵死验收摞混进分数——--split 默认
dev,验收摞不进任何分母。有两条调参常量先于分堆制度诞生,它们的注释
里写明了取证板,tests/test_doc_claims.py 盯着这段话不许它过期。
细节在 outputs/017_generalization.md。
Releases 里三样:
| 文件 | 给谁 |
|---|---|
boardwise.exe |
不想装 Python 的人:单文件 CLI,器件库已内嵌 |
boardwise-connector-x.x.x.eext |
所有人:立创 EDA 里导入的扩展 |
boardwise-dsh-x.x.x.tgz |
DeepSeek 用户:dsh 插件,可选 |
环境:Windows;Python ≥ 3.10(仅开发/源码安装需要,3.10 以下不支持); 立创 EDA 专业版 3.2.149 / 3.2.186 / 4.1.60 / 4.1.93 都真机验证过,更低版本 不保证。macOS/Linux 没测过——理论上离线审查能跑,桥没验证。
最快的路:docs/install.md(给朋友看的版本,全程中文,每步写了
"应该看到什么")。熟手:pip install . → 编辑器导入 .eext →
boardwise doctor 全绿 → boardwise checkup。
把审查清单装进你的 AI:boardwise install-skill 给 Kimi Code 和 Claude Code 装上
(只装一侧加 --harness kimi 或 --harness claude;目标位置已有别的版本会先备份成
SKILL.md.bak-<年月日-时分秒>,不会静默覆盖;同一天装两次是两个备份文件,第二个不覆盖第一个)。用的不是这两个 agent——Codex、Hermes
之类——跑 boardwise install-skill --agent:它打印一段引导指令,粘给你在用的 AI,
放哪儿由它自己定,它比我们清楚。AI 就在本仓库 clone 里干活的话,根目录
AGENTS.md 已经指到了清单,不用装。
${BOARDWISE_HOME:-~/.boardwise}/log/daemon-<日期>.log,拉起失败时报错会点名这个文件)。
还是没起来就跑 boardwise bridge start(前台运行,原因直接打在窗口里);
自己管 daemon 的部署(计划任务/服务)用 BOARDWISE_NO_AUTO_DAEMON=1 关掉自动拉起。7K3M-9QXZ),在 daemon
所在机器上敲 boardwise bridge pair 7K3M-9QXZ。这一条授权只放行一个 Connector、只活
5 分钟、只存在 daemon 内存里(重启即失效),随后那个窗口自己完成配对并打印公告。
编号是公开值,可以照抄;token 永不显示。授权过之后普通重连什么都不用做——有效旧配对在任何
Origin 都直接重连。bridge revoke 与编辑器里的 Re-pair on next connect 都会让下一次需要
重新授权;re-pair 还会换新编号,所以除非你就是想重置,否则点普通 Reconnect。--project <名字>,否则它拒绝猜。UNKNOWN_ACTION。进入新系列(如 0.6.x → 0.7.0)时两边必须一起升级。.epro2 导出时勾了加密:读不了,重新导一次别勾加密。.eprj2 单文件里没有图纸:那只是工程壳,图纸要么在线走桥读,
要么导出 .epro2 备份。completion.verdict 是 incomplete(没读到模型 / 有器件缺手册未审 / 骨架没生成 /
覆盖有缺口)。review --live 拿到了模型、但模型是空的(0 器件 0 网络)也算(075)——
它与"根本没拿到模型"是两句话,两句都不许读成通过。审查没跑成的部分报告里会写
{checked: false},不带计数。CI 里别把 3 当通过(073 起 review / checkup 都这样;
有 ERROR 仍是 1,complete-with-open-items 仍是 0)。站在这些项目的肩膀上,我们很庆幸它们存在:
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent。