Logo de Repair

Repair

Comunidade
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.

Visão geral

Publicado porjameskomo
Repositórioconfig-drift-checker
Nome da habilidaderepair
Estrelas
33
Forks
1
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por jameskomo no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Repair no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Repair em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Repair automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Repair não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Perguntas frequentes

O que a habilidade de IA Repair faz?

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.

Por que usar Repair no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Repair é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Repair no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Repair?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Repair?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Repair com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Repair é gratuita?

A habilidade é publicada no GitHub por jameskomo. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇