--- name: bug-discovery description: Use when a bug is found outside the current task scope. Covers duplicate check, issue creation via create-issue tool, and continuation protocol. Also when user says "нашёл баг", "bug found", "создай issue для бага", "bug outside scope". --- # Bug Discovery Protocol If a bug is found during work that is outside the scope of the current task: 1. Check `gh issue list` for duplicates. 2. Create a GitHub issue via `create-issue` tool (NOT raw `gh issue create`). 3. Title: `fix(scope): short description` in English. 4. Body: `## Контекст` / `## Задача` / `## Критерии приемки` (in Russian). 5. Continue the current task. Do NOT fix the bug yourself. 6. Report to orchestrator: "Created issue #N: ...".