Delete dead CSS, pixel-safe

Remove one unused or redundant style at a time and keep it gone only when every tested screen looks identical.

Prompt
→ Claude Code
Reduce the CSS styling code [site] sends to users without changing tested screens. First capture representative pages, sizes, themes, and interactions, and record the built CSS size. Treat coverage reports only as suggestions. Remove one declaration or rule, rebuild, and rerun screenshots and project checks. Keep it only if every screenshot is pixel-identical and built CSS is smaller; otherwise revert. Stop when no supported candidate remains, progress stalls, or approval is required. Return reduction, evidence, and untested states.
claude-code · codex

Use this when

Use this when a website's styling files may contain unused declarations, duplicated rules, or old overrides and representative pages and interactions can be captured in repeatable screenshots.

How it runs

  1. Before deleting styling code, list representative pages, screen sizes, light and dark modes, conditional content, hover and keyboard-focus states, and other important variants; capture screenshots and record the final built CSS size.
  2. Use a CSS coverage report to suggest declarations or rules that may be unused, then remove one candidate from the maintainable source file.
  3. Rebuild, run project checks, and recreate every screenshot; keep the deletion only when all images are pixel-identical and the built CSS is smaller, otherwise revert it.
  4. Repeat until no well-supported candidate remains, repeated attempts save nothing, the screenshots cannot cover the affected behavior, or approval is required.

Done when

✓ The delivered stylesheet is smaller while every tested screen remains pixel-identical. The same project checks and screenshots pass after each retained deletion, the built CSS file sent to users is smaller, and untested browsers, screens, or interactions remain explicit risks.

Why it works

Screenshots taken before cleanup preserve the current appearance as the standard. Exact image comparison and one deletion per round catch visual changes that an automated coverage report cannot understand, including rules that matter only because of their order.

Implementation note

CSS is the code that controls a page's appearance. A coverage report can suggest that a rule was not used during one visit, but it cannot prove the rule is unnecessary everywhere. Add uncertain browsers and interaction states before deleting their styles.

Source: Forward Future ↗graded B · 73/100 — how grades work (Safety Score v2) →

/loopDesign & UXhigh risknew

The micro-interaction latency loop

A design-system workflow that checks interaction timing tokens and component specs against latency thresholds, fixes the highest-severity violation, and records compliance evidence.

prompt
→ Claude Code
When motion tokens or interaction specs change, audit every interactive component against the current timing rules. Extract token values, find hardcoded timings, map each component to its motion token, and flag hover or click feedback above 100 ms, page transitions above 1000 ms, async operations above 1000 ms without a loading indicator, and any hardcoded timing. Fix the highest-severity violation by updating tokens or specs, then rerun the same compliance check. Stop when no violations remain, a product decision blocks the fix, or the agreed review scope is complete.
/goalDesign & UXmedium risknew

The Three.js Game Loop

Build a playable loop first, then iterate until it passes gameplay, visual, perf & release checks.

prompt
→ Claude Code
Build the smallest PLAYABLE core loop first (move, interact, win/lose). Then iterate: playtest it, pick the weakest aspect (fun, feel, visuals, performance), improve it, and playtest again. After each pass, run the checklist: plays on desktop + mobile, no visual glitches, stable frame rate, clear UI. Repeat until every check passes.
/goalDesign & UXlow risk

Score every screen on a real task

Complete a real user task, score each meaningful screen with one checklist, fix the weak spots, and retest end to end.

prompt
→ Claude Code
Improve [user flow, such as signup] at [URL] until [completion criterion]. In a real browser, start each pass from fresh state—no saved login, cookies, or site data. Capture meaningful screens at the agreed sizes and modes, score them with one checklist, and improve the weakest safe area. Rerun the whole flow and keep only regression-free changes. Stop on success, two full passes with no gain, blocked access, or required approval. Return scores, screenshots, changes, and stop reason.