Logo di Debugging

Debugging

Community
notque
debugging

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

Panoramica

Autorenotque
Repositoryvexjoy-agent
Nome della skilldebugging
Stelle
443
Fork
50
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da notque su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Debugging in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/notque/vexjoy-agent/tree/main/skills/process/debugging
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Debugging in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Debugging non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Debugging non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Debugging?

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

Perché usare Debugging su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Debugging è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Debugging in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/notque/vexjoy-agent/tree/main/skills/process/debugging. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Debugging?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Debugging?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Debugging: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Debugging è gratuita?

Sì. È pubblicata su GitHub da notque con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇