verify-pixels
/verify-pixels
Use when a PlayCanvas rendering change is meant to leave the image unchanged, to prove it with deterministic captures and pixel comparison.
- Author
- playcanvas ↗
- Repository
- skills ↗
- Licence
- MIT
- Last repository change
- 21.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when a PlayCanvas rendering change is meant to leave the image unchanged, to prove it with deterministic captures and pixel comparison.
Original author description
Use when a PlayCanvas rendering change is meant to leave the image unchanged, to prove it with deterministic captures and pixel comparison.
How it works
- Choose the gate
- Make frames deterministic
- Capture and compare
SKILL.md preview
--- name: verify-pixels description: Use when a PlayCanvas rendering change is meant to leave the image unchanged, to prove it with deterministic captures and pixel comparison. --- # Prove pixels unchanged ## Choose the gate - Byte-exact: the change keeps the same decoded data and the same shading math, so every pixel must match. - Side-by-side review: the change alters sampled values, random order, precision, or where math runs. Report it as "not byte-gateable" and show old and new at each pose; do not invent thresholds. ## Make frames deterministic - Load every asset and match camera, canvas size, lighting, and animation time between builds. Seed incidental randomness. - Drive animated shaders from one app-owned time value, not `Date.now()` or `performance.now()`. - `app.timeScale = 0` makes `dt` zero, but `update` still runs; anything counting frames or reading wall-clock time still advances. - Set `app.autoRender = false`, then `app.renderNextFrame = true` before each frame to capture. ## Capture and compare - WebGL: `await (device as WebglGraphicsDevice).readPixelsAsync(x, y, w, h, pixels)`. WebGPU: render into a `RenderTarget` and read its `colorBuffer` with `Texture#read()`. Avoid colour conversion and lossy encoding. - Capture the unmodified build twice first. The captures must match exactly, or the harness itself is noisy. - Cover every touched surface in at least two poses, plus a mid-animation phase where relevant. - Report the count, for example "0 of 65536 pixels differ", or the count and where the differences are. "Looks the same" is not a result. Keep harness code out of the shipped bundle; attach it through `inspect-runtime`.
Versions
The database has no other skills named verify-pixels.
Database snapshot: 13.11.2026 · package version 5667236a3d5b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100build-app
Use when creating or restructuring a PlayCanvas app with the Engine API, @playcanvas/react, or @playcanvas/web-components, covering bootstrap, input, resize, physics, update loop, UI, and lifecycle. - 95find-examples
Use when implementing a PlayCanvas feature the project does not use yet, to find and adapt the official example matching the installed version. - 84check-visual-parity
Hold a UI pixel-for-pixel steady through a change: PNG screenshots of the listed states before the first edit (baseline), then again at each green checkpoint, with differing pixels counted against pixel_tolerance (compare). Never edits a baseline. Use when: a plan phase has a… - 90verify
Prove that a change actually works by running the project's checks and reporting the evidence. Use after implementing anything, when the user asks whether a change works, or before declaring a task done. - 100before-after
Use when a visual change should be proven against the state it replaced: \"screenshot comparison\", \"before and after\", \"show me the before/after\", \"prove the UI changed\", \"attach screenshots to the PR\", \"do a visual diff of my change\". Captures the same screen on the… - 100verify-this
Prove a concrete behavior, performance, UI, CLI, API, or memory claim with fresh baseline-versus-treatment evidence and one explicit verdict. Use when asked to verify, prove, compare before and after, show evidence, or confirm that a fix works. Do not use for vague claims such…