Logo di Debug Test Failure

Debug Test Failure

Community
kevinslin
debug-test-failure

Determine whether test failures come from the current branch.

Panoramica

Autorekevinslin
Repositoryagstack
Nome della skilldebug-test-failure
Stelle
26
Fork
1
File inclusi
Solo istruzioni
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 kevinslin su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Debug Test Failure 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/kevinslin/agstack/tree/main/active/debug-test-failure
  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/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/debug-test-failure .claude/skills/debug-test-failure
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

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

Debug Test Failure

Overview

Use this skill to answer one question: did the current branch's changes introduce the observed test failure, or did the failure already exist at the baseline before the user's or agent's changes?

Workflow

  1. Capture the current context.

    • Read repository instructions and respect prohibited commands.
    • Record the current repo path, branch, git status --short, and test command.
    • If the user specified test files, test names, or a test command, use that targeted test command.
    • If the user did not specify tests, run the repository's full test suite or the closest documented "all tests" command.
  2. Identify the comparison baseline.

    • Determine "me" from the user's explicit identity if provided; otherwise use git config user.email and git config user.name.
    • Determine the branch base with the upstream or default branch, for example:
bash
git merge-base HEAD @{upstream}
git merge-base HEAD origin/main
git merge-base HEAD origin/master
  • Inspect branch-only commits in chronological order:
bash
git log --reverse --format='%H%x09%an%x09%ae%x09%s' <base>..HEAD
  • Select the earliest commit in that branch-only list whose author is not "me".
  • If every branch-only commit is authored by "me", use <base> as the comparison commit.
  • If the selected non-me commit still includes earlier branch changes, call that out in the final report.
  1. Create an isolated worktree.
    • Follow dev.worktrees conventions when available: store worktrees under ~/.worktrees/<repo>/.
    • Use a detached worktree so no branch pointer moves:
bash
git worktree add --detach ~/.worktrees/<repo>/debug-test-failure-<short-sha> <baseline-commit>
  • Do not place the worktree inside the repository.
  • If the path already exists, use a clear suffix such as debug-test-failure-<short-sha>-2.
  1. Run comparable tests.

    • Run the same selected test command in the baseline worktree.
    • If the current worktree has not already run that command, run it there too.
    • Keep logs separate, for example /tmp/debug-test-failure-current.log and /tmp/debug-test-failure-baseline.log.
    • Install or bootstrap dependencies only as required by repository instructions.
    • Do not run unrelated precommit hooks or broad cleanup commands unless the user explicitly asked for them.
  2. Compare results.

    • If the baseline passes and the current worktree fails, report that the current branch likely introduced the failure.
    • If both fail with the same failure, report that the failure likely predates the current changes or is environmental/flaky.
    • If the baseline fails differently, report that the result is inconclusive and separate the baseline failure from the current failure.
    • If either run cannot execute, report the exact blocker and avoid claiming causality.
  3. Report the outcome.

    • Include the current branch, baseline commit, baseline worktree path, test command, and pass/fail result for each worktree.
    • State the causality conclusion in one sentence.
    • Include the most relevant failure excerpt, not the full log.
    • Keep the baseline worktree available until the report is complete; remove it only if the user asked for cleanup or the artifact is clearly unnecessary.

Domande frequenti

Cosa fa la skill IA Debug Test Failure?

Determine whether test failures come from the current branch.

Perché usare Debug Test Failure su TypingMind?

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

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

Quali modelli IA possono usare Debug Test Failure?

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 Debug Test Failure?

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

La skill IA Debug Test Failure è gratuita?

È pubblicata su GitHub da kevinslin. Consulta il repository per i termini di licenza. 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 👇