Логотип Hatch3r Visual Refactor

Hatch3r Visual Refactor

Организация
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.

Обзор

Издательhatch3r
Репозиторийhatch3r
Название навыкаhatch3r-visual-refactor
Звёзды
26
Форки
7
Встроенные файлы
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Опубликовано на GitHub: hatch3r. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Hatch3r Visual Refactor в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-visual-refactor
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Hatch3r Visual Refactor в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Hatch3r Visual Refactor, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Hatch3r Visual Refactor не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Hatch3r Visual Refactor в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Hatch3r Visual Refactor — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Hatch3r Visual Refactor в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-visual-refactor. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Hatch3r Visual Refactor?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Hatch3r Visual Refactor?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Hatch3r Visual Refactor: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Hatch3r Visual Refactor?

Да. Навык опубликован на GitHub автором hatch3r по лицензии MIT. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇