Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

prism-viewer-rebuild

FreeNo executable scriptsNot checked

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…

krishna-swaroopby krishna-swaroop★ 335 GitHub stars

About 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.js and its generated cache key in frontend/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
Sign up freeI already have an account

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

Compare prism-viewer-rebuild with