Logo di Debug Fix

Debug Fix

Community
poshan0126
debug-fix

Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for emergency production mode (hotfix branch, minimal change, ship a PR fast).

Add to TypingMind

Panoramica

Pubblicato daposhan0126
Repositorydotclaude
Nome della skilldebug-fix
Stelle
870
Fork
204
File inclusi
Solo istruzioni
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.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

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

Installazione

Installa la skill IA Debug Fix 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/poshan0126/dotclaude/tree/main/skills/debug-fix
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi 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 della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/poshan0126/dotclaude.git /tmp/dotclaude
mkdir -p .claude/skills
cp -r /tmp/dotclaude/skills/debug-fix .claude/skills/debug-fix
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Debug Fix 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 Debug Fix 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 Debug Fix 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à.

Find and fix the following issue:

Problem: $ARGUMENTS

Mode

Check $ARGUMENTS for --fast. Strip it before parsing the problem description.

  • Default: careful debug-fix. Use when you have time to do this right.
  • --fast: emergency hotfix. Use when production is broken and shipping speed matters more than thoroughness. Triggers a hotfix/* branch from production, minimal-change discipline, critical-tests-only verification, and ships a [HOTFIX] PR. Before committing to fast mode, briefly confirm with the user that this is genuinely emergency-grade. If not, suggest dropping --fast.

Step 1: Understand

  • Issue number: gh issue view $ARGUMENTS (or the project's issue tracker).
  • Error or stack trace: parse it for file, line, error type, and call chain.
  • Description: identify expected vs actual.
  • URL or screenshot: examine the referenced resource.

If unclear, ask clarifying questions before proceeding.

Step 2: Hotfix branch (--fast only)

In --fast mode only:

  • Detect the production branch: git symbolic-ref refs/remotes/origin/HEAD or git remote show origin.
  • Stash uncommitted work if needed.
  • Create and switch to hotfix/<short-description> branched from production.
  • ASK the user to confirm the branch name first.

In default mode, skip this. Branch creation happens in Step 7.

Step 3: Reproduce (default only)

In --fast mode, skip this step. Trust the report and move to Step 5.

  • Find the simplest way to trigger the issue (a test, curl, script).
  • Confirm you can reproduce reliably.
  • If you can't reproduce:
    • Environment-specific? Check env vars, OS, runtime version, database state.
    • Intermittent? Likely a race condition. Look for shared mutable state, timing dependencies, async ordering assumptions.
    • Already fixed? git log for recent commits mentioning the issue.

Step 4: Investigate (default only)

In --fast mode, skip this and go to Step 5. Trust the report and minimize investigation depth.

Don't skip ahead to guessing:

  1. Locate the symptom. Which file and line produces the wrong output?
  2. Read the code path backwards. What called this? What data was passed?
  3. Check git history: git log --oneline -20 -- <file>, git log --all --grep="<keyword>".
  4. Narrow scope with git bisect or targeted grep.
  5. Form a hypothesis: "X is wrong because Y."
  6. Verify the hypothesis with a targeted log or assertion.
  7. If wrong, trace a different path. Don't keep guessing the same hypothesis.

Step 5: Fix

  • Make the smallest correct change.
  • Don't patch symptoms. Trace back to where bad data originates and fix it there.
  • Don't refactor surrounding code while fixing.
  • Don't add defensive checks that mask the problem.

In --fast mode specifically:

  • If the fix needs more than ~50 lines changed, warn the user. This may not actually be a hotfix.
  • Do NOT add features, change formatting, clean up unrelated issues, or add non-essential comments.

Step 6: Verify

Default:

  • Write a test that reproduces the bug and now passes.
  • Run related tests for regressions.
  • Run lint and typecheck.
  • Temporarily revert your fix and confirm the new test fails (proves the test catches the bug).

--fast:

  • Run only tests directly relevant to the changed code, not the full suite.
  • Run the build.
  • If you can reproduce the original error, verify it's fixed.
  • ASK the user if they want extra verification before shipping.

Step 7: Wrap up or ship

Default:

  • Create a branch if not already on one.
  • Stage only the fix and test files.
  • Commit: fix: <what was wrong and why> (#number).

--fast:

  • Stage only the fix files (never secrets, locks, or build output).
  • Draft commit: hotfix: <short description>. ASK the user to confirm.
  • Push: git push -u origin hotfix/<description>.
  • Create a PR targeting production:
    • Title: [HOTFIX] <description>.
    • Body: what broke, what caused it, what this fixes.
    • Try to add the hotfix label: gh pr create ... --label hotfix. Fall back to no label on failure.
  • Show the PR URL.

Rules

  • NEVER skip confirmation steps in --fast mode (branch name, commit message, push).
  • NEVER force-push.
  • NEVER commit secrets or unrelated changes.
  • If the user says "skip" at any step, skip and move on.
  • In --fast mode specifically: if the fix turns out to be complex, tell the user and suggest dropping --fast to use the careful path.

Domande frequenti

Cosa fa la skill IA Debug Fix?

Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for emergency production mode (hotfix branch, minimal change, ship a PR fast).

Perché usare Debug Fix su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Debug Fix è 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 la skill 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 Debug Fix in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/poshan0126/dotclaude/tree/main/skills/debug-fix. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Debug Fix?

Qualsiasi modello che colleghi a 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 Debug Fix?

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

La skill IA Debug Fix è gratuita?

Sì. È pubblicata su GitHub da poshan0126 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, template 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.

Elenco completo

Crea subito il tuo spazio di lavoro AI

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