hatch3r-visual-refactor

Execute design-faithful UI refactors with WCAG AA and responsiveness verification.

26|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/hatch3r/hatch3r --skill hatch3r-visual-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hatch3r-visual-refactor
Source: https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-visual-refactor
Command: npx skills add https://github.com/hatch3r/hatch3r --skill hatch3r-visual-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams implement visual/UI updates that match the requested design while avoiding regressions in accessibility, responsiveness, and expected behavior.

Core Features & Use Cases

  • Ambiguity detection and safe clarification: Identifies unresolved scope, acceptance criteria, environment, and irreversibility and prompts the user via the platform-native question protocol before proceeding.
  • Design-system-driven implementation: Reads the issue inputs and uses hatch3r-design-system-detect to select a reuse/extend/create path so tokens and primitives are not invented or duplicated.
  • End-to-end verification for UI quality: Produces a visual change plan, implements mockup-matching changes, verifies WCAG AA contrast and keyboard focus, checks prefers-reduced-motion, runs test/lint/typecheck, validates responsive behavior, and prepares before/after screenshots for PRs.
  • Fan-out orchestration discipline: Delegates into parallel sub-agents based on task size (single-file vs multi-concern vs high-risk module boundaries) and emits sub-agent spawn rationale in outputs.

Quick Start

Use hatch3r-visual-refactor when you have an issue describing UI changes (with mockups or design references) and you want the assistant to produce a verified, PR-ready implementation that matches the design and passes accessibility and responsiveness requirements.

Frequently Asked Questions about hatch3r-visual-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement UI mockups without breaking WCAG accessibility?

A visual refactor workflow ensures UI changes match mockups while enforcing WCAG AA contrast, keyboard focus verification, and prefers-reduced-motion compliance. It reads design system tokens to prevent duplication and generates PR-ready screenshot evidence alongside updated snapshot tests.

What is the best way to refactor UI components to match design mockups?

Using a design-system-driven inventory path to match mockups ensures you reuse or extend existing tokens and primitives rather than inventing duplicates. This visual refactor approach maintains design fidelity while generating before-and-after screenshots for PR-ready evidence.

How do visual refactor workflows handle ambiguous UI update requirements?

Visual refactor workflows handle ambiguous UI requirements by detecting unresolved scope, acceptance criteria, and irreversibility risks early. They prompt the user for safe clarification before proceeding, ensuring the implementation matches design intent and avoids irreversible errors.

Can I use visual refactor automation for multi-module codebase updates?

Yes, visual refactor automation supports multi-module codebase updates by delegating work into parallel sub-agents based on task size and risk. It emits spawn rationale to orchestrate single-file updates and high-risk module boundary changes safely without losing context.

Does visual refactoring include responsive design and snapshot testing?

Yes, visual refactoring includes responsive design validation and snapshot testing. The workflow checks responsive behavior across viewports, runs test and lint suites, and updates snapshot tests to provide PR-ready evidence alongside before and after screenshot comparisons.