skill-autobench
Was er macht
Dieser Skill baut aus der tatsächlichen Nutzung eines KI-Skills ein Testset auf. Er durchsucht frühere Gespräche und markiert, wo Nutzer den Agenten korrigiert haben, weil diese Korrekturen echte Bedürfnisse zeigen.
Wann du ihn nutzt
- ✓Wenn du einen bestehenden KI-Skill gegen echte frühere Nutzungen testen willst.
- ✓Wenn ein Skill immer wieder auf Arten scheitert, die seine Beschreibung nicht erklärt.
- ✓Wenn du herausfinden willst, wo Nutzer die Antworten eines Skills korrigiert haben, und das in Tests umwandeln willst.
Link zum Skill
https://github.com/garrytan/gbrain/blob/master/skills/skill-autobench/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Durchsuche meine früheren Gespräche über den Besprechungs-Skill, finde die Stellen, an denen ich ihn korrigiert habe, und baue daraus ein Testset.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent durchsucht dein Gesprächsarchiv nach Nutzungen des Skills und sammelt wiederholbare Fälle. Jeder Fall wird als entweder aus der Spezifikation des Skills stammend oder aus dem Verlauf abgeleitet markiert, und das Set wird zur Prüfung bereitgestellt.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Warum echten Verlauf statt der Spezifikation nutzen?
Eine Spezifikation testet nur, was der Skill verspricht. Der echte Verlauf zeigt, was Leute wirklich gefragt haben und wo es schiefging.
Braucht er ein Gesprächsarchiv?
Ja. Das Archiv ist die wichtigste Quelle, es sollte daher zuerst importiert werden.
Läuft das Testset automatisch?
Es wird zur Prüfung und zum Ausführen bereitgestellt. Die Methode ist so gedacht, dass ein Mensch sie vor dem Einsatz prüft.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 31k
- Platz im Ranking
- #9323
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
gbrain
31kLässt deinen Agenten in einem gemeinsamen Firmenwissens-Gehirn nach Fakten zu Personen, Projekten und Entscheidungen suchen und dauerhafte Notizen darin speichern.
brain-ingest-gate
31kPrüft neue Inhalte gegen ein bestehendes Wissens-Gehirn, bevor sie hinzugefügt werden, um Dubletten zu vermeiden und benannte Entitäten vorab zu klären.
brain-link-discipline
31kSorgt dafür, dass dein Agent jede Gehirn-Seite, über die er berichtet, im selben Beitrag mit einem funktionierenden Link versieht, damit du sie sofort öffnen kannst.
brain-ops
31kGibt deinem Agenten die Grundroutine für ein Wissens-Gehirn: zuerst vorhandenen Kontext prüfen, ausdrückliche Notizen mit Quelle speichern und verwandte Seiten verlinken.
Ähnliche Skills
writing-skills
311kBringt deinem Agenten bei, neue Skills zu schreiben und jeden zuerst zu testen, und zu prüfen, ob der Skill das Verhalten des Agenten tatsächlich verändert.
writing-for-agents
310kErklärt, wie du klare Anweisungen für KI-Agenten schreibst, einschließlich Skills, AGENTS.md- und CLAUDE.md-Dateien, damit sich der Agent berechenbar verhält.
bengali-nlp
280kLässt deinen Agenten bengalischen Text verarbeiten. Er hilft, die Sprache zu verstehen, normalisiert Texte und berücksichtigt ihre Besonderheiten.