Skills Agentes

Grounded Vault

Úsalo para mantener un almacén Markdown de conocimiento donde cada afirmación compilada se rastrea hasta una fuente inmutable y el drift se detecta con git diff sin gastar tokens.

Reemplaza a: Releer el código monitoreado cada sesión para verificar vigencia de una página

Estrellas
39.4k

en todo el repo

Actividad
60

0–100, la ruta de este skill

Actualizado
hace 5 días

último commit aquí

Commits
1

últimos 90 días

Contexto
1.4k tok

93 tok en reposo

Paquete
2 archivos

14 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add wshobson/agents --skill grounded-vault --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Impone una estructura de tres capas raw/wiki/archive en un repositorio Markdown
  • Exige que cada número, fecha o cita en las páginas wiki enlace a su fuente inmutable en raw/
  • Añade un bloque de cabecera con Raw, Fingerprint, Monitored y Status a cada página compilada
  • Detecta desactualización comparando el fingerprint git con git diff en lugar de releer el código
  • Archiva páginas obsoletas o refutadas en lugar de borrarlas, registrando el motivo en log.md

Úsalo cuando

  • Un agente compila notas, papers, transcripciones, logs o código en páginas wiki que sesiones futuras usarán
  • Una página cita números, fechas o citas textuales que deben poder verificarse contra su fuente
  • Las páginas describen código y releer todo el repo cada sesión para comprobar vigencia es demasiado costoso
  • El conocimiento debe corregirse sin perder historial, archivando versiones superadas en vez de borrarlas

No lo uses cuando

  • Para gestionar estado de sesión, colas de tareas o continuidad de conversación (usar context-management o conductor)

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • Compila estas notas en una página wiki con referencias a las fuentes
  • Revisa si esta página wiki está desactualizada respecto al código que describe
  • Archiva esta página obsoleta y registra el motivo en log.md
  • Configura el chequeo de grounding y drift antes de cada commit

SKILL.md

En inglés

Grounded Vault

A grounded vault is a three-layer Markdown store in which every compiled claim can be traced back to an immutable source and every page can be checked for staleness with one git diff. It needs a git repository and nothing else. The convention comes from the llm-wiki-loop project, which is a reference implementation rather than a dependency; this skill teaches the pattern so it works with plain files and whatever agent is in the session.

When to Use

  • An agent compiles notes, papers, transcripts, logs, or code into wiki pages that later sessions rely on.
  • A page cites numbers, dates, or quotes, and a reader must be able to verify each one against its source.
  • Pages describe code, and rereading the codebase every session to check whether they still hold is too expensive.
  • Knowledge must be corrected without losing history: superseded pages are archived, never deleted.

Session state, task queues, and conversation continuity are a different problem; use the context-management or conductor plugins for those. This skill is about provenance and drift on a durable knowledge store.

The three layers

Layer Contents Who writes it Rule
raw/ source material: notes, papers, transcripts, logs, exported data people and ingestion only immutable once added; agents never edit a raw file
wiki/ compiled pages built from raw/ and from code agents and people every number, date, and quote links to its source
archive/ pages that drifted or were superseded agents, during garbage collection moved, never deleted; the header says why

Two files sit at the vault root. index.md is the map of every current page. log.md is an append-only record of what changed and why. Both change in the same commit as the page they describe.

Page header contract

Every wiki/ page opens with a header block:

# Authentication architecture

> Raw: [raw/notes/auth-v1.md](../raw/notes/auth-v1.md), [raw/adr/0007-jwt.md](../raw/adr/0007-jwt.md)
> Fingerprint: git:5b237fa
> Monitored: src/auth/jwt.ts, src/auth/session.ts, package.json
> Status: Current
  • Raw: lists every source the page was compiled from. Inline claims link to their specific source as well: Tokens expire after 15 minutes ([raw/adr/0007-jwt.md](../raw/adr/0007-jwt.md)).
  • Fingerprint: is the short commit hash the page was compiled against.
  • Monitored: lists the code paths the page describes. A change to any of them after the fingerprint means the page may be stale.
  • Status: is Current, Outdated (monitored code moved on), or Disputed (a newer source contradicts the page).

Grounding rule

A compiled page states only what a source supports, and every number, date, or quotation appears verbatim in the linked source. A synthesis says it is one and links its inputs. A gap in the sources is written into the page as a gap rather than filled by guessing.

Check it mechanically: for each linked claim, search the linked raw file for the exact figure or quoted phrase. A miss is a grounding error and blocks the commit. The script in references/details.md does this for a whole vault.

Drift detection

Compare the fingerprint with the current tree instead of rereading monitored code:

git diff --stat 5b237fa..HEAD -- src/auth/jwt.ts src/auth/session.ts package.json

Empty output means the page still describes the code it was compiled against. Any output means recompile: reread only the changed files, update the page, and stamp the new fingerprint. The check runs in milliseconds and spends no model tokens.

Workflow

  1. Ingest. Put new material in raw/ under a dated or sourced filename. Never rewrite an existing raw file; add a new one beside it.

  2. Compile. Write or update the wiki/ page with the header block, a source link on every claim, and the fingerprint of the commit the code was read at.

  3. Check. Run the grounding check and the drift check before committing. Fix misses at the source; do not weaken a claim to make the check pass.

  4. Garbage collect. When drift or a contradicting source appears and the page is not recompiled now, change its status, move it to archive/, and record the reason:

    > Status: Outdated
    > Reason: src/auth/session.ts changed after git:5b237fa; see log.md 2026-09-01
    
  5. Update the map. Every add, move, or archive updates index.md and appends one line to log.md in the same commit.

Commit gate

Run both checks from a pre-commit hook or a CI step so a page cannot land with an unverifiable number or a stale fingerprint:

python3 scripts/check_vault.py --strict   # exits 1 on any grounding miss or drifted page

Going deeper

references/details.md covers: the vault check script, batching the drift check across pages, templates for index.md and log.md, renamed or deleted monitored files, sources that are binary or live at external URLs, and the reference implementation.

Reproducido de wshobson/agents bajo licencia MIT. Leer esta página en markdown.

Archivos

2 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Solo requiere un repositorio git; no depende de ningún proyecto externo aunque toma la convención de llm-wiki-loop.

Necesita en el PATH:gitpython3

Detalles

Creador
wshobson
Categoría
Documentos
Licencia
MIT
Recursos incluidos
referencias
Repositorio
wshobson/agents
Código fuente
Ver SKILL.md

Etiquetas

Más de wshobson/agents

Este repo incluye 183 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack agents entero y su comando de instalación

Instala y opera Hermes Tweet, un plugin de Hermes Agent para investigar X/Twitter, leer timelines, analizar tweets y ejecutar operaciones privadas o de cambio de estado con aprobación previa.

Costo de contexto al activarse
1.4k tok
Tamaño del paquete
3 archivos
Última actualización
hace 11 días
redes sociales

Úsalo cuando un proyecto guarda su estado en Superself: lee `self context` al iniciar sesión, vincula el trabajo a una work unit, reporta con evidencia y registra decisiones confirmadas.

Costo de contexto al activarse
1.3k tok
Tamaño del paquete
1 archivo
Última actualización
hace 5 días
productividad

Úsalo al diseñar o revisar un esquema específico de PostgreSQL: buenas prácticas, tipos de datos, indexación, restricciones, patrones de rendimiento y funciones avanzadas.

Costo de contexto al activarse
2k tok
Tamaño del paquete
2 archivos
Última actualización
hace 5 días
bases de datos

Úsalo cuando pidan optimizar un prompt, mejorar su rendimiento, diseñar una plantilla, aplicar chain-of-thought, few-shot prompting o técnicas avanzadas de prompt engineering para producción.

Costo de contexto al activarse
1.3k tok
Tamaño del paquete
10 archivos
Última actualización
hace 22 días
herramientas desarrollo

Audita y reescribe prosa para que deje de sonar generada por máquina. Incluye modo solo-detección, modo reescritura y modo edición en el lugar, con perfiles opcionales de voz y contexto.”

Costo de contexto al activarse
1.9k tok
Tamaño del paquete
4 archivos
Última actualización
hace 19 días
redaccion contenido

Patrones de diseño en Python: KISS, separación de responsabilidades, responsabilidad única y composición sobre herencia, para diseñar, refactorizar y revisar código.

Costo de contexto al activarse
1.2k tok
Tamaño del paquete
2 archivos
Última actualización
hace 22 días
herramientas desarrollo

Skills relacionados

Crea contratos de empleo, cartas de oferta y documentos de políticas de RRHH siguiendo buenas prácticas legales, para redactar acuerdos y estandarizar documentación laboral.

Costo de contexto al activarse
599 tok
Tamaño del paquete
2 archivos
Última actualización
hace 3 meses
documentos

Úsalo al preparar la narrativa, las fuentes y el contexto de diseño para un nuevo deck PPTX editable.

Costo de contexto al activarse
415 tok
Tamaño del paquete
2 archivos
Última actualización
el mes pasado
documentos

Escribe y mantiene Architecture Decision Records (ADR) siguiendo buenas prácticas para documentar decisiones técnicas significativas y sus procesos de revisión.

Costo de contexto al activarse
3.2k tok
Tamaño del paquete
1 archivo
Última actualización
hace 6 meses
documentos