Логотип Hatch3r Bug Fix

Hatch3r Bug Fix

Организация
hatch3r
hatch3r-bug-fix

Step-by-step bug fix workflow. Diagnose root cause, implement minimal fix, write regression test. Use when fixing bugs, working on bug report issues, or when the user mentions a bug.

Обзор

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

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

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

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

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

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

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

    Издатель навыка на GitHub — hatch3r. Перед установкой изучите исходные материалы.

Установка

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

1

Установка в TypingMind

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

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-bug-fix
  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-bug-fix .claude/skills/hatch3r-bug-fix
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

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

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

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

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

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Hatch3r Bug Fix не привязан к модели, для которой он был создан. Установите его один раз в 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.

Bug Fix Workflow

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Read the issue and relevant specs
- [ ] Step 2: Produce a diagnosis plan
- [ ] Step 2b: Browser reproduction (if UI bug)
- [ ] Step 2c: Test-first approach (TDD alternative — optional)
- [ ] Step 3: Implement minimal fix
- [ ] Step 4: Write regression test
- [ ] Step 5: Verify all tests pass
- [ ] Step 5b: Browser verification (if UI bug)
- [ ] Step 6: Open PR

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: reproduction steps incomplete, expected vs actual behavior unstated, severity unclear (P0/P1 vs P2/P3), affected environment unknown (staging vs prod), or fix may require schema/API change with downstream consumers.

Step 1: Read Inputs

  • Parse the issue body: problem description, reproduction steps, expected/actual behavior, severity, affected area.
  • Read relevant project documentation based on affected area (see spec mapping in project context).
  • Review existing tests in the affected area.
  • For external library docs and current best practices, follow the project's tooling hierarchy.

Step 2: Diagnosis Plan

Before fixing, output:

  • Root cause hypothesis: what is wrong and why (distinguish between the symptom the user reported and the underlying cause)
  • Files to investigate: list of files with reason each file is relevant
  • Reproduction strategy: how to confirm the bug via tests (specific test scenario, expected vs. actual result)
  • Error handling check: does the affected code have proper error handling? If the bug is caused by a missing or incorrect error path, note this explicitly
  • Risks: what could go wrong with the fix (regression risk, related code paths that could be affected)
  • Confidence: high/medium/low for the hypothesis. If low, describe what additional investigation is needed before proceeding

Step 2b: Browser Reproduction (if UI Bug)

Skip this step if the bug has no visual or interactive symptoms.

  • Confirm the dev server is running by checking the expected port. If not running, start it in the background.
  • Navigate to the page where the bug manifests.
  • Follow the reproduction steps from the issue to confirm the bug is observable.
  • Take a screenshot of the broken state as baseline evidence.
  • Note any browser console errors or warnings associated with the bug.

Step 2c: Test-First Approach (TDD Alternative)

When the root cause is clear from diagnosis, write the regression test BEFORE implementing the fix:

  1. Write a failing test that reproduces the exact bug scenario from the issue's reproduction steps.
  2. Run the test — confirm it fails with the expected symptom (not a setup error).
  3. Implement the minimal fix (Step 3) to make the test pass.
  4. Verify the test now passes AND no other tests broke.

This approach guarantees the fix addresses the actual bug and prevents regression. Prefer TDD when:

  • The bug has clear reproduction steps
  • The affected code has existing test infrastructure
  • The root cause is well-understood from Step 2

Skip TDD and use the standard flow (Steps 3→4) when:

  • The bug requires exploratory debugging to locate
  • Test infrastructure needs setup first
  • The fix involves configuration or environment changes

Step 3: Minimal Fix

  • Fix the root cause with minimal changes.
  • Do not refactor unrelated code.
  • Do not introduce new dependencies unless absolutely necessary.
  • Remove dead code created by the fix.

Step 4: Regression Test

  • Write a test that fails before the fix and passes after.
  • Add edge case tests if the bug reveals coverage gaps.
  • Run the full test suite and confirm 0 failures — all existing tests still pass.

Step 5: Verify

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).

Step 5b: Browser Verification (if UI Bug)

Skip this step if the bug had no visual or interactive symptoms.

  • Navigate to the same page where the bug was reproduced in Step 2b.
  • Follow the original reproduction steps — confirm the bug is now fixed.
  • Take a screenshot of the corrected state.
  • Verify no new visual regressions were introduced in the surrounding UI.
  • Check the browser console for errors or warnings.

Step 6: Open PR

Use the project's PR template. Include:

  • Root cause explanation
  • Fix description with before/after behavior
  • Test evidence
  • Rollback plan (required for P0/P1)

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). Tier boundaries for THIS skill:

  • Tier 1 (trivial single-file fix): inline.
  • Tier 2 (multi-file or multi-concern fix): spawn parallel sub-agents per concern (researcher, implementer, reviewer, hatch3r-testability) via the Task tool.
  • Tier 3 (multi-module / high-risk fix): one fresh sub-agent per independent module or gate; orchestrator integrates only.

Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Required Agent Delegation

Note: When this skill is invoked via the orchestration pipeline (board-pickup or workflow commands), skip this section — the orchestrator handles agent delegation in Phases 3 and 4.

You MUST spawn these agents via the Task tool (subagent_type: "general-purpose") at the appropriate points:

  • hatch3r-researcher — MUST spawn before implementation with modes symptom-trace, root-cause, codebase-impact. For Tier 2+ tasks (per hatch3r-deep-context), also include requirements-elicitation (bugs often have underspecified reproduction steps and ambiguous expected behavior). Skip only for trivially simple bugs (risk:low AND priority:p3).
  • hatch3r-testability (CQ5) — MUST spawn after fix implementation to author regression tests covering the fixed behavior and related edge cases and verify they meet the mandate map / coverage floor.
  • hatch3r-reviewer — MUST spawn after implementation for code review before PR creation.

Related Skills

  • Skill: hatch3r-qa-validation — use this skill for end-to-end verification of the bug fix

Error Handling

  • Root cause cannot be identified: If tracing reaches a dead end, document the investigation path taken, the hypotheses eliminated, and recommend additional instrumentation (debug logging, reproduction steps) to narrow down the cause.
  • Fix introduces test failures elsewhere: Analyze whether the failing tests relied on the buggy behavior. Update those tests if they were testing incorrect expectations; otherwise, rethink the fix approach.
  • Bug is in a third-party dependency: If the root cause is in external code, implement a workaround with a code comment linking to the upstream issue, and file or reference the upstream bug report.

Definition of Done

  • Root cause identified and documented in PR
  • Fix implemented with minimal diff
  • Regression test written
  • All existing tests pass
  • No new linter warnings
  • Browser-verified fix (if UI bug)
  • Performance budgets maintained
  • Security/privacy invariants respected
  • If P0/P1: rollback plan documented

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

Что делает навык ИИ Hatch3r Bug Fix?

Step-by-step bug fix workflow. Diagnose root cause, implement minimal fix, write regression test. Use when fixing bugs, working on bug report issues, or when the user mentions a bug.

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

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

Как установить Hatch3r Bug Fix в TypingMind?

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

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

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

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

С любым количеством. В TypingMind вы можете использовать Hatch3r Bug Fix с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Hatch3r Bug Fix?

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

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

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

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

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

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

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