visual-smoke
Skill9 starsChanged 3 months agoMITView on GitHub
Reference for what visual smoke covers (and doesn't) when a fix touches client-side UI or styles. The actual smoke runs automatically in CI; this skill documents the manual decision tree for routes CI can't reach (authenticated screens, multi-step wizards, post-auth overlays).
In this repository13 other files it gives its agents.
- toolconfigs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- toolconfigs/CLAUDE.mdCLAUDE.md
- toolconfigs/copilot-instructions.mdCopilot instructions
- parallel-sessionsSkill
- code-refactoringSkill
- receiving-code-reviewSkill
- test-driven-developmentSkill
- visual-smokeSkill
- code-refactoringSkill
- dev-harness-for-ui-iterationSkill
- receiving-code-reviewSkill
- test-driven-developmentSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 41
If your change affects one of these and the landing screenshot won't tell the reviewer anything useful, write a short Manual smoke section …
- Distinctive: line 87
If the auto-smoke job fails, do not skip it or merge anyway.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Visual Smoke for Client Changes
CI-green code that was never rendered can ship a regression: a CSS token rename, a missing asset, an overlay misalignment. Unit tests pass, lint passes, build passes, and the screen is still broken to a human eye.
The cheapest defense is a smoke test in the testing sense: power the thing up and see if it explodes. For UI, that means build the client, render the affected screen in a real browser, take a screenshot.
How visual smoke runs today
Automatically, in CI. Configure a workflow (e.g. .github/workflows/visual-smoke.yml) to trigger on any PR whose diff touches:
client/src/UI/**(or your equivalent component path)client/src/styles/**(or your equivalent styles path)client/index.htmlclient/vite.config.ts(or your bundler config)
The workflow builds the client, starts the dev server, drives a headless browser (Playwright Chromium or Puppeteer) against it, captures a full-page screenshot of the landing screen, and posts a PR comment linking the artifact. No agent decision required; no manual step.
This catches:
- Build breakage (the client doesn't compile or the bundle won't serve).
- CSS token regressions on the landing screen (the most-touched shared style surface).
- Console / runtime errors during page load.
- Missing assets, broken imports, blown-up service-worker registration.
What CI does NOT cover
The auto-smoke loads only the landing screen. It does not exercise:
- Authenticated screens (require a live session and a running API backend).
- Multi-step wizards (require API + saved state).
- Settings or save operations (load fine, but persisting requires backend).
- Any overlay or sub-screen reachable only after auth or interaction.
If your change affects one of these and the landing screenshot won't tell the reviewer anything useful, write a short Manual smoke section in the PR description naming what to click. Example:
## Manual smoke
The auto-smoke covers the landing screen only; this change touches
`Dashboard/StatsPanel.module.css` which only renders after login. Please
sign in and confirm the stats panel renders without layout overflow on a
1280px viewport.The reviewer reads this and clicks. That is the current ceiling for routes the runner cannot reach.
Setting up the workflow
Example GitHub Actions job using Playwright:
visual-smoke:
if: >
contains(github.event.pull_request.changed_files_url, 'client/src/UI') ||
contains(github.event.pull_request.changed_files_url, 'client/src/styles')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build --workspace=client
- run: npx playwright install chromium --with-deps
- name: Smoke screenshot
run: |
npx vite preview --port 4173 &
sleep 3
npx playwright screenshot --browser chromium http://localhost:4173 smoke.png
- uses: actions/upload-artifact@v4
with:
name: smoke-screenshot
path: smoke.pngAdapt npm run build --workspace=client and the preview command to your project's build setup.
Failure modes
If the auto-smoke job fails, do not skip it or merge anyway. Failure means one of:
- Build broke. Fix the build.
- Page errored at load. Open the artifact, read the runtime error, fix the root cause.
- Screenshot looks wrong to the human reviewer. Treat as a regression.
A "wait it'll pass next time" rerun is not a fix. Every smoke failure has a real cause.
Why this is a CI gate, not an agent decision
Visual smoke runs in CI, not from the feature agent. Making the agent the gate would mean a human PR could ship UI changes without smoke; CI runs it on every UI PR regardless of who opened it.
The skill remains as documentation for the not-runnable case. When the auto-smoke cannot reach the route the change affects, the PR description's ## Manual smoke section is the substitute. That is the only thing this skill asks of you today.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

