Логотип Debugging

Debugging

Спільнота
notque
debugging

Debugging: guided diagnosis of application bugs, and post-mortem of failed agent sessions.

Огляд

Видавецьnotque
Репозиторійvexjoy-agent
Назва навичкиdebugging
Зірки
443
Форки
50
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем notque. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Debugging у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/notque/vexjoy-agent/tree/main/skills/process/debugging
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/notque/vexjoy-agent.git /tmp/vexjoy-agent
mkdir -p .claude/skills
cp -r /tmp/vexjoy-agent/skills/process/debugging .claude/skills/debugging
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Debugging в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Debugging, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Debugging не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Debugging Skill

Two modes. Pick one based on the request:

SignalMode
Guide me, teach debugging, ask me questions, coachingSocratic
What went wrong, post-mortem, stuck loop, session crashedForensics

Mode 1: Socratic Debugging

Guide the user to discover root causes through structured inquiry. Never give the answer -- the user must arrive at it. Read relevant code with Read/Grep/Glob before formulating questions; code knowledge makes questions precise.

Question Progression

Follow these 9 phases in order. Each builds evidence for the next.

PhasePurposeExample
1. SymptomsGap between expected and actual"What did you expect?" / "What happened instead?"
2. ReproducibilityDeterministic or intermittent"Can you reproduce this consistently?"
3. Prior AttemptsAvoid retreading"What have you already tried?"
4. Minimal CaseReduce search space"What is the smallest failing input?"
5. Error AnalysisExtract signal from output"Which part of the error message is most informative?"
6. State InspectionGround in actual data"What is the value of X right before the error?"
7. Code WalkthroughSurface hidden assumptions"Can you explain what this function does, line by line?"
8. Assumption AuditChallenge mental model"What are you assuming that you haven't verified?"
9. HypothesisBuild investigative instinct"Where do you think the problem is? Why there?"

Execution

  1. User describes the bug. Read relevant code silently.
  2. Ask one Phase 1 question. No preamble, no diagnosis, no code references.
  3. Listen. Acknowledge briefly. Ask the next question toward root cause.
  4. After 12 questions without progress, offer escalation (see below).
  5. When user identifies root cause, confirm and ask what fix they would apply.

One question at a time. Mirror user terminology. Acknowledge discoveries before the next question. Open-ended questions that narrow focus are good hints; leading questions that contain the answer are violations.

Escalation

After 12 questions without progress, offer: "Would you like to switch to direct debugging mode?" If accepted, call workflow with systematic-debugging, passing: symptoms, what was tried, current hypothesis, relevant files/lines.

Error Handling

SituationAction
User says "just tell me"Offer mode switch. If accepted, hand off to workflow.
User frustratedAcknowledge. Offer escalation. If continuing, read more code and sharpen questions.
Bug trivially obviousStill ask Phase 1, but make the question pointed enough that the user sees it immediately.

Mode 2: Forensics (Post-Mortem)

Investigate failed or stuck agent sessions through git history, plan files, and session artifacts. Read-only -- never modify state. Even when asked to fix, complete the report and recommend remediation instead.

Key distinction: Tool errors ("ruff found 3 lint errors") are harness-level. Forensics handles workflow-level patterns ("agent edited the same file 5 times and never progressed").

Phase 1: GATHER

Collect raw evidence. Determine branch, plan, and time range.

Step 1: Identify target. Priority: explicit branch > current branch > explicit plan. Read CLAUDE.md if present -- conventions define "normal."

Step 2: Locate plan file. Check task_plan.md, .feature/state/plan/, plan/active/. Record whether found. Three of five detectors work without a plan (stuck loop, crash, degraded abandoned work), so never skip analysis for a missing plan.

Step 3: Collect git history. Run git log main..HEAD --name-only --format="COMMIT %H %ai %s". Check file change frequency, retry/fix language in messages, and commit message uniqueness ratio. Focus on most recent 50 commits if the branch has hundreds.

Step 4: Check working tree. Run git status --short, check for orphaned worktrees (git worktree list --porcelain | grep "prunable"), and locate plan files.

GATE: Git history available, branch identified. Proceed to DETECT.

Phase 2: DETECT

Run all 5 anomaly detectors. Always run every detector -- anomalies correlate (stuck loop causes missing artifacts causes abandoned work). Each finding needs a confidence level (High/Medium/Low).

Run in order: Stuck Loop, Missing Artifacts, Abandoned Work, Scope Drift, Crash/Interruption. Load detector specs and failure signatures from the deep references below.

GATE: All 5 detectors ran. Each produced zero or more findings with confidence levels.

Phase 3: REPORT

Every claim must trace to specific evidence.

Step 1: Scrub. Scan evidence for sk-, ghp_, token=, password=, secret=, key=, bearer tokens, base64 credentials. Replace with [REDACTED]. Replace absolute home paths with ~/.

Step 2: Anomaly table. Order by confidence (High first), then detector number.

Step 3: Root cause hypothesis. Connect anomalies into a causal chain. Must be specific, testable, evidence-grounded.

  • Bad: "Something went wrong"
  • Good: "Agent entered a lint fix loop on server.go (4 commits with 'fix lint'), consuming context before VERIFY could run, leaving test artifacts missing"

Step 4: Remediation. Advisory only -- never execute fixes.

AnomalyTypical Fix
Stuck loopIdentify root cause of loop. Fix manually, resume from last successful phase.
Missing artifactsRe-run the failed phase. Clarify artifact definitions.
Abandoned workResume from last completed phase. Check plan status.
Scope driftReview out-of-scope changes. Revert unrelated ones.
Crash/interruptionPreserve uncommitted changes. Clean orphaned worktrees. Resume from last commit.

Step 5: Format report with sections: header (branch, commit count, plan path), anomaly table, root cause hypothesis, remediation list, evidence excerpts. All paths redacted, credentials scrubbed.

GATE: Report complete, scrubbed, formatted. Deliver to user.

Forensics Error Handling

ErrorAction
No git historyReport "insufficient evidence."
No plan fileNote limitation. Detectors 2/3/4 degrade or skip. 1/5 still work.
Orphaned worktreeReport as crash/interruption evidence. Do not clean up.
Git log too largeFocus on most recent 50 commits. Note truncation.
Ambiguous targetAsk: "Which branch? Current is [X]."

Deep References

WhenLoadContent
Running Phase 2 detectorsreferences/detectors.md5 detector specs with confidence scoring tables and false-positive guidance
Matching symptoms to failure typesreferences/failure-signatures.mdObservable patterns, grep commands, causal chain analysis

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Debugging?

Debugging: guided diagnosis of application bugs, and post-mortem of failed agent sessions.

Навіщо використовувати Debugging у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Debugging — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Debugging у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/notque/vexjoy-agent/tree/main/skills/process/debugging. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Debugging?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Debugging?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Debugging — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Debugging?

Так. Навичку опубліковано на GitHub: notque, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇