Xpersona
B

Bug Fix Protocol

CLAWHUB · Unverified

Structured protocol for fixing bugs with AI agents. Prevents hallucinations and fix loops by enforcing step-by-step diagnosis before code changes. Skill: Bug Fix Protocol Owner: borodich Summary: Structured protocol for fixing bugs with AI agents. Prevents hallucinations and fix loops by enforcing step-by-step diagnosis before code changes. Tags: development:1.0.0, latest:1.0.0, testing:1.0.0 Version history: v1.0.0 | 2026-03-31T13:56:08.914Z | user Every bug fix = two fixes: code + test system. Never repeat the same bug. Archive index: Archive v1.0.0: 4 files,

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cp1659xt5qhk5c0snsvm6es83yps1:bug-fix-protocol
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-borodich-bug-fix-protocol/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

8,204 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: bug-fix-protocol
description: Structured protocol for fixing bugs with AI agents. Prevents hallucinations and fix loops by enforcing step-by-step diagnosis before code changes.
when_to_use: Use when debugging errors, fixing broken code, or when an AI agent is stuck in a fix loop. Follow before touching any code.
---

# BUG-FIX-PROTOCOL Skill

> Source: https://github.com/CodeAlive-AI/ai-driven-development/blob/main/BUG-FIX-PROTOCOL.md  
> Concept by Rodion Mostovoy

## Core Philosophy

**Тест-система = страховочная сетка (safety net)**

- Баг на проде = баг тест-системы в первую очередь
- Каждый баг-фикс = **два фикса**: код + патч тест-системы
- "Тесты" — это не только unit-тесты. Это всё:
  - Unit / Integration / E2E тесты
  - PRD assessment (соответствие продукт-требованиям)
  - Review спеки и документации
  - Code review
  - Статический анализ (linters, type checkers)
  - Визуальные тесты

---

## ⚠️ ГЛАВНОЕ ПРАВИЛО

**НИКОГДА не фиксить баг без воспроизведения через тест.**

Если воспроизвести через тест невозможно — скажи явно с обоснованием. Но не фикси молча.

---

## 8-Шаговый Протокол (Чеклист)

### [ ] Шаг 1 — Понять баг
- Разберись, что именно сломалось
- Придумай способ воспроизведения
- **Непонятно → спроси, не гадай**
- Не трогай код, пока не понял проблему

### [ ] Шаг 2 — Воспроизвести через тест
- Напиши тест, который падает на баге
- Тест должен быть красным ДО фикса
- Если воспроизвести через тест невозможно — **скажи явно с обоснованием**
- Не переходи к шагу 3 без красного теста (или явного объяснения почему нельзя)

### [ ] Шаг 3 — Найти корневую причину
- Ищи **корень**, не симптом
- Задай себе "почему?" минимум 3 раза
- Не фиксируй то, что видишь — найди то, что это вызвало

### [ ] Шаг 4 — Спроектировать правильный фикс
- Придумай грамотный фикс, не костыль
- Оцени scope изменений
- **Большой рефакторинг → остановись, спроси перед началом**
- Фикс должен решать корень, не симптом

### [ ] Шаг 5 — Применить минимальные правки
- Чини с минимальными изменениями
- Не затрагивай части кода, не связанные с багом
- Каждое изменение должно быть обосновано

### [ ] Шаг 6 — Проверить тесты
- Запусти тест из шага 2 → должен быть **зелёным**
- Запусти соседние/связанные тесты → не сломались?
- Запусти полный test suite если возможно
- Только зелёный suite → идём дальше

### [ ] Шаг 7 — Deep Review: похожие проблемы
- Раз тест-система не поймала этот баг — **похожие проблемы могут быть везде**
- Проведи поиск аналогичных паттернов в кодовой базе
- Проверь похожие модули/компоненты
- Задокументируй находки

### [ ] Шаг 8 — Аудит тест-системы
- Разберись, **почему** тест-система упустила этот баг
- Улучши тест-систему чтобы предотвратить класс подобных багов
- Это обязательный шаг, не опциональный

---

## Шаблон: Документация баг-фикса

```markdown
## Bug Fix: [краткое название]

### Что сломалось
[Описание симптома с точки зрения пользователя/системы]

### Как воспроизводится
[Шаги воспроизведения или ссылка на тест]

### К

README.md

# bug-fix-protocol

**Скилл для агентов: протокол исправления багов с обязательным патчем тест-системы.**

## Описание

Основан на подходе Родиона Мостового и репозитории [CodeAlive-AI/ai-driven-development](https://github.com/CodeAlive-AI/ai-driven-development/blob/main/BUG-FIX-PROTOCOL.md).

Ключевая идея: **каждый баг-фикс = два фикса**: исправление кода + улучшение тест-системы.

## Когда использовать

- При любом баг-фиксе в продакшн или разработке
- Когда нужно провести post-mortem после инцидента
- При аудите качества тест-покрытия

## Что внутри

- `SKILL.md` — полный протокол для агента (чеклист 8 шагов + шаблоны)

## Принципы

1. Тест-система = страховочная сетка
2. Никогда не фиксить без воспроизведения через тест
3. Корень, не симптом
4. Минимальные правки
5. Deep review после каждого бага

_meta.json

{
  "ownerId": "kn7289nn6mx7x4yz657zvdkw5s83zdc6",
  "slug": "bug-fix-protocol",
  "version": "1.0.0",
  "publishedAt": 1774965368914
}

skill-card.md

## Description:

Structured protocol for fixing bugs with AI agents. Prevents hallucinations and fix loops by enforcing step-by-step diagnosis before code changes.

This skill is ready for commercial/non-commercial use.

## Publisher:

[borodich](https://clawhub.ai/user/borodich)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering agents use this skill when debugging errors, fixing broken code, recovering from fix loops, or auditing test coverage after an incident. It guides the agent to reproduce the bug with a failing test, find the root cause, make minimal code changes, update the test system, and document the fix.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Using the skill during debugging can lead an agent to read related code, change bug-related code, add or update tests, run tests, and document the fix.

Mitigation: Review proposed code and test changes before deployment, and run the relevant test suite before accepting the fix.

Risk: Most instructions are in Russian, which can make review harder for teams that do not read Russian.

Mitigation: Have a Russian-speaking reviewer or a trusted translation workflow confirm the checklist expectations before operational use.

## Reference(s):

- [BUG-FIX-PROTOCOL source](https://github.com/CodeAlive-AI/ai-driven-development/blob/main/BUG-FIX-PROTOCOL.md)
- [ClawHub skill page](https://clawhub.ai/borodich/skills/bug-fix-protocol)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Code, Shell commands]

**Output Format:** [Markdown guidance with checklists, templates, code changes, tests, and shell commands as needed during debugging]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Most instructions are in Russian; outputs depend on the target repository and bug report.]

## Skill Version(s):

1.0.0 (source: ClawHub release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Bug Fix Protocol and adjacent AI workflows.