Command Palette

Search for a command to run...

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

debugging

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

Systematic debugging protocol for finding and fixing bugs. Activates for "debug", "fix bug", "not working", "error", "broken", "issue", "fails", "crash"…

abdullah1854от abdullah1854★ 19 звёзд на GitHub

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

Debugging Protocol (v2 -- Friction-Hardened)

Built from 169 real sessions. Addresses 38 "wrong approach" events, 30 "buggy code" events, 17 "misunderstood request" events. Every rule below exists because it was violated in production.

When This Skill Activates

  • "Debug this", "fix this bug", "not working"
  • Error messages, stack traces
  • "Undefined", "null", "crash", "fails"
  • Unexpected behavior
  • Performance issues
  • Database query returning wrong data
  • "Who changed X?" / audit trail questions

STOP-THINK-ACT Protocol (MANDATORY -- Execute Before EVERY Action)

Origin: 38 sessions had "wrong approach" friction -- Claude jumped to the wrong tool, wrong file, or wrong strategy before understanding context. This protocol is non-negotiable.

STOP -- Before writing code, running commands, or choosing an approach:

Check Question If Unclear
System Which system/environment is this? Local app? Remote server? Database? ASK the user. Never assume.
Output format What format does the user want? SQL? Code fix? Plan document? Working code? ASK if ambiguous.
Target file Am I editing the right file? Local vs remote? Config vs code? Is there a secondary config file? Verify path before editing.
Database Which database connection? Which server? Confirm before querying.
Branch/Env Am I on the right branch? Right environment? Check with git branch or ask.

THINK -- Before stating conclusions:

Check Question Violation Example
Evidence Do I have concrete evidence? Saying "User X broke this" without a git blame diff
Schema Have I verified actual schemas via MCP? Assuming a column TransactionDate exists when it's actually TRANSDATE
Scope Am I about to explore when I should execute, or code when asked for a plan? Spending 45 minutes reading files when user wants a one-line fix
Attribution Am I about to blame someone/something without proof? "This was probably caused by the last deployment" -- prove it

ACT -- Only after confirming context and approach:

  1. Make the minimal change needed. Don't refactor surrounding code.
  2. Verify the change works before declaring done. Show proof.
  3. If something fails, diagnose root cause -- don't retry the same failing approach.
  4. If unsure, ask the user rather than guessing.

Anti-Hallucination Rules (NEVER violate)

Rule Description Real Violation
CONFIRM ENVIRONMENT ALWAYS confirm target system/environment FIRST. Ask: "Which system? Which environment?" Never assume which system or database Connected to wrong database because system wasn't confirmed
EVIDENCE BEFORE CONCLUSIONS NEVER state a root cause without showing concrete evidence (logs, data, diffs). Show findings FIRST, then interpretation Claude attributed changes to wrong people without proof
SCHEMA FIRST When debugging database issues, ALWAYS check actual table schemas before writing queries. Never assume column names Claude assumed column names that didn't exist, wasted entire sessions
RIGHT FILE, RIGHT PATH ALWAYS verify you're editing the correct file. Local vs remote? Config vs code? Check for secondary config files Claude edited local file when user meant remote VPS config
NO PREMATURE FIXES Don't fix without understanding. Gather evidence, form hypothesis, THEN fix. Never "try and see" without a hypothesis Claude applied 5 different "fixes" without understanding the actual bug
STOP CONDITIONS If your approach isn't working after 3 attempts, STOP and pivot. Don't retry the same failing approach Claude retried the same broken query 7 times
RESPECT OUTPUT FORMAT If user asks for SQL, give SQL. Never silently switch formats Gave wrong output format when user explicitly asked for a specific one
NO UNPROVEN ATTRIBUTION Never say "Person X caused this" or "This happened because of Y" without showing audit trail, git blame, or log evidence Claude blamed a team member based on assumption, not data

Multi-System Identification

When debugging involves multiple systems or databases, always confirm which system the user is referring to before querying. Never assume.

Identify the System First

User mentions a bug/issue
        |
        v
Does the user specify a system?
        |
   YES -+-> Use that system
        |
   NO --+-> Look for contextual clues in their message
             |
             +-- Database-related keywords? --> Confirm which database
             +-- Server/infrastructure keywords? --> Confirm which server
             +-- None of the above or ambiguous
                 --> ASK: "Which system should I investigate?"

Schema Verification (MANDATORY)

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

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

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

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

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

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

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

Read
Grep
Glob
Bash
LSP
Edit
Task
SendMessage

FAQ

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

Systematic debugging protocol for finding and fixing bugs. Activates for "debug", "fix bug", "not working", "error", "broken", "issue", "fails", "crash", "undefined", "null" problems. Hardened against 169 sessions of real-world friction data.

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

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

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

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

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

Сравнить debugging с