kicad-flow: d20 改名 layout_issue,极性与 d11 统一
用户更新 PR00.drawio,把节点 20 的边标签从「是/否」改为「有问题/没问题」, 消除了节点文字与标签的矛盾。代码随之对齐:d20_layout_clean -> d20_layout_issue, 回填键统一为 layout_issue(true=有问题→回 n19)。走向未变。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-7
@@ -181,18 +181,15 @@ $DR = "$env:USERPROFILE\.claude\skills\kicad-flow\scripts\drawio_read.py"
|
|||||||
| `n18_sync_drawio_back` | 按原理图回写 drawio,重贴第一页插图 | `drawio_path` `synced` |
|
| `n18_sync_drawio_back` | 按原理图回写 drawio,重贴第一页插图 | `drawio_path` `synced` |
|
||||||
| `d21_sch_matches_drawio` | **派 agent** 比原理图与 drawio | `sch_matches_drawio` |
|
| `d21_sch_matches_drawio` | **派 agent** 比原理图与 drawio | `sch_matches_drawio` |
|
||||||
| `n19_recheck_layout` | 再修一遍排版 | `fixed` |
|
| `n19_recheck_layout` | 再修一遍排版 | `fixed` |
|
||||||
| `d20_layout_clean` | **派 agent** 复核排版 | `layout_clean`(**true=干净,前进**) |
|
| `d20_layout_issue` | **派 agent** 复核排版 | `layout_issue`(**true=有问题,回 n19**) |
|
||||||
| `d22_meets_requirement` | **派 agent** 比原始需求 | `meets_requirement` `gaps` |
|
| `d22_meets_requirement` | **派 agent** 比原始需求 | `meets_requirement` `gaps` |
|
||||||
| `n98_collect_fixes` | 把差距整理成可执行修改方案 | `fix_plan` |
|
| `n98_collect_fixes` | 把差距整理成可执行修改方案 | `fix_plan` |
|
||||||
| `n93_schematic_done` | 无 interrupt,图自己出报告 | — |
|
| `n93_schematic_done` | 无 interrupt,图自己出报告 | — |
|
||||||
| `n101_import_to_pcb` | `sync_schematic_to_board` 导入 PCB | `pcb_path` `imported` |
|
| `n101_import_to_pcb` | `sync_schematic_to_board` 导入 PCB | `pcb_path` `imported` |
|
||||||
|
|
||||||
两个**极易填反**的布尔,填反了流程会朝相反方向跑:
|
排版判定 `d11_layout_issue` 与 `d20_layout_issue` **同极性**:
|
||||||
|
**true = 有排版问题 → 回去重修**,false = 没问题 → 往前走。回填键都叫 `layout_issue`。
|
||||||
- `d11_layout_issue`:**true = 有排版问题**(回去重排)。
|
(2026-09-19 之前 d20 的极性是反的,用户改图消歧后已统一。)
|
||||||
- `d20_layout_clean`:**true = 排版干净**(往前走)。
|
|
||||||
|
|
||||||
这俩语义相反是照着 PR00.drawio 原图来的,不是 bug。
|
|
||||||
|
|
||||||
## 常见错误
|
## 常见错误
|
||||||
|
|
||||||
|
|||||||
@@ -135,9 +135,9 @@ payload 的 `retry` 和 `sim_results` 告诉你上一轮发生了什么,**把
|
|||||||
三条判据:① 信号标签与线段/字体/器件重叠 ② 字体与器件、线段重叠 ③ 电路落在图框外。
|
三条判据:① 信号标签与线段/字体/器件重叠 ② 字体与器件、线段重叠 ③ 电路落在图框外。
|
||||||
|
|
||||||
工具:`find_overlapping_elements`、`find_wires_crossing_symbols`、
|
工具:`find_overlapping_elements`、`find_wires_crossing_symbols`、
|
||||||
`find_wires_crossing_symbols`、`get_schematic_view` 逐页看、`get_board_extents` 对框。
|
`find_orphaned_wires`、`get_schematic_view` 逐页看、`get_board_extents` 对框。
|
||||||
|
|
||||||
> **这里 true = 有问题**(回 `n10` 重排,上限 5 次)。和后面 `d20` 正好相反,别填反。
|
> **这里 true = 有问题**(回 `n10` 重排,上限 5 次)。与 `d20` 同极性。
|
||||||
|
|
||||||
回填:`--set layout_issue=false`
|
回填:`--set layout_issue=false`
|
||||||
|
|
||||||
@@ -258,17 +258,15 @@ STM32 可用 cubemx MCP 的 `get_pin_functions` / `get_pinout` 交叉验证。
|
|||||||
|
|
||||||
回填:`--set fixed=3 --set note="挪了 3 处标签"`
|
回填:`--set fixed=3 --set note="挪了 3 处标签"`
|
||||||
|
|
||||||
### `d20_layout_clean`(20)— 派 agent 复核排版
|
### `d20_layout_issue`(20)— 派 agent 复核排版
|
||||||
|
|
||||||
**派一个单独的 agent** 独立复核排版。
|
**派一个单独的 agent** 独立复核原理图是否还有 criteria 所列的排版问题。
|
||||||
|
|
||||||
> **这里 true = 干净、往前走**(和 `d11` 正好相反)。
|
> 极性与 `d11` **一致**:**true = 有问题 → 回 `n19` 继续修**(上限 3 次),
|
||||||
> 原图节点文字写的是「是否有排版问题」,但边标签是「是→前进」,
|
> **false = 没问题 → 前进 `d22`**。两个节点的回填键都是 `layout_issue`。
|
||||||
> 二者矛盾,已由用户裁定以边标签为准。填之前想一秒。
|
|
||||||
|
|
||||||
仍有问题回 `n19` 继续修(上限 3 次)。
|
回填:`--set layout_issue=false`
|
||||||
|
(仍有问题:`--json '{"layout_issue":true,"issues":["插图压住 J1"]}'`)
|
||||||
回填:`--set layout_clean=true`
|
|
||||||
|
|
||||||
### `d22_meets_requirement`(22)— 派 agent 比对原始需求
|
### `d22_meets_requirement`(22)— 派 agent 比对原始需求
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user