Skip to content
Skills Library
Programming · Testing

shader-effects-qa

/shader-effects-qa

Use to validate visual shader effects, screenshots, color correctness, regressions and GPU budgets; not write base GLSL pipelines.

Licence
MIT
Last repository change
30.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
19
Scripts
4
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 4 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/compare_images.py, scripts/effect_math.py, tests/test_compare_images.py, tests/test_effect_math.py

What it does and when to use it

Use to validate visual shader effects, screenshots, color correctness, regressions and GPU budgets; not write base GLSL pipelines.

Original author description

Use to validate visual shader effects, screenshots, color correctness, regressions and GPU budgets; not write base GLSL pipelines.

How it works

  1. Scope
  2. Workflow
  3. Practical tools
  4. Core invariants
Original SKILL.md headings · 35 lines, 473 words
SKILL.md preview
---
name: shader-effects-qa
description: Use to validate visual shader effects, screenshots, color correctness, regressions and GPU budgets; not write base GLSL pipelines.
---
# Shader Effects and Visual Quality Assurance

## Scope

Effects engineering and validation only. Preserve simulation state, gameplay, physics, destruction rules, save format, and screen layout unless the user explicitly requests change. Target renderer is determined by **the existing project**, not by whichever shader framework is newest.

## Workflow

1. Inspect renderer, game loop, game-state ownership, assets, color workflow, target devices, active post-processing, resolution scaling and relevant `AGENTS.md`.
2. Record desired look, visual reference or acceptance description, performance limits and degradations allowed on mobile. Freeze time, camera and random seed for reproducibility.
3. Select implementation tier: sprite or atlas shader, material node, overlay quad, depth/normal-aware post-pass, multipass compositor or CPU Canvas 2D fallback. Ensure the selected tier can draw pixels where desired (a sprite shader cannot paint outside its rasterized bounds).
4. Construct a small test scene with representative alpha, depth, colored lights, solid and textured geometry, UI overlay, motion, varying viewport/DPR and HDR/SDR where applicable.
5. Validate shader **compile/link**, material integration and the effect's mathematical behavior; test clamping, NaN/Inf, alpha mode, blend order, and color conversion. See `references/effect-patterns.md`.
6. Capture baseline/reference screenshots at the same deterministic state. Compare with `scripts/compare_images.py` using **actual saved PNG/PPM files** and documented thresholds. Quantitative image similarity does not prove artistic or gameplay correctness.
7. Benchmark after warmup and record p50/p95/p99 frame times, outlier frames, overdraw, textures, render targets and compile hitches. A significant quality difference may justify slower rendering only with explicit approval.
8. Report visual changes and device compatibility, pass/fail of QA gates, untested platforms, and rollback. Do not imply benchmark success from a static shader lint.

## Practical tools

- `python scripts/effect_math.py --self-test` — numerical checks for vignette/dissolve mathematics.
- `python scripts/compare_images.py baseline.png candidate.png --json report.json` — compare same-dimension images, using Pillow if available; PPM P6 supported with standard library. Default accepts PNG with Pillow installed, which is optional.
- `python -m unittest discover -s tests -v` — tests including image comparison and math edge cases.
- `examples/vignette-300es.frag` + `examples/fullscreen-300es.vert` — paired GLSL ES 3.00 effect example; compilation must be checked with an actual WebGL2 context.

## Core invariants

- `smoothstep(edge0, edge1, x)` requires ascending edges. Use clamped positive width and explicit direction of mask.
- Preserve authored sprite silhouette: external outline needs padded geometry/atlas or separate pass; bilinear filtering and alpha fringing must be considered.
- Lighting computations generally occur in linear space; output conversion and tone mapping should happen in the appropriate final pass only once.
- Bloom/glow in HDR is not an exact substitute for emissive color. Color grading and screen overlay semantics vary by backend.
- Test cutout versus blending, depth sorting and MSAA; `discard` is not always faster than alpha blending.
- Use GPU compute only with an approved design and device capability checks. Do not offload game logic just to simplify a visual shader.

References: `references/effect-patterns.md`, `references/visual-regression.md`, `references/gpu-benchmark.md`, `assets/QA_REPORT_TEMPLATE.md`.
Files in this package (19)
  • CHANGELOG.md 1 KB
  • LICENSE 1 KB
  • PROVENANCE.md 2 KB
  • README.md 1 KB
  • SKILL.md 4 KB
  • assets/QA_REPORT_TEMPLATE.md 1 KB
  • attribution/upstream/LICENSE 11 KB
  • attribution/upstream/NOTICE 1 KB
  • examples/fullscreen-300es.vert 1 KB
  • examples/vignette-300es.frag 1 KB
  • references/effect-patterns.md 2 KB
  • references/gpu-benchmark.md 1 KB
  • references/visual-regression.md 1 KB
  • scripts/compare_images.py 3 KB
  • scripts/effect_math.py 2 KB
  • tests/README.md 1 KB
  • tests/browser_compile.html 2 KB
  • tests/test_compare_images.py 2 KB
  • tests/test_effect_math.py 1 KB

Versions

The database has no other skills named shader-effects-qa.

Database snapshot: 13.11.2026 · package version f7c92a4675bf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100shader-router
    Decision framework for GLSL shader projects. Routes to specialized shader skills (fundamentals, noise, SDF, effects) based on task requirements. Use when starting a shader project or needing guidance on which shader techniques to combine.
  • 100shader-core-glsl
    Use to write or debug GLSL shaders, uniforms, ShaderMaterial and WebGL color/UV bugs; not WebGPU TSL or shader QA.
  • 100shader-basics
    Use when implementing shaders — Godot shader language, visual shaders, common visual recipes, and post-processing effects
  • 100godot-shaders-basics
    Expert blueprint for shader programming (visual effects, post-processing, material customization) using Godot's GLSL-like shader language. Covers canvas_item (2D), spatial (3D), uniforms, built-in variables, and performance. Use when implementing custom effects OR stylized…
  • 100makepad-shaders
    CRITICAL: Use for Makepad shader system. Triggers on: makepad shader, makepad draw_bg, Sdf2d, makepad pixel, makepad glsl, makepad sdf, draw_quad, makepad gpu, makepad 着色器, makepad shader 语法, makepad 绘制
  • 100makepad-shaders
    CRITICAL: Use for Makepad shader system. Triggers on: makepad shader, makepad draw_bg, Sdf2d, makepad pixel, makepad glsl, makepad sdf, draw_quad, makepad gpu, makepad 着色器, makepad shader 语法, makepad 绘制

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.