Logotipo de Repair

Repair

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

Descripción general

Editorjameskomo
Repositorioconfig-drift-checker
Nombre de la habilidadrepair
Estrellas
33
Forks
1
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por jameskomo en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Repair en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Repair en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Repair automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Repair no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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.

Preguntas frecuentes

¿Qué hace la habilidad de 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.

¿Por qué usar Repair en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Repair está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Repair en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/repair. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Repair?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Repair?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Repair con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Repair?

jameskomo la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇