skill-autobench
Ce qu’il fait
Cette skill construit un jeu de tests pour une skill IA à partir de la façon dont les gens l'ont réellement utilisée. Elle parcourt les conversations passées et repère les moments où l'utilisateur a corrigé l'agent, car ces corrections révèlent les vrais besoins.
Quand l’utiliser
- ✓Quand vous voulez tester une skill IA existante à partir d'usages réels passés.
- ✓Quand une skill échoue régulièrement d'une façon que sa description écrite n'explique pas.
- ✓Quand vous voulez repérer les corrections apportées aux réponses d'une skill et en faire des tests.
Lien du skill
https://github.com/garrytan/gbrain/blob/master/skills/skill-autobench/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Parcours mes anciennes conversations sur la skill de réunion, repère où je l'ai corrigée, et construis un jeu de tests à partir de ces cas.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent cherche dans votre archive de conversations les usages de la skill et rassemble des cas rejouables. Chaque cas est étiqueté comme issu de la spécification de la skill ou implicite dans l'historique, et l'ensemble est préparé pour relecture.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
skill-autobench — write the eval from lived usage
Convention: see conventions/brain-first.md — mining starts in the brain. Search the conversation archive before touching raw transcript files, and never declare "no history" without having queried the brain first.
Convention: see conventions/model-routing.md — mining and synthesis run on the cheap tier by default. The full multi-model judging pass is an explicit opt-in (see Contract).
The self-improving loop has three legs: an eval, a variant generator
(SkillOpt), and a replay + judge harness (gbrain eval cross-modal). The
generator and the judge ship with gbrain. The persistently missing leg is the
eval author — someone has to WRITE the eval, and a spec-derived benchmark
only tests what the skill promised, not what users actually asked for or what
actually went wrong. This skill writes the eval from reality instead of
imagination.
Pipeline
1. MINE — extract real invocation windows
Substrates, in priority order:
Brain conversation archive — pages under
conversations/, populated by the conversation-archive skill (hard dependency for this substrate: if it hasn't ingested your history yet, run it first). Search for the target skill's name, trigger phrases, and output shapes:gbrain search "<skill-name>" gbrain query "when did I use <skill-name> and what did I ask for"Per-harness session transcripts, as available — use what the harness exposes; do not assume a layout.
gbrain transcripts recent --fullreads the configured local transcript corpus (local-only by design). Claude Code keeps per-project session JSONL under~/.claude/projects/; other harnesses have their own session stores. Absent stores are simply skipped.
From each hit, extract an invocation window: the user ask before the
invocation, the invocation turn itself, and the 2 turns after — because that
is where corrections live. A user correction after an invocation is the
gold signal: it is a real, observed failure mode, and it becomes a
hard_fail plus a replayable case.
FAIL-CLOSED: if no substrate yields a single real invocation of the
target skill, emit an honest no-history report (substrates checked, queries
run, windows scanned, zero matches) and stop. Do NOT invent "typical"
invocations. For a skill with no history, the right tool is
gbrain skillopt <name> --bootstrap-from-skill (spec-derived, and honest
about it) — see Dedup.
2. SYNTH — turn windows into a proposed eval
From the mined windows plus the current SKILL.md, produce:
- A proposed eval_contract: goal, dimensions, hard_fails. Dimensions come from observed asks; hard_fails encode observed corrections.
- 4-8 replayable cases, each shaped
{input, expected_behavior, failure_mode_to_catch}— realistic input, a checkable expected behavior, and the named failure mode the case exists to catch. - Spec-vs-usage gaps: "the spec says X, users consistently ask Y."
HONESTY LABELS are mandatory. Every dimension and every case is labeled:
HISTORY-IMPLIED— a real mined window backs it; cite which one.SPEC-DERIVED— inferred from SKILL.md only; no usage evidence.
Never conflate the two. If history is thin or off-target, say so prominently at the top of the staged file ("GROUNDING WARNING: only N windows found, none exercised the core path") instead of padding with fabricated evidence.
Privacy scrub before staging: staged evals live in the skill repo and are
distributable. Mined windows contain real names, companies, and deals —
rewrite every case onto placeholder slugs (alice-example, acme-example)
before writing the file. A history-grounded case keeps its shape and failure
mode, never its real entities.
3. STAGE — human gate, always
Write skills/<name>/eval/autobench-<date>.md with frontmatter
status: PENDING-HUMAN-APPROVAL.
This skill NEVER rewrites SKILL.md — not the eval_contract, not the body, not the triggers. Merging the staged eval is the human's decision. (This is a workflow contract the agent must honor, not a mechanically-enforced gate.)
The loop (after approval)
- Human reviews, edits, and approves the staged eval; the approved eval_contract is merged into the skill's frontmatter explicitly.
- Convert approved cases into
skills/<name>/skillopt-benchmark.jsonllines
Questions fréquentes
Pourquoi utiliser l'historique réel plutôt que la spécification ?
Une spécification ne teste que ce que la skill promet. L'historique réel montre ce que les gens ont demandé et où cela a déraillé.
Faut-il une archive de conversations ?
Oui. L'archive est la source principale, elle doit donc être importée en premier.
Le jeu de tests s'exécute-t-il automatiquement ?
Il est préparé pour relecture et exécution. La méthode est conçue pour être vérifiée par une personne avant utilisation.
Détails
Description originale de l’auteur
Author an eval for an existing skill from its REAL usage history, not its spec. Mine invocations from the brain's conversation archive (conversations/) and per-harness session transcripts — a user correction after an invocation is the gold signal — then synthesize an eval_contract plus 4-8 replayable cases with honesty labels (SPEC-DERIVED vs HISTORY-IMPLIED) and stage the result at skills/<name>/eval/autobench-<date>.md as PENDING-HUMAN-APPROVAL. Never rewrites SKILL.md. Ships two guard companions: panel integrity (multi-model judging must prove each provider actually responded) and the fail-
repo: garrytan/gbrain
Popularité
- Étoiles GitHub
- 31k
- Position au classement
- #9323
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
gbrain
31kPermet à votre agent de chercher dans un cerveau de connaissances partagé de l'entreprise des faits sur les personnes, les projets et les décisions, et d'y enregistrer des notes durables.
brain-ingest-gate
31kVérifie le nouveau contenu par rapport à un cerveau de connaissances existant avant de l'ajouter, pour éviter les doublons et résoudre d'abord les entités nommées.
brain-link-discipline
31kVeille à ce que votre agent inclue dans le même message un lien fonctionnel vers chaque page du cerveau qu'il mentionne, pour que vous puissiez l'ouvrir tout de suite.
brain-ops
31kDonne à votre agent la routine de base d'un cerveau de connaissances : consulter d'abord le contexte existant, enregistrer les notes explicites avec leur source et relier les pages liées.
Skills similaires
writing-skills
311kApprend à votre agent à rédiger de nouvelles skills et à tester chacune d'elles en premier, en vérifiant que la skill change réellement son comportement.
writing-for-agents
310kExplique comment rédiger des instructions claires pour les agents IA, y compris les skills et les fichiers AGENTS.md et CLAUDE.md, afin que l'agent se comporte de façon prévisible.
bengali-nlp
280kPermet à votre agent de traiter des textes en bengali. Il aide à comprendre cette langue, à normaliser les textes et à gérer ses particularités.