skill-autobench
Fungsinya
Skill ini membangun kumpulan tes untuk skill AI dari cara orang benar-benar memakainya. Skill memeriksa percakapan sebelumnya dan menandai saat pengguna mengoreksi agent, karena koreksi itu menunjukkan kebutuhan yang sebenarnya.
Kapan dipakai
- βSaat Anda ingin menguji skill AI yang sudah ada terhadap penggunaan nyata sebelumnya.
- βKetika sebuah skill terus gagal dengan cara yang tidak dijelaskan oleh deskripsi tertulisnya.
- βSaat Anda ingin menemukan tempat pengguna mengoreksi jawaban skill dan mengubahnya menjadi tes.
Link skill
https://github.com/garrytan/gbrain/blob/master/skills/skill-autobench/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTelusuri percakapan saya sebelumnya tentang skill rapat, temukan tempat saya mengoreksinya, dan bangun kumpulan tes dari kasus-kasus itu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencari arsip percakapan Anda untuk penggunaan skill tersebut dan mengumpulkan kasus yang bisa diputar ulang. Setiap kasus diberi label apakah berasal dari spesifikasi skill itu sendiri atau tersirat dari riwayat, dan kumpulan itu disiapkan untuk ditinjau.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Mengapa memakai riwayat nyata alih-alih spesifikasi?
Spesifikasi hanya menguji apa yang dijanjikan skill. Riwayat nyata menunjukkan apa yang sebenarnya ditanyakan orang dan di mana skill itu keliru.
Apakah perlu arsip percakapan?
Ya. Arsip adalah sumber utama, sehingga harus diimpor terlebih dahulu.
Apakah kumpulan tes berjalan otomatis?
Kumpulan tes disiapkan untuk ditinjau dan dijalankan. Metode ini dirancang agar diperiksa oleh orang sebelum dipakai.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9323
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-ingest-gate
31kMemeriksa konten baru terhadap basis pengetahuan yang sudah ada sebelum ditambahkan, untuk menghindari duplikat dan menyelesaikan entitas bernama lebih dulu.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
Skill serupa
writing-skills
311kMengajari agent Anda menulis skill baru dan menguji setiap skill lebih dulu, memastikan skill itu benar-benar mengubah perilaku agent.
writing-for-agents
310kMenjelaskan cara menulis instruksi yang jelas untuk agent AI, termasuk file skill, AGENTS.md, dan CLAUDE.md, agar perilaku agent dapat diprediksi.
bengali-nlp
280kMembuat agent Anda memproses teks Bahasa Bengali. Membantu memahami dan mengolah bahasa tersebut, termasuk normalisasi teks dan karakteristik uniknya.