Logo di Hatch3r Visual Refactor

Hatch3r Visual Refactor

Organizzazione
hatch3r
hatch3r-visual-refactor

UI/UX change workflow matching design, accessibility, and responsiveness requirements. Use when making visual changes, updating components, working on UI issues, or implementing design mockups.

Panoramica

Autorehatch3r
Repositoryhatch3r
Nome della skillhatch3r-visual-refactor
Stelle
26
Fork
7
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da hatch3r su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Hatch3r Visual Refactor in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-visual-refactor
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-visual-refactor .claude/skills/hatch3r-visual-refactor
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Hatch3r Visual Refactor in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Hatch3r Visual Refactor non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Hatch3r Visual Refactor non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Note: Commands below use npm as an example. Substitute with your project's package manager (yarn, pnpm, bun) or build tool when your project uses a different package manager.

Visual Refactor Workflow

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Read the issue, mockups, and design system
- [ ] Step 2: Produce a visual change plan
- [ ] Step 3: Implement matching the mockup
- [ ] Step 4: Verify accessibility and responsiveness
- [ ] Step 5: Open PR with before/after screenshots

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: mockup source (provided vs derived from design system), reuse vs extend vs create verdict from hatch3r-design-system-detect, responsive breakpoint set, animation budget, and snapshot-regeneration authority.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Step 1: Read Inputs

  • Parse the issue body: proposed changes, before/after mockups, affected surfaces, accessibility checklist, responsiveness requirements.
  • Read project quality documentation (accessibility, animation budgets).
  • Invoke hatch3r-design-system-detect to produce the Design System Inventory (skills/hatch3r-design-system-detect/SKILL.md). Use the inventory to choose between reuse / extend / create paths. Skipping detection is a regression — visual refactors that invent new tokens or duplicate primitives are rejected at review.
  • For external library docs and current best practices, follow the project's tooling hierarchy.

Step 2: Visual Change Plan

Before modifying code, output:

  • Surfaces affected: list with stable IDs
  • Components to modify/create: list (prefer modifying existing)
  • Design tokens used: colors, spacing, typography
  • Accessibility approach: how WCAG AA compliance is achieved
  • Responsiveness: how it adapts across widget/panel sizes
  • Animation changes: new/modified animations, frame budget

Step 3: Implement

  • Match the mockup/screenshot exactly. Do not improvise design.
  • Use existing design system tokens and components.
  • Verify animations respect prefers-reduced-motion by enabling the media query in DevTools and confirming animations are disabled or simplified.
  • Verify color contrast meets WCAG AA (4.5:1 for text) using a contrast checker tool.
  • Verify interactive elements are keyboard accessible by tabbing through them and confirming visible focus indicators.
  • Add ARIA attributes for screen reader support.

Step 4: Verify

4a. Automated Checks

  • Snapshot tests updated for all modified components.
  • Animations at 60fps (if applicable).
bash
${HATCH3R:VERIFY_GATE_ALL}

Resolved to the project's language-aware gate at sync time (fallback when detection is unknown: npm run lint && npm run typecheck && npm run test).

4b. Browser Verification

  • Confirm the dev server is running by checking the expected port. If not running, start it in the background.
  • Navigate to every surface affected by the visual change.
  • Compare the rendered result against the mockup or design from the issue.
  • Test at multiple viewport sizes if the change affects responsive behavior.
  • Tab through interactive elements to verify keyboard accessibility and visible focus indicators.
  • Check color contrast on new or changed text and backgrounds.
  • If animations were changed, verify they play at 60fps and respect prefers-reduced-motion.
  • Check the browser console for errors or warnings.
  • Capture before/after screenshots for the PR. If a "before" screenshot was not taken prior to implementation, note this in the PR.
  • Verify no visual regressions on unaffected surfaces adjacent to the change.

Step 5: Open PR

Use the project's PR template. Include:

  • Before/after screenshots (required)
  • Accessibility verification evidence
  • Responsive behavior across sizes

Error Handling

  • No design mockup or reference provided: Ask the user for a design reference before implementing. If none is available, propose the design based on existing design system tokens and get approval before proceeding.
  • Snapshot tests fail after visual changes: Update the snapshots only after visually verifying the new rendering is correct. Do not blindly update snapshots without visual confirmation.
  • Component renders differently across browsers: Test in at least two browser engines. Document browser-specific rendering differences and fix those that affect usability or accessibility.

Definition of Done

  • UI matches mockup/design in the issue
  • Color contrast >= 4.5:1 (WCAG AA)
  • Animations respect prefers-reduced-motion
  • Interactive elements keyboard accessible
  • ARIA attributes for screen readers
  • Responsive across applicable host sizes
  • Snapshot tests updated
  • No visual regressions
  • Design system tokens used (no ad-hoc styling)

References

Domande frequenti

Cosa fa la skill IA Hatch3r Visual Refactor?

UI/UX change workflow matching design, accessibility, and responsiveness requirements. Use when making visual changes, updating components, working on UI issues, or implementing design mockups.

Perché usare Hatch3r Visual Refactor su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Hatch3r Visual Refactor è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Hatch3r Visual Refactor in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-visual-refactor. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Hatch3r Visual Refactor?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Hatch3r Visual Refactor?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Hatch3r Visual Refactor: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Hatch3r Visual Refactor è gratuita?

Sì. È pubblicata su GitHub da hatch3r con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇