Command Palette

Search for a command to run...

Назад к скиллам
скилл № 60481

bugfix

Fix a bug using investigate-first discipline. The agent does all its homework before talking to the user — reproduces the symptom, forms a root-cause…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

Установить bugfix в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Skill: Bugfix

No code is written until the agent has completed its own investigation and the user has confirmed the plan. The reporter is not omniscient — treat the issue as a symptom description and determine the facts independently before presenting findings.

See REFERENCE.md for the sibling-scan pattern, escalation pattern, and archive format.

Phase 0 — Sync

Move the worktree HEAD to origin/main before loading any context. Do not use git checkout main — that branch may be checked out in another worktree.

git fetch origin main && git checkout --detach origin/main

Detach rather than git reset --hard: a reset moves whatever branch is checked out, which may be another session's, and discards uncommitted work. A detached checkout moves no branch and refuses to overwrite local changes.

If this fails, stop and investigate before proceeding.

Phase 1 — Identify and Claim

  1. If the user specified a GitHub issue number, skip to step 3. Several numbers is a bundle: fix all of them in one PR that closes every member. Follow .agents/skills/shared/bundling.md § "Executing a bundle" — every member must be a Bug (name the right skill for any that is not), each gets its own failing test, and Phase 3 presents one briefing covering all members plus the single design idea they share.

  2. Query open Bug-type issues and present via ask_user. Include a "Create a new bug" option at the end:

    gh issue list --repo CERTCC/Vultron --limit 1000 \
      --json number,title,issueType \
      --jq '.[] | select(.issueType.name == "Bug") | "#\(.number): \(.title)"'
    

    If the user selects "Create a new bug": invoke orient-agent first (step 3 then becomes a no-op), because routing the bug matches it against open Epics using the spec map, glossary, and schedule that orient-agent loads. Then invoke create-issue with type Bug, reason planned, and the user present. It drafts the body (including the Governing specs: line naming the requirements that define the correct behavior), picks the theme, and routes the bug to a same-theme Epic. Continue with the number it returns.

  3. Invoke orient-agent to load baseline context.

  4. Fetch the issue body and comments.

4.5. Pre-claim defect verification — before claiming, verify the described defect still exists on origin/main HEAD:

 Search for the specific symptom, anti-pattern, or code path described
 in the issue body (grep or `git log -S "<key term>" -- <file>`). If the defect cannot be reproduced on `origin/main`,
 it may have been fixed by a prior PR that lacked a `Closes #N` footer.

 If the defect is absent from `origin/main`:

 1. Post a reference comment identifying any PR that likely fixed it:

    ```bash
    gh issue comment <N> --repo CERTCC/Vultron --body "$(cat <<'EOF'
    The described defect is not present on `origin/main`. It appears to
    have been fixed by #<PR> without a `Closes #N` footer. Closing.
    EOF
    )"
    ```

 2. Close the issue:

    ```bash
    gh issue close <N> --repo CERTCC/Vultron
    ```

 3. **Stop.** Do not claim, branch, or investigate further.

 If the defect is confirmed present, proceed to step 5 and claim.
  1. Claim the issue:

    bash .agents/skills/shared/claim-issue.sh <N> bug <slug> [<OTHER_MEMBERS>...]
    

    Abort immediately if this exits non-zero.

Phase 2 — Investigate (no user questions)

Before presenting anything to the user, complete the full investigation. The reporter is not omniscient — treat the issue as a symptom description and determine the facts independently.

2a — Verify the symptom exists

Search vultron/, test/, and .claude/skills/ for the reported behavior. Locate the specific file and line where it manifests.

Prior-fix check: run git log -S "<key term>" -- <file> on origin/main to confirm the bug has not already been fixed by a prior PR that lacked a Closes #N footer. If it is already fixed, post a reference comment and close the issue. Do not proceed.

2b — Identify the root cause

Trace the code path that produces the symptom. Form a specific hypothesis with file:line evidence — not "looks like X" but "Y at path/to/file.py:42 is called with Z, which causes W because...".

2c — Verify the hypothesis

Confirm the root cause accounts for the symptom (not just correlated). Ask: "If I fix this, does the symptom disappear? Could the same symptom arise from a different path?"

2d — Sibling scan (MANDATORY)

Search for the same structural pattern in:

  • Peer files in the same directory or module
  • Sibling demo scenarios (same naming convention, e.g., rvcv_*, rccv_*)
  • Other actors or handlers that implement the same protocol step

Document each hit with file:line and whether it exhibits the same bug. Do not skip this step even if the issue body says the b

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • REFERENCE.md

FAQ

Что делает скилл bugfix?

Fix a bug using investigate-first discipline. The agent does all its homework before talking to the user — reproduces the symptom, forms a root-cause hypothesis, scans peer files, and drafts a fix plan. The user gets one structured briefing and confirms before any code is written.

Как установить скилл bugfix?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bugfix запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bugfix с