Логотип 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, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

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

  • Відкритий вихідний код

    Видавець на GitHub: hatch3r. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Hatch3r Bug Fix у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-bug-fix
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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 цю навичку публікує hatch3r за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇