fix-bug
БесплатноБез исполняемых скриптовНе проверенFix a specific bug by ID. Usage: /fix-bug [bug-ID]
от ArmaOverthrow★ 95 звёзд на GitHubОб этом скилле
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
Parse Arguments:
- If
$ARGUMENTSis empty, try to list available bugs (MCPlist_bugsor globdocs/bugs/BUG-*.md) and ask the user which one to fix - If
$ARGUMENTSis provided, validate it looks like a bug ID (e.g.BUG-001) before proceeding
- If
Load Bug (MCP-first with silent fallback):
- First, try the MCP tool
get_bugwith the provided ID - If MCP is unavailable or returns an error, silently fall back to reading
docs/bugs/$ARGUMENTS.mddirectly- 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
- The bug file uses YAML frontmatter with fields:
- If the bug is not found by either method:
- Try to list available bugs (MCP
list_bugsor globdocs/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
- Try to list available bugs (MCP
- If the bug
statusis alreadyclosed, inform the user and ask if they want to reopen and fix it anyway before continuing
- First, try the MCP tool
Load Feature Context (if linked):
- If the bug has a
linkedFeaturefield:- Resolve
linkedFeatureper 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'sepic-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
- Resolve
- If there is no
linkedFeature, skip this step entirely
- If the bug has a
Set Bug Status to In-Progress:
- First try MCP:
update_bugwithidandstatus: "in-progress" - If MCP fails, use the Edit tool to change the
status:line in the bug file's YAML frontmatter fromopentoin-progress - Also update the
updatedAtfield to the current ISO 8601 timestamp - Only change these two lines — preserve everything else in the file
- First try MCP:
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
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
Close or Retry Based on User Feedback:
- If the user confirms the fix works:
- Try MCP:
update_bugwithidandstatus: "closed" - If MCP fails, use the Edit tool to change
status: in-progresstostatus: closedin the bug file frontmatter - Also update
updatedAtto the current ISO 8601 timestamp - Report: "Bug $ARGUMENTS closed."
- Try MCP:
- If the user reports the bug is still not fixed:
- Leave status as
in-progress - Ask the user for more details about what is still broken
- Return to step 5 and attempt another fix
- Leave status as
- If the user confirms the fix works:
Important
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic