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★ 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:
- Emit it in the board-objects member
(
native/src/rs/prism-projections/src/board_objects/; its contractnative/src/tsp/prism/board-objects-a0.tspowns kind names, spelled with-). Derive the base and head revisions independently; absence on one side remains absence. - Classify it in
prism-kicad compare(native/src/rs/prism-projections/src/compare/result/objects.rs): category and primary/secondary arecompare's. R1 deleted the backend's legacy parser and classifier, so there is no second place to spell the kind. - Add one row to
frontend/src/components/design-comparison/comparison-change-kinds.ts(domain, reviewer noun, traits) and its expectation row infrontend/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
compareprojection's semantics module (native/src/rs/prism-projections/src/compare/). - Components, their fields, DNP / in-BOM flags or BOM rows: the same
compareprojection. - Durable output beyond the result payload:
backend/app/services/design_compare_artifacts.py. - A new target role:
DesignCompareTargetRoleinnative/src/tsp/prism/design-compare-a1.tsp(a contract change, so a new version) and its mirror infrontend/src/components/design-comparison/design-compare-result.ts. - A new reason code: reviewer verbs in
frontend/src/components/design-comparison/comparison-change-vocabulary.tsand facts infrontend/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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…