Logo di Repair

Repair

Community
jameskomo
repair

After a red eval run, propose the smallest change to the agent setup (CLAUDE.md, a skill, a hook) that restores the drifted behaviour, verify it by re-running only the failing cases, and write a PR-ready summary. Use when the user says "fix the regression", "repair the setup", "make the eval green again", or when the config-drift-checker Action runs with repair: true. Do not use to run the suite or diagnose a red result (that is run), and never to edit eval cases or graders.

Panoramica

Pubblicato dajameskomo
Repositoryconfig-drift-checker
Nome della skillrepair
Stelle
33
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 jameskomo su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Repair 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/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair
  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/jameskomo/config-drift-checker.git /tmp/config-drift-checker
mkdir -p .claude/skills
cp -r /tmp/config-drift-checker/config-drift-checker/skills/repair .claude/skills/repair
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Repair 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 Repair 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 Repair 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à.

config-drift-checker: repair

You are fixing the setup under test, never the test. The eval caught a behaviour drift; your job is to restore the behaviour with the smallest possible edit and prove it with a re-run.

Inputs (all paths are given in the request)

  • Plugin under test: the directory with .claude-plugin/plugin.json; its CLAUDE.md, skills/**, hooks/** are the only files you may change.
  • Failing report: aggregate-result.json of the red run. Diff vs baseline: the markdown table. Baseline: the last green aggregate-result.json.
  • Shim: eval-shim.mjs. Budget: the most you may spend on verification runs (USD).
  • Summary path: where to write repair-summary.md.

Hard rules

  1. Never edit anything under evals/: not prompts, not graders, not case.yaml. A grader that looks wrong goes in the summary as a finding, not a fix.
  2. Never loosen a rule to make a case pass ("archive instead of delete" does not become "delete is fine"). Restoring a behaviour means making the instruction land again on the current model/version: sharper wording, an explicit example, moving a rule nearer the top, a hook where prose stopped working.
  3. One concern per repair. If two unrelated cases went red, fix the first, note the second.
  4. Stay inside the budget: pass --budget <remaining> to every shim call and stop when it is spent.
  5. Never touch git history or push. The caller commits and opens the PR.

Procedure

  1. Read the failure, not the score. For each red case open its arms.with runs: numTurns, toolUses, the failing graders' reason, the response. Classify: refused before acting · skill/hook did not fire · did the wrong thing · did the right thing, said it wrong · grader wrong · flaky. Only the middle three are repairable here; the others go in the summary.
  2. Find the instruction that should have produced the behaviour in CLAUDE.md / the skill / the hook. Compare with the baseline run's transcript: what did the agent do then that it does not do now?
  3. Make the smallest edit that makes the instruction unambiguous on the current model. Prefer, in order: reword the rule → add a one-line example → move the rule earlier / under a clearer heading → add a PreToolUse hook if prose is structurally unreliable for a must-never rule.
  4. Verify: node <shim> <plugin> --case <dir> --runs 2 --ablation none --scaffold --budget <remaining> --output-dir <tmp>. Green = every run scores 1.00 on the scored graders. Compare cost/turns to the baseline too; a fix that doubles turns is not a fix.
  5. Up to two attempts. If the second is not green, revert your edits (git checkout -- <plugin-dir> or undo them by hand) and write a summary that says what you tried and what you learned.
  6. Write repair-summary.md (this becomes the PR body):
## What drifted
<case>: <one sentence: what the agent did vs what the setup requires>, since Claude Code <from> → <to> / model <from> → <to>.

## The change
<file>: <one sentence per edit, and why this wording>

## Evidence
| case | before (red run) | after (verification) | turns | cost |
| … | 0.33 (2/3 runs failed `blocked-by-hook`) | 1.00 (2/2) | 6 → 5 | $0.21 |

## Not changed
<anything you noticed but left alone: a suspicious grader, a second unrelated red case, a flaky run>

If nothing safe was found: title the file ## No safe fix found, keep the What drifted and Not changed sections, and make sure the working tree is clean.

Domande frequenti

Cosa fa la skill IA Repair?

After a red eval run, propose the smallest change to the agent setup (CLAUDE.md, a skill, a hook) that restores the drifted behaviour, verify it by re-running only the failing cases, and write a PR-ready summary. Use when the user says "fix the regression", "repair the setup", "make the eval green again", or when the config-drift-checker Action runs with repair: true. Do not use to run the suite or diagnose a red result (that is run), and never to edit eval cases or graders.

Perché usare Repair su TypingMind?

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

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

Quali modelli IA possono usare Repair?

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 Repair?

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

La skill IA Repair è gratuita?

È pubblicata su GitHub da jameskomo. 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, 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 👇