Skills Agentes

Skillpack Check

Ejecuta `gbrain skillpack-check` para generar un reporte JSON legible por agentes sobre la salud del install de gbrain, combinando `gbrain doctor` y `apply-migrations --list`.

Reemplaza a: Ejecutar `gbrain doctor` y `gbrain apply-migrations --list` por separado y correlacionar manualmente

Solicitashell
Estrellas
28.9k

en todo el repo

Actividad
59

0–100, la ruta de este skill

Actualizado
hace 10 días

último commit aquí

Commits
1

últimos 90 días

Contexto
1.1k tok

116 tok en reposo

Paquete
1 archivo

4 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add garrytan/gbrain --skill skillpack-check --agent claude-code

Se instala solo en este repositorio.

Este skill reads environment config.

Qué hace

  • Ejecuta `gbrain skillpack-check` para producir un reporte JSON de salud del install de gbrain
  • Combina `gbrain doctor` y `gbrain apply-migrations --list` en un único informe
  • Devuelve `healthy`, `summary`, `actions[]` y códigos de salida (0, 1, 2) para automatizar la respuesta
  • Indica qué comandos de remediación ejecutar cuando `healthy` es false

Úsalo cuando

  • El usuario pregunta '¿gbrain está sano?'
  • Se dispara un cron de chequeo matutino (morning-briefing)
  • Algo parece fallar (jobs no corren, el brain no se actualiza, autopilot en silencio)
  • En una pipeline de CI, usando el código de salida como gate

No lo uses cuando

  • No lo ejecutes en cada turno de chat; con una vez por hora o bajo pedido del usuario alcanza

Qué lo activa

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

  • ¿gbrain está sano?
  • Chequea el estado del skillpack de gbrain
  • Corre el health check del brain
  • Investiga por qué el autopilot está en silencio

SKILL.md

En inglés

Skillpack Check

Contract

Running gbrain skillpack-check returns a JSON report with:

  • healthy (bool): true if no action needed.
  • summary (string): one-line summary safe to quote in a briefing.
  • actions (string[]): every remediation command. If non-empty, run them.
  • doctor: full gbrain doctor --fast --json output (filesystem checks).
  • migrations: applied/pending/partial counts from apply-migrations --list.

Exit code:

  • 0 — healthy, nothing to do.
  • 1 — action needed. Read actions[] and execute.
  • 2 — could not determine (binary crash or missing subcommand). Investigate.

When to run

  • Daily cron (e.g. your OpenClaw's morning-briefing): gbrain skillpack-check --quiet. Exit code alone tells you if anything is wrong; surface a one-liner in the briefing only when exit != 0. No JSON noise in happy-path briefings.
  • On demand: gbrain skillpack-check for the full JSON when debugging.
  • In a CI pipeline: same pattern — exit code gates, JSON is the evidence.

What to do with the output

Happy path (healthy: true)

Surface the summary in the agent's output only if asked. Nothing else.

Action needed (healthy: false)

The actions[] array contains the commands to run, in order. Execute them:

for cmd in $(echo "$REPORT" | jq -r '.actions[]'); do
  eval "$cmd"
done

Common actions[] entries and what they mean:

  • gbrain apply-migrations --yes — A migration is pending or half-finished. Run this (it's idempotent). If it exits status: "partial", the host has non-builtin cron handlers that need plugin registration — follow skills/migrations/v0.11.0.md.
  • gbrain embed --stale — Embeddings are stale.
  • gbrain check-backlinks fix — Dead links or missing back-links.
  • Free-text action (no Run: prefix in the source message) — agent judgment needed. Quote it in the report for the user.

Determine failure (exit 2)

Treat as urgent. Probably means the gbrain binary is missing from $PATH or a required subcommand crashed. Check:

  1. which gbrain returns a path
  2. gbrain --version exits 0
  3. ~/.gbrain/ is accessible

Output format

{
  "version": "0.11.1",
  "ts": "2026-04-18T12:34:56.789Z",
  "healthy": false,
  "summary": "gbrain skillpack needs attention: 1 action(s) — gbrain apply-migrations --yes",
  "actions": ["gbrain apply-migrations --yes"],
  "doctor": {
    "exit_code": 1,
    "checks": [
      { "name": "minions_migration", "status": "fail", "message": "MINIONS HALF-INSTALLED (partial migration: 0.11.0). Run: gbrain apply-migrations --yes" }
    ]
  },
  "migrations": {
    "applied_count": 0,
    "pending_count": 0,
    "partial_count": 1,
    "stdout": "..."
  }
}

Anti-Patterns

  • ❌ Running without --quiet in a cron that emails its output — you'll get the full JSON blob in every daily email. Use --quiet in crons.
  • ❌ Ignoring exit code 2. A crashed doctor is worse than a failing check because you don't even know what's wrong.
  • ❌ Running on every chat turn. Once per hour (or on user request) is plenty.
  • ❌ Treating warnings as failures. Only fail status needs action; warn is informational.

Output Format

The skill itself doesn't write files; it reports the CLI output verbatim to the user (or to the agent's briefing pipeline). One-line summary first, then the action list, then (only if relevant) the full JSON for debugging.

Related

  • gbrain doctor — the underlying filesystem + DB check. skillpack-check composes this.
  • gbrain apply-migrations --list — the migration status view.
  • skills/migrations/v0.11.0.md — the host-agent instruction manual for resolving pending-host-work.jsonl items.
  • docs/guides/minions-fix.md — troubleshooting a half-migrated install.

Reproducido de garrytan/gbrain bajo licencia MIT. Leer esta página en markdown.

Archivos

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

Antes de instalar

Requiere el binario `gbrain` instalado y accesible en $PATH, con ~/.gbrain/ configurado.

Necesita en el PATH:jq

Variables de entorno:REPORT

Detalles

Creador
garrytan
Licencia
MIT
Recursos incluidos
Solo SKILL.md
Repositorio
garrytan/gbrain
Código fuente
Ver SKILL.md

Etiquetas

Más de garrytan/gbrain

Este repo incluye 75 skills. Si instalas uno, normalmente ya tienes los demás.

Setup

28.9k

Configura GBrain con auto-aprovisionamiento de Supabase o PGLite, inyección en AGENTS.md y primera importación.

Costo de contexto al activarse
7.4k tok
Tamaño del paquete
1 archivo
Última actualización
hace 4 días
bases de datos

Chequeos de salud del brain: aplicación de back-links, auditoría de citas, validación de filing, detección de info obsoleta, páginas huérfanas y benchmarks.

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

Migra un brain de gbrain-base a la taxonomía de 14 tipos canónicos de gbrain-base-v2 usando gbrain onboard --check y el handler Minion unify-types.

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

Cuándo y qué recuperar: abre la página del brain de una entidad relevante antes de responder desde memoria.

Costo de contexto al activarse
740 tok
Tamaño del paquete
1 archivo
Última actualización
hace 1 hora
productividad

Operaciones del brain: búsqueda primero, ciclo leer-enriquecer-escribir, atribución de fuentes, enriquecimiento ambiental y back-linking. Leer antes de cualquier interacción con el brain.

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

Importa exports de ChatGPT, Claude y Perplexity y transcripciones de sesiones como páginas fechadas en conversations/, valida y extrae hechos, y mantiene el archivo sin huecos con detección y backfill.

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

Skills relacionados

Antes de arreglar una alerta de lentitud, stale o timeout, mide el paso tú mismo con un cronómetro en vez de un cambio de código: triage de operaciones basado en medición previa.

Costo de contexto al activarse
2.4k tok
Tamaño del paquete
2 archivos
Última actualización
hace 9 días
devops infraestructura

Skill unificado de Minions para jobs deterministas de shell y orquestación de subagentes LLM: cola durable, observable y controlable, más la doctrina de ejecución durable para operaciones largas.

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

Tests de salud + auto-fix para instalaciones de gbrain (y servicios OpenClaw si existen); úsalo tras reinicios o cuando algo parezca roto, y es extensible con scripts propios.

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