Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fix-bug

БесплатноБез исполняемых скриптовНе проверен

Fix a specific bug by ID. Usage: /fix-bug [bug-ID]

ArmaOverthrowот ArmaOverthrow★ 95 звёзд на GitHub

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

Arguments on this harness. This harness does not substitute $ARGUMENTS. Read the text that follows /fix-bug in the same user message, and use that text wherever this skill writes $ARGUMENTS. When another skill loads this skill, use the arguments that the caller states. When no such text exists, treat $ARGUMENTS as empty.

You have been asked to fix a specific bug.

Bug ID: $ARGUMENTS

Harness

This command runs on any agent harness. Read .beast-mode/harness.md first. It maps the neutral terms in this command to the tools of this harness. Terms include: ask the user to choose, delegate to an agent, search the web, and the harness skills directory. Use the mapped tool. Do not use a tool name from another harness.

Epic awareness

This command is epic-aware. Before resolving the bug's linkedFeature to a feature path, read .beast-mode/epic-resolution.md and apply its rules: detect epics by epic-overview.md, resolve <epic>/<feature> references, fuzzy-fall-back into epic folders for bare names, and load epic context (the epic-overview.md + all sibling features) when the linked feature lives inside an epic. If no epics exist in docs/features/, behave exactly as before.

.beast-mode/epic-resolution.md is the single source of truth for epic detection and resolution. The bug's linkedFeature may be a <epic>/<feature> slash path or a bare feature name that lives inside an epic — resolve it before reading feature docs, so docs/features/<linkedFeature>/... becomes the resolved docs/features/<epic>/<feature>/... location. This command's body is the bug-fix workflow; it does not re-specify those rules.

Process

  1. Parse Arguments:

    • If $ARGUMENTS is empty, try to list available bugs (MCP list_bugs or glob docs/bugs/BUG-*.md) and ask the user which one to fix
    • If $ARGUMENTS is provided, validate it looks like a bug ID (e.g. BUG-001) before proceeding
  2. Load Bug (MCP-first with silent fallback):

    • First, try the MCP tool get_bug with the provided ID
    • If MCP is unavailable or returns an error, silently fall back to reading docs/bugs/$ARGUMENTS.md directly
      • The bug file uses YAML frontmatter with fields: id, title, status, priority, linkedFeature (optional), createdAt, updatedAt
      • The body after the frontmatter contains the bug description
    • If the bug is not found by either method:
      • Try to list available bugs (MCP list_bugs or glob docs/bugs/BUG-*.md)
      • Show available bug IDs and ask the user to pick one
      • If no bugs exist at all, inform the user and stop
    • If the bug status is already closed, inform the user and ask if they want to reopen and fix it anyway before continuing
  3. Load Feature Context (if linked):

    • If the bug has a linkedFeature field:
      • Resolve linkedFeature per the Epic awareness rules above — it may be a <epic>/<feature> slash path or a bare name that lives inside an epic (resolve via .beast-mode/epic-resolution.md's fuzzy fallback, announcing the resolved path). Use the resolved path for the reads below; do not assume the bare value is a top-level feature folder.
      • Read docs/features/<resolved-feature>/implementation.md — for understanding the feature architecture
      • Read docs/features/<resolved-feature>/context.md — for key files, decisions, and current state
      • If the linked feature lives inside an epic, also load epic context per epic-resolution.md §4 (the epic's epic-overview.md + sibling features) so the fix fits the epic's architecture
      • If either file doesn't exist, note it internally and continue without that context
    • If there is no linkedFeature, skip this step entirely
  4. Set Bug Status to In-Progress:

    • First try MCP: update_bug with id and status: "in-progress"
    • If MCP fails, use the Edit tool to change the status: line in the bug file's YAML frontmatter from open to in-progress
    • Also update the updatedAt field to the current ISO 8601 timestamp
    • Only change these two lines — preserve everything else in the file
  5. Analyze and Fix the Bug:

    • Read the bug description carefully before touching any code
    • Use the loaded feature context (if available) to understand the relevant codebase area
    • Identify the root cause by reading the relevant source files
    • Make the code fix using Edit/Write tools
    • Keep the fix minimal and focused — fix the bug, do not refactor surrounding code
  6. Report Changes and Ask User to Test:

    • Summarize what was changed and why
    • List all files that were modified
    • Ask the user to test that the bug is fixed
    • Wait for the user's response before proceeding
  7. Close or Retry Based on User Feedback:

    • If the user confirms the fix works:
      • Try MCP: update_bug with id and status: "closed"
      • If MCP fails, use the Edit tool to change status: in-progress to status: closed i
Полный SKILL.md на GitHub

Установить fix-bug в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл fix-bug?

Fix a specific bug by ID. Usage: /fix-bug [bug-ID]

Как установить скилл fix-bug?

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

Скилл fix-bug запускает скрипты?

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

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

Сравнить fix-bug с