Night visual
One iteration tackles one bounded hypothesis, using revamp-ui, verify, build-animation
for the craft. Read the shared contract in ../night/references/loop-interface.md;
this skill supplies the target, evidence and stopping rules.
Activation
- Use for a frontend with a runnable page and configured themes and viewports.
- Never replace a design the owner liked; add a selectable option instead.
- Read the handoff first and avoid repeating a target already resolved by earlier iterations.
Workflow
- Baseline: Use
verifyto capture real before screenshots in both themes at every configured viewport. - Choose: Ask the supervisor to store screenshots under
.night/artifacts; do not write there yourself. - One change: Use
revamp-uito fix one visible issue; usebuild-animationonly for purposeful calm motion. - Check: Capture matching after screenshots; check layout, readable text, interactions and reduced motion.
- Hand back: run fast checks and report evidence, including failed or unavailable commands. The supervisor re-runs checks and decides keep/revert; never weaken tests or assertions.
Evaluation
- Keep: All required screenshot pairs show the intended improvement and runtime checks stay green.
- Revert: A viewport or theme regresses, interactions break, or gimmick motion adds distraction.
- Inconclusive: missing evidence or unavailable checks cannot count as a successful iteration.
- Record baseline and candidate results with exact commands so the supervisor can repeat them.
Stop conditions
- Missing screenshots make the result inconclusive; never keep on an unsupported visual claim.
- No evidenced visual issue remains, or the page cannot be rendered with the required settings.
- Stop at the supplied time or iteration limit; report the next bounded hypothesis.
Examples
- Day: "run night-visual on the account page spacing" investigates one target with the owner watching.
- Night:
/night visualrepeats bounded iterations within the supplied budget, with each outcome independently evaluated by the supervisor.
End the final message with NIGHT_RESULT: {json} using the shared contract's fields.
Report evidence rather than grading your own result. Include changed paths and reproducible checks.