Logo: Repair

Repair

Communautéit
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.

Iwwersiicht

Editeurjameskomo
Repositoryconfig-drift-checker
Skill-Nummrepair
Stären
33
Forks
1
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    jameskomo huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Repair an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Repair an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Repair automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Repair net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Repair op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Repair besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Repair an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Repair benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Repair benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Repair domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Repair gratis?

jameskomo huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇