Saltar al contenido
Skillpedia
Deploy y nube (DevOps)81 mil · #1646

harness-drift-from-history

Qué hace

Esta skill ejecuta una auditoría nueva de un arnés, la compara con la auditoría guardada más reciente e informa cuánto se ha desviado. Es para equipos que revisan sus arneses de IA con regularidad para detectar cambios inesperados.

Cuándo usarla

  • ✓Cuando quieres saber si un arnés ha cambiado desde su última auditoría.
  • ✓Cuando se ejecutó una auditoría semanal y quieres ver si algo se desvió.
  • ✓Cuando quieres una alerta si el cambio supera un umbral definido.

Link de la skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Mi arnés se ha desviado desde la última auditoría? Avísame si se movió demasiado.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill toma el registro de auditoría guardado más reciente, opcionalmente omitiendo los muy recientes, ejecuta una auditoría nueva y compara ambas. Devuelve un informe de desviación y puede avisar cuando la similitud baja del umbral que definiste.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

The natural ops question after running oia-audit weekly is "did anything drift?" Before this skill, the answer required a three-step sequence:

npx ruflo metaharness audit-list --format json   # → pick a key by hand
npx ruflo metaharness oia-audit --format json > /tmp/curr.json
npx ruflo metaharness audit-trend \
  --baseline-key <picked-key> --current /tmp/curr.json \
  --alert-on-distance-below 0.95

This skill collapses it into one command:

npx ruflo metaharness drift-from-history --threshold 0.95

What it does

  1. Lists records from metaharness-audit namespace via audit-list.mjs
  2. Picks the most recent record by startedAt (or --baseline-since 7d skips anything newer than 7 days)
  3. Runs a fresh oia-audit against the current path
  4. Diffs the two via audit-trend, applying --alert-on-distance-below ${threshold}
  5. Returns the structured drift report

Architectural constraint inheritance (ADR-150)

Constraint How drift-from-history satisfies it
Removable Pure subprocess composition over existing scripts — no new @metaharness/* import
Optional If oia-audit reports degraded:true, this skill exits 3 with a degraded payload
Graceful Empty audit history → exit 2 with hint to seed it; never crashes
CI-gate Smoke step 17z16 anchors the dispatcher entry + subcommand listing

Exit codes

  • 0 — similarity ≥ threshold (or threshold not crossed)
  • 1 — drift detected: similarity < threshold (alert fired)
  • 2 — config error (no history, audit-list failed)
  • 3 — upstream metaharness absent (degraded payload returned)

Example

$ npx ruflo metaharness drift-from-history --threshold 0.95
# drift-from-history

Baseline:        audit-2026-06-16T22-58-47-840Z
Current:         2026-06-16T23:05:02.231Z

Structural similarity: 1 (near-identical)
Distance:              0

✓ similarity ≥ 0.95 — OK

Implementation

scripts/drift-from-history.mjs

Preguntas frecuentes

¿Qué hace el umbral?

Define el nivel de similitud por debajo del cual la skill lanza una alerta. El ejemplo de la fuente usa 0.95.

¿Qué pasa si no hay una auditoría anterior?

La skill termina con una sugerencia de crear una primero, en lugar de fallar.

¿Cambia el arnés?

No. Solo ejecuta auditorías y compara sus resultados.

Detalles

Descripción original del autor

One-command drift detection: run a fresh metaharness audit, diff it against the latest stored audit by ADR-152 similarity, and alert when the distance crosses `--threshold`. Use when checking whether a harness has drifted since its last audit.

repo: ruvnet/ruflo

Popularidad

Estrellas en GitHub
81 mil
Posición en el ranking
#1646
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas