Version: 2.0.0
visual-diff-fix
Apply precise visual fixes from fix-tasks.json.
This skill only fixes listed visual diff tasks. It does not redesign, does not rewrite visual specs, and does not expand scope.
Trigger Conditions
Use this skill when:
07_validation/visual_acceptance/fix-tasks.jsonexists- visual-acceptance-review returned Fail or Conditional Pass
- user asks to fix visual differences
- user asks Codex to apply visual diff fixes
Required Inputs
textui/07_validation/visual_acceptance/ fix-tasks.json comparison-report.md acceptance-summary.md region-diffs/ ui/03_visual_spec/ visual-analysis.md layout-spec.md component-tree.md DESIGN.md tokens.json implementation-risks.md human-review-needed.md ui/04_visual_spec_review/ spec-review-report.md conflict-log.md revised-files-needed.md ui/05_design_system/ MASTER.md pages/target-page.md ux-checklist.md component-state-spec.md responsive-spec.md accessibility-spec.md implementation-constraints.md
Recommended:
textui/06_spec_review/ compliance-report.md violation-list.json package.json playwright.config.* src/ app/ components/ styles/
Source of Truth
fix-tasks.jsonreference.pngvisual-analysis.md / UI Type Classificationlayout-spec.md / Layout Paradigmimplementation-risks.md / Asset Strategycomponent-tree.mdtokens.json05_design_system/- Implementation code
Main Workflow
- Run preflight gates.
- Load and validate fix-tasks.json.
- Sort tasks by priority, blocking, strictness, source, and dependency.
- Group related tasks by root cause and file.
- Apply one small batch of fixes.
- Run available validation commands.
- Capture screenshot if available.
- Update resolved task status.
- Repeat until high/medium blocking issues are fixed or convergence is reached.
- Write outputs under
08_diff_fix/.
Hard Rules
- Only fix tasks listed in fix-tasks.json.
- Do not redesign.
- Do not refactor unrelated code.
- Do not introduce new visual style.
- Do not create new tokens unless task explicitly requires it and source-of-truth allows it.
- Do not overwrite screenshot-derived required tokens without impact analysis.
- Do not modify visual spec files.
- Do not modify design system files.
- Do not modify OpenSpec files.
- If a task is review-required, do not auto-fix it.
- If a task requires UI Type or Asset Strategy restoration, do not substitute with local spacing/color tweaks.
- If a fix causes regression, rollback or mark caused-regression.
Output
Write:
text08_diff_fix/ fix-report.md fix-tasks.resolved.json convergence-report.md escalation-report.md screenshots/ after-batch-1.png after-batch-2.png final.png validation/ lint.log build.log test.log screenshot.log
convergence-report.md and escalation-report.md are only required when applicable.
Supporting Files
Read these references directly:
references/fix-workflow.mdreferences/preflight-gates.mdreferences/prioritization-rules.mdreferences/fix-handlers.mdreferences/token-protection-rules.mdreferences/validation-rules.mdreferences/convergence-rules.mdreferences/fix-task-schema.mdreferences/output-files.md
Examples:
examples/fix-tasks.example.jsonexamples/fix-tasks.resolved.example.jsonexamples/fix-report.example.mdexamples/convergence-report.example.mdexamples/escalation-report.example.md


