Skip to content
Skillpedia
Prompts & LLMs31k Β· #9323

skill-autobench

What it does

This skill builds a test set for an AI skill from how people actually used it. It looks through past conversations and marks where users corrected the agent, since those corrections show real needs.

When to use it

  • βœ“When you want to test an existing AI skill against real past uses.
  • βœ“When a skill keeps failing in ways its written description does not explain.
  • βœ“When you want to find where users corrected a skill's answers and turn that into tests.

Skill link

https://github.com/garrytan/gbrain/blob/master/skills/skill-autobench/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/skills/skill-autobench/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œLook through my past conversations about the meeting skill, find where I corrected it, and build a test set from those cases.”

5 new skills a week. 1 minute to read.

How it works

The agent searches your conversation archive for uses of the skill and collects replayable cases. Each case is labeled as either drawn from the skill's own spec or implied by history, and the set is staged for review.

Technical content (original SKILL.md)

Original text by the author, straight from 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:

  1. 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"
    
  2. Per-harness session transcripts, as available β€” use what the harness exposes; do not assume a layout. gbrain transcripts recent --full reads 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)

  1. Human reviews, edits, and approves the staged eval; the approved eval_contract is merged into the skill's frontmatter explicitly.
  2. Convert approved cases into skills/<name>/skillopt-benchmark.jsonl lines
FAQ

Why use real history instead of the spec?

A spec only tests what the skill promised. Real history shows what people actually asked and where it went wrong.

Does it need a conversation archive?

Yes. The archive is the main source, so it should be imported first.

Does the test set run automatically?

It stages the test set for review and running. The method is designed to be checked by a person before use.

Details

Original description by the author

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

Popularity

GitHub stars
31k
Ranking position
#9323
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills