Command Palette

Search for a command to run...

Назад к скиллам
скилл № 61248

prism-comparison-change-kind

Extend KiCAD Prism design-comparison parsing, semantics, review grouping, facts, focus, or presentation across backend and frontend. Use when a PCB or…

БесплатноБез исполняемых скриптов
krishna-swaroopот krishna-swaroop★ 335 звёзд на GitHub

Установить prism-comparison-change-kind в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Extend design-comparison semantics

Read frontend/src/components/design-comparison/AGENTS.md first. Trace one real change payload through the current pipeline before editing; the visible row, facts, and focus target may be produced by different modules.

Preserve the lifecycle kind

KiCadChangeKind in frontend/src/components/design-comparison/types.ts is the small lifecycle union (added, removed, modified, collision, and duplicate_uuid). Most new electrical or graphical distinctions should be a reason, category, fact, or review-group policy—not a new lifecycle kind. Extend the union only when the change genuinely has different lifecycle behavior at every consumer.

Trace the affected hops

A new object kind is three hops:

  1. Emit it in the board-objects member (native/src/rs/prism-projections/src/board_objects/; its contract native/src/tsp/prism/board-objects-a0.tsp owns kind names, spelled with -). Derive the base and head revisions independently; absence on one side remains absence.
  2. Classify it in prism-kicad compare (native/src/rs/prism-projections/src/compare/result/objects.rs): category and primary/secondary are compare's. R1 deleted the backend's legacy parser and classifier, so there is no second place to spell the kind.
  3. Add one row to frontend/src/components/design-comparison/comparison-change-kinds.ts (domain, reviewer noun, traits) and its expectation row in frontend/src/components/design-comparison/comparison-change-kinds.test.ts. The traits decide grouping, noise, presentation policy, layer focus and the property panel; the test row shows what each of those answers for the new kind.

Only when the change needs it:

  • A net, bus or sheet-instance meaning: the compare projection's semantics module (native/src/rs/prism-projections/src/compare/).
  • Components, their fields, DNP / in-BOM flags or BOM rows: the same compare projection.
  • Durable output beyond the result payload: backend/app/services/design_compare_artifacts.py.
  • A new target role: DesignCompareTargetRole in native/src/tsp/prism/design-compare-a1.tsp (a contract change, so a new version) and its mirror in frontend/src/components/design-comparison/design-compare-result.ts.
  • A new reason code: reviewer verbs in frontend/src/components/design-comparison/comparison-change-vocabulary.ts and facts in frontend/src/components/design-comparison/comparison-change-facts.ts.

Do not add bbox to Prism's PROJECT_DIFF item payload. The ECAD viewer resolves identities and measures painted bounds; native KiCad input keeps its separate strict-bounds contract.

Tests and verification

Add the smallest backend fixture that proves parsing and classification on both revision sides. The kind-table test covers the frontend modules; add a focused test only for behaviour the table row cannot express. The broad presentation contracts live in frontend/src/components/design-comparison/comparison-presentation-shell.test.tsx. Finish with .agents/skills/prism-quality-gate/SKILL.md.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл prism-comparison-change-kind?

Extend KiCAD Prism design-comparison parsing, semantics, review grouping, facts, focus, or presentation across backend and frontend. Use when a PCB or schematic difference is missing, misclassified, or not reviewable.

Как установить скилл prism-comparison-change-kind?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prism-comparison-change-kind запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить prism-comparison-change-kind с