prism-viewer-rebuild
FreeNo executable scriptsNot checkedRebuild and verify KiCAD Prism's committed ECAD viewer and parser outputs from the sibling ecad-viewer checkout. Use after upstream viewer/parser changes or…
by krishna-swaroop★ 335 GitHub starsAbout this skill
Rebuild vendored ECAD artifacts
This playbook covers the sibling ../ecad-viewer checkout, overridable with
ECAD_VIEWER_DIR. It does not cover Prism's separate
kicad-prism-viewer/ semantic viewer package.
Preconditions
The build script requires the commit in
scripts/ecad-viewer-upstream.lock to be an ancestor of the sibling checkout.
It refuses relevant dirty source trees unless ECAD_ALLOW_DIRTY=1 is set.
That override is for local iteration only; do not commit artifacts whose
provenance reports dirty input.
Build outputs
./scripts/build-ecad-viewer.sh
This updates:
frontend/public/ecad-viewer.js;frontend/public/parser.worker.js;frontend/public/ecad-renderer.jsand its generated cache key infrontend/src/lib/ecad-renderer-build.ts;frontend/public/ecad-viewer.manifest.json; and- the artifact digest in
frontend/index.html.
Run the viewer build when parser sources change: the browser viewer bundles its own parser copy. A viewer-only source change needs the same build.
Verify provenance
Review every generated diff. Confirm the manifest/provenance source commit,
source-tree digest, artifact digests, and dirty flag match the intended sibling
checkout. If the accepted upstream baseline changed, update
scripts/ecad-viewer-upstream.lock deliberately in the same change.
Commit the generated outputs with the source/baseline change that requires
them. Then use .agents/skills/prism-quality-gate/SKILL.md; persistent frontend
failures after a clean rebuild should be treated as real regressions rather
than stale-artifact symptoms.
Install prism-viewer-rebuild in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the prism-viewer-rebuild skill do?
Rebuild and verify KiCAD Prism's committed ECAD viewer and parser outputs from the sibling ecad-viewer checkout. Use after upstream viewer/parser changes or when committed artifacts appear stale.
How do I install the prism-viewer-rebuild skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the prism-viewer-rebuild skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic