[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N0TFYHZRJX56DP65SZ9KHP":3,"skill-same:01M6N0TFYHZRJX56DP65SZ9KHP":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":80},"01M6N0TFYHZRJX56DP65SZ9KHP","skill-autobench",null,"Author an eval for an existing skill from its REAL usage history, not its\nspec. Mine invocations from the brain's conversation archive\n(conversations\u002F) and per-harness session transcripts — a user correction\nafter an invocation is the gold signal — then synthesize an eval_contract\nplus 4-8 replayable cases with honesty labels (SPEC-DERIVED vs\nHISTORY-IMPLIED) and stage the result at skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md\nas PENDING-HUMAN-APPROVAL. Never rewrites SKILL.md. Ships two guard\ncompanions: panel integrity (multi-model judging must prove each provider\nactually responded) and the fail-improve taxonomy (logged LLM-fallback\ncases convert to deterministic code over time).","garrytan\u002Fgbrain","garrytan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19957?v=4","01M6DJCCDDG53MTYYRTXAXFG17","Garry Tan","01M6MZQZCEN3RRMD33E1X9ZZR9",32977,"MIT","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fskill-autobench\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"skill autobench","autobench","time","conversation archive","result","labels","at","conversations","false","human","synthesize","code","conversation","only","never","eval","model","loop","improve","how","2026-11-10 10:12:30",false,"---\nname: skill-autobench\nversion: 1.0.0\ndescription: |\n  Author an eval for an existing skill from its REAL usage history, not its\n  spec. Mine invocations from the brain's conversation archive\n  (conversations\u002F) and per-harness session transcripts — a user correction\n  after an invocation is the gold signal — then synthesize an eval_contract\n  plus 4-8 replayable cases with honesty labels (SPEC-DERIVED vs\n  HISTORY-IMPLIED) and stage the result at skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md\n  as PENDING-HUMAN-APPROVAL. Never rewrites SKILL.md. Ships two guard\n  companions: panel integrity (multi-model judging must prove each provider\n  actually responded) and the fail-improve taxonomy (logged LLM-fallback\n  cases convert to deterministic code over time).\ntriggers:\n  - \"skill autobench\"\n  - \"autobench\"\n  - \"write the eval from usage history\"\n  - \"synthesize an eval for this skill\"\n  - \"mine how this skill is actually used\"\n  - \"build a benchmark from my corrections\"\n  - \"verify the eval panel\"\n  - \"did all providers return\"\nrequires:\n  - dir:conversations\u002F\nmutating: true\nwrites_pages: false\nwrites_to:\n  - skills\u002F\u003Cname>\u002Feval\u002F\nupstream: skill-autobench@fc834ee + panel-integrity@fc834ee + fail-improve-loop@fc834ee (taxonomy only)\n---\n\n# skill-autobench — write the eval from lived usage\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md) —\n> mining starts in the brain. Search the conversation archive before touching\n> raw transcript files, and never declare \"no history\" without having queried\n> the brain first.\n>\n> **Convention:** see [conventions\u002Fmodel-routing.md](..\u002Fconventions\u002Fmodel-routing.md) —\n> mining and synthesis run on the cheap tier by default. The full multi-model\n> judging pass is an explicit opt-in (see Contract).\n\nThe self-improving loop has three legs: an **eval**, a **variant generator**\n(SkillOpt), and a **replay + judge harness** (`gbrain eval cross-modal`). The\ngenerator and the judge ship with gbrain. The persistently missing leg is the\n**eval author** — someone has to WRITE the eval, and a spec-derived benchmark\nonly tests what the skill promised, not what users actually asked for or what\nactually went wrong. This skill writes the eval from reality instead of\nimagination.\n\n## Pipeline\n\n### 1. MINE — extract real invocation windows\n\nSubstrates, in priority order:\n\n1. **Brain conversation archive** — pages under `conversations\u002F`, populated by\n   the conversation-archive skill (hard dependency for this substrate: if it\n   hasn't ingested your history yet, run it first). Search for the target\n   skill's name, trigger phrases, and output shapes:\n\n   ```bash\n   gbrain search \"\u003Cskill-name>\"\n   gbrain query \"when did I use \u003Cskill-name> and what did I ask for\"\n   ```\n\n2. **Per-harness session transcripts, as available** — use what the harness\n   exposes; do not assume a layout. `gbrain transcripts recent --full` reads\n   the configured local transcript corpus (local-only by design). Claude Code\n   keeps per-project session JSONL under `~\u002F.claude\u002Fprojects\u002F`; other\n   harnesses have their own session stores. Absent stores are simply skipped.\n\nFrom each hit, extract an **invocation window**: the user ask before the\ninvocation, the invocation turn itself, and the 2 turns after — because that\nis where corrections live. **A user correction after an invocation is the\ngold signal**: it is a real, observed failure mode, and it becomes a\n`hard_fail` plus a replayable case.\n\n**FAIL-CLOSED:** if no substrate yields a single real invocation of the\ntarget skill, emit an honest no-history report (substrates checked, queries\nrun, windows scanned, zero matches) and stop. Do NOT invent \"typical\"\ninvocations. For a skill with no history, the right tool is\n`gbrain skillopt \u003Cname> --bootstrap-from-skill` (spec-derived, and honest\nabout it) — see Dedup.\n\n### 2. SYNTH — turn windows into a proposed eval\n\nFrom the mined windows plus the current SKILL.md, produce:\n\n- A proposed **eval_contract**: goal, dimensions, hard_fails. Dimensions come\n  from observed asks; hard_fails encode observed corrections.\n- **4-8 replayable cases**, each shaped\n  `{input, expected_behavior, failure_mode_to_catch}` — realistic input, a\n  checkable expected behavior, and the named failure mode the case exists to\n  catch.\n- **Spec-vs-usage gaps**: \"the spec says X, users consistently ask Y.\"\n\n**HONESTY LABELS are mandatory.** Every dimension and every case is labeled:\n\n- `HISTORY-IMPLIED` — a real mined window backs it; cite which one.\n- `SPEC-DERIVED` — inferred from SKILL.md only; no usage evidence.\n\nNever conflate the two. If history is thin or off-target, say so prominently\nat the top of the staged file (\"GROUNDING WARNING: only N windows found, none\nexercised the core path\") instead of padding with fabricated evidence.\n\n**Privacy scrub before staging:** staged evals live in the skill repo and are\ndistributable. Mined windows contain real names, companies, and deals —\nrewrite every case onto placeholder slugs (`alice-example`, `acme-example`)\nbefore writing the file. A history-grounded case keeps its shape and failure\nmode, never its real entities.\n\n### 3. STAGE — human gate, always\n\nWrite `skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md` with frontmatter\n`status: PENDING-HUMAN-APPROVAL`.\n\n**This skill NEVER rewrites SKILL.md** — not the eval_contract, not the body,\nnot the triggers. Merging the staged eval is the human's decision. (This is a\nworkflow contract the agent must honor, not a mechanically-enforced gate.)\n\n## The loop (after approval)\n\n1. Human reviews, edits, and approves the staged eval; the approved\n   eval_contract is merged into the skill's frontmatter explicitly.\n2. Convert approved cases into `skills\u002F\u003Cname>\u002Fskillopt-benchmark.jsonl` lines\n   and run `gbrain skillopt \u003Cname>` — this is the SkillOpt surface extension:\n   a history-grounded benchmark replacing the spec-derived bootstrap.\n3. Judge outputs through the native gate:\n\n   ```bash\n   gbrain eval cross-modal --task \"\u003Cwhat the output was meant to achieve>\" --output \u003Cpath>\n   ```\n\n4. Re-run autobench after more usage accumulates; diff against the prior\n   staged baseline.\n\n## Panel integrity — trust no aggregate\n\nMulti-model judging is only as good as the panel being real. The silent\nfailure class: a model-id normalizer strips provider prefixes and every\n\"different model\" call lands on one host, so a \"3-frontier consensus\" is one\nmodel's opinion in a trench coat. Before trusting any multi-model verdict,\nassert over the result object:\n\n1. **Each named model returned a non-empty response.** An empty or failed\n   slot is the first tell of a collapse.\n2. **Responses came from DISTINCT provider endpoints.** If three \"different\n   models\" all report the same provider, the panel collapsed to one host.\n3. **No two \"different models\" returned byte-identical output.** If two\n   differently-named models return the same bytes, they are the same model.\n   This catches a collapse even when provider metadata is missing or faked.\n\n`gbrain eval cross-modal` already exits 2 (INCONCLUSIVE) when fewer than 2\u002F3\nmodels return parseable scores; the byte-identical duplicate check and the\ndistinct-endpoint check are the independent backstops this skill layers on\ntop. Run them over the receipt JSON (written to the receipt dir) before\ntreating a PASS\u002FFAIL as authoritative. The integrity check is pure assertion\nlogic over an existing result — it never calls a model itself: no network,\nno cost.\n\n## Fail-improve taxonomy — what mined failures become\n\nClassify each mined correction\u002Ffailure case by its cheapest durable fix:\n\n| Class | Signal in history | Durable fix |\n|---|---|---|\n| DETERMINISTIC-CODIFIABLE | An LLM fallback repeatedly handles the same input shape (regex, parsing, slugs, dates) | Convert to deterministic code + a permanent test case. The LLM is not the solution; it is the training-data generator for the code that replaces it. |\n| PROMPT-FIXABLE | The correction targets tone, format, or an omission the SKILL.md could specify | An eval case + a `gbrain skillopt` run |\n| SPEC-GAP | Users consistently ask for something the spec never promised | A spec-vs-usage gap observation for the human |\n| ROUTING-MISS | The skill fired on the wrong ask, or failed to fire | A `routing-eval.jsonl` case, not a benchmark case |\n\nDirection of travel: every fixed failure becomes a permanent test, the\ndeterministic share rises, and the LLM-fallback share falls. Log and improve;\nnever silently drop a mined failure.\n\n## Contract\n\n- **Input:** a skill name that exists under `skills\u002F`.\n- **Substrates:** `conversations\u002F` archive pages (brain-first), then\n  per-harness session transcripts as available (`gbrain transcripts recent`\n  is local-only by design). No usable substrate → honest no-history report,\n  never fabricated evidence.\n- **Output:** one staged file at `skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md`,\n  `status: PENDING-HUMAN-APPROVAL` — or the no-history report. Never an edit\n  to SKILL.md, triggers, or any routing surface.\n- **Cost posture:** cheap-model default for mining and synthesis. The full\n  multi-model judging pass (3 provider slots per cycle) is an explicit\n  opt-in, and judging goes through native `gbrain eval cross-modal` — no\n  bespoke judging harness.\n- **Honesty:** every dimension and case carries a SPEC-DERIVED or\n  HISTORY-IMPLIED label; thin history is flagged, not papered over.\n- **Privacy:** mined cases are rewritten onto placeholder entities before\n  staging.\n\n## Output Format\n\n```markdown\n---\nskill: \u003Cname>\nstatus: PENDING-HUMAN-APPROVAL\ngenerated: \u003Cdate>\nsubstrate: { conversation_pages: N, transcript_files: M, windows: K, corrections: C }\n---\n\n# Autobench: \u003Cname> — \u003Cdate>\n\n## Grounding\n\u003Cone paragraph: how much real history backs this eval; GROUNDING WARNING if thin>\n\n## Proposed eval_contract\ngoal \u002F dimensions (each labeled HISTORY-IMPLIED|SPEC-DERIVED) \u002F hard_fails\n\n## Cases (4-8)\n### case-01 [HISTORY-IMPLIED — window ref]\ninput: ...\nexpected_behavior: ...\nfailure_mode_to_catch: ...\n\n## Spec-vs-usage gaps\n- spec says X; users ask Y (windows: ...)\n\n## Fail-improve classification\n- case-03 → DETERMINISTIC-CODIFIABLE (same date-format fallback, 4 windows)\n```\n\n## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- No substrate yields a real invocation of the skill: FAIL-CLOSED. Report it and write no eval; never synthesize cases from imagination.\n- `gbrain eval cross-modal` or the judge run lacks a key or hits `no_pricing`: say the eval was not judged; leave the draft as PENDING-HUMAN-APPROVAL.\n\n## Anti-Patterns\n\n- ❌ Auto-merging a synthesized eval into SKILL.md. The human gate is the\n  contract.\n- ❌ Presenting SPEC-DERIVED dimensions as history-grounded — fabricating\n  usage evidence is the cardinal sin.\n- ❌ Mining nothing and still emitting a confident eval. Fail loudly or label\n  honestly.\n- ❌ Trusting \"3 models scored it 8\u002F10\" without checking that three providers\n  actually returned distinct, non-identical responses.\n- ❌ Calling a model inside the panel-integrity check — it is pure assertion\n  logic over a result object.\n- ❌ Building a bespoke judging harness when `gbrain eval cross-modal` is the\n  native gate.\n- ❌ Staging mined cases with real people\u002Fcompanies in them. Placeholders\n  only.\n\n## Dedup (sharp boundaries)\n\n- **skill-optimizer (SkillOpt, host-side)** — optimizes a skill's body\n  against an EXISTING benchmark; its `--bootstrap-from-skill` derives tasks\n  from the spec. THIS skill authors the benchmark from lived usage and feeds\n  it into `skills\u002F\u003Cname>\u002Fskillopt-benchmark.jsonl` — it extends SkillOpt's\n  surface, never duplicates it. Read the skill-optimizer SKILL.md (on the\n  host, where its engine lives) before the handoff. No history at all → use\n  `--bootstrap-from-skill`, not this.\n- **BrainBench (`gbrain eval` suites)** — evals the ENGINE (retrieval,\n  memory conformance, calibration). This evals SKILLS over their history.\n- **`skills\u002Fskillify\u002FSKILL.md` \u002F `skills\u002Fskill-creator\u002FSKILL.md`** — create\n  skills from descriptions; they don't mine lived usage.\n- **`skills\u002Fcross-modal-review\u002FSKILL.md` \u002F `gbrain eval cross-modal`** — RUN\n  judging panels; they don't author evals. The panel-integrity assertions\n  here verify their panels were real.\n- **`skills\u002Fskillpack-check\u002FSKILL.md`** — audits skill structure\u002Fconformance,\n  not behavior quality.\n- **`routing-eval.jsonl`** — tests dispatch (does the right skill fire);\n  autobench tests behavior after dispatch. ROUTING-MISS findings route there.\n","# skill-autobench — write the eval from lived usage\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md) —\n> mining starts in the brain. Search the conversation archive before touching\n> raw transcript files, and never declare \"no history\" without having queried\n> the brain first.\n>\n> **Convention:** see [conventions\u002Fmodel-routing.md](..\u002Fconventions\u002Fmodel-routing.md) —\n> mining and synthesis run on the cheap tier by default. The full multi-model\n> judging pass is an explicit opt-in (see Contract).\n\nThe self-improving loop has three legs: an **eval**, a **variant generator**\n(SkillOpt), and a **replay + judge harness** (`gbrain eval cross-modal`). The\ngenerator and the judge ship with gbrain. The persistently missing leg is the\n**eval author** — someone has to WRITE the eval, and a spec-derived benchmark\nonly tests what the skill promised, not what users actually asked for or what\nactually went wrong. This skill writes the eval from reality instead of\nimagination.\n\n## Pipeline\n\n### 1. MINE — extract real invocation windows\n\nSubstrates, in priority order:\n\n1. **Brain conversation archive** — pages under `conversations\u002F`, populated by\n   the conversation-archive skill (hard dependency for this substrate: if it\n   hasn't ingested your history yet, run it first). Search for the target\n   skill's name, trigger phrases, and output shapes:\n\n   ```bash\n   gbrain search \"\u003Cskill-name>\"\n   gbrain query \"when did I use \u003Cskill-name> and what did I ask for\"\n   ```\n\n2. **Per-harness session transcripts, as available** — use what the harness\n   exposes; do not assume a layout. `gbrain transcripts recent --full` reads\n   the configured local transcript corpus (local-only by design). Claude Code\n   keeps per-project session JSONL under `~\u002F.claude\u002Fprojects\u002F`; other\n   harnesses have their own session stores. Absent stores are simply skipped.\n\nFrom each hit, extract an **invocation window**: the user ask before the\ninvocation, the invocation turn itself, and the 2 turns after — because that\nis where corrections live. **A user correction after an invocation is the\ngold signal**: it is a real, observed failure mode, and it becomes a\n`hard_fail` plus a replayable case.\n\n**FAIL-CLOSED:** if no substrate yields a single real invocation of the\ntarget skill, emit an honest no-history report (substrates checked, queries\nrun, windows scanned, zero matches) and stop. Do NOT invent \"typical\"\ninvocations. For a skill with no history, the right tool is\n`gbrain skillopt \u003Cname> --bootstrap-from-skill` (spec-derived, and honest\nabout it) — see Dedup.\n\n### 2. SYNTH — turn windows into a proposed eval\n\nFrom the mined windows plus the current SKILL.md, produce:\n\n- A proposed **eval_contract**: goal, dimensions, hard_fails. Dimensions come\n  from observed asks; hard_fails encode observed corrections.\n- **4-8 replayable cases**, each shaped\n  `{input, expected_behavior, failure_mode_to_catch}` — realistic input, a\n  checkable expected behavior, and the named failure mode the case exists to\n  catch.\n- **Spec-vs-usage gaps**: \"the spec says X, users consistently ask Y.\"\n\n**HONESTY LABELS are mandatory.** Every dimension and every case is labeled:\n\n- `HISTORY-IMPLIED` — a real mined window backs it; cite which one.\n- `SPEC-DERIVED` — inferred from SKILL.md only; no usage evidence.\n\nNever conflate the two. If history is thin or off-target, say so prominently\nat the top of the staged file (\"GROUNDING WARNING: only N windows found, none\nexercised the core path\") instead of padding with fabricated evidence.\n\n**Privacy scrub before staging:** staged evals live in the skill repo and are\ndistributable. Mined windows contain real names, companies, and deals —\nrewrite every case onto placeholder slugs (`alice-example`, `acme-example`)\nbefore writing the file. A history-grounded case keeps its shape and failure\nmode, never its real entities.\n\n### 3. STAGE — human gate, always\n\nWrite `skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md` with frontmatter\n`status: PENDING-HUMAN-APPROVAL`.\n\n**This skill NEVER rewrites SKILL.md** — not the eval_contract, not the body,\nnot the triggers. Merging the staged eval is the human's decision. (This is a\nworkflow contract the agent must honor, not a mechanically-enforced gate.)\n\n## The loop (after approval)\n\n1. Human reviews, edits, and approves the staged eval; the approved\n   eval_contract is merged into the skill's frontmatter explicitly.\n2. Convert approved cases into `skills\u002F\u003Cname>\u002Fskillopt-benchmark.jsonl` lines\n   and run `gbrain skillopt \u003Cname>` — this is the SkillOpt surface extension:\n   a history-grounded benchmark replacing the spec-derived bootstrap.\n3. Judge outputs through the native gate:\n\n   ```bash\n   gbrain eval cross-modal --task \"\u003Cwhat the output was meant to achieve>\" --output \u003Cpath>\n   ```\n\n4. Re-run autobench after more usage accumulates; diff against the prior\n   staged baseline.\n\n## Panel integrity — trust no aggregate\n\nMulti-model judging is only as good as the panel being real. The silent\nfailure class: a model-id normalizer strips provider prefixes and every\n\"different model\" call lands on one host, so a \"3-frontier consensus\" is one\nmodel's opinion in a trench coat. Before trusting any multi-model verdict,\nassert over the result object:\n\n1. **Each named model returned a non-empty response.** An empty or failed\n   slot is the first tell of a collapse.\n2. **Responses came from DISTINCT provider endpoints.** If three \"different\n   models\" all report the same provider, the panel collapsed to one host.\n3. **No two \"different models\" returned byte-identical output.** If two\n   differently-named models return the same bytes, they are the same model.\n   This catches a collapse even when provider metadata is missing or faked.\n\n`gbrain eval cross-modal` already exits 2 (INCONCLUSIVE) when fewer than 2\u002F3\nmodels return parseable scores; the byte-identical duplicate check and the\ndistinct-endpoint check are the independent backstops this skill layers on\ntop. Run them over the receipt JSON (written to the receipt dir) before\ntreating a PASS\u002FFAIL as authoritative. The integrity check is pure assertion\nlogic over an existing result — it never calls a model itself: no network,\nno cost.\n\n## Fail-improve taxonomy — what mined failures become\n\nClassify each mined correction\u002Ffailure case by its cheapest durable fix:\n\n| Class | Signal in history | Durable fix |\n|---|---|---|\n| DETERMINISTIC-CODIFIABLE | An LLM fallback repeatedly handles the same input shape (regex, parsing, slugs, dates) | Convert to deterministic code + a permanent test case. The LLM is not the solution; it is the training-data generator for the code that replaces it. |\n| PROMPT-FIXABLE | The correction targets tone, format, or an omission the SKILL.md could specify | An eval case + a `gbrain skillopt` run |\n| SPEC-GAP | Users consistently ask for something the spec never promised | A spec-vs-usage gap observation for the human |\n| ROUTING-MISS | The skill fired on the wrong ask, or failed to fire | A `routing-eval.jsonl` case, not a benchmark case |\n\nDirection of travel: every fixed failure becomes a permanent test, the\ndeterministic share rises, and the LLM-fallback share falls. Log and improve;\nnever silently drop a mined failure.\n\n## Contract\n\n- **Input:** a skill name that exists under `skills\u002F`.\n- **Substrates:** `conversations\u002F` archive pages (brain-first), then\n  per-harness session transcripts as available (`gbrain transcripts recent`\n  is local-only by design). No usable substrate → honest no-history report,\n  never fabricated evidence.\n- **Output:** one staged file at `skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md`,\n  `status: PENDING-HUMAN-APPROVAL` — or the no-history report. Never an edit\n  to SKILL.md, triggers, or any routing surface.\n- **Cost posture:** cheap-model default for mining and synthesis. The full\n  multi-model judging pass (3 provider slots per cycle) is an explicit\n  opt-in, and judging goes through native `gbrain eval cross-modal` — no\n  bespoke judging harness.\n- **Honesty:** every dimension and case carries a SPEC-DERIVED or\n  HISTORY-IMPLIED label; thin history is flagged, not papered over.\n- **Privacy:** mined cases are rewritten onto placeholder entities before\n  staging.\n\n## Output Format\n\n```markdown\n---\nskill: \u003Cname>\nstatus: PENDING-HUMAN-APPROVAL\ngenerated: \u003Cdate>\nsubstrate: { conversation_pages: N, transcript_files: M, windows: K, corrections: C }\n---\n\n# Autobench: \u003Cname> — \u003Cdate>\n\n## Grounding\n\u003Cone paragraph: how much real history backs this eval; GROUNDING WARNING if thin>\n\n## Proposed eval_contract\ngoal \u002F dimensions (each labeled HISTORY-IMPLIED|SPEC-DERIVED) \u002F hard_fails\n\n## Cases (4-8)\n### case-01 [HISTORY-IMPLIED — window ref]\ninput: ...\nexpected_behavior: ...\nfailure_mode_to_catch: ...\n\n## Spec-vs-usage gaps\n- spec says X; users ask Y (windows: ...)\n\n## Fail-improve classification\n- case-03 → DETERMINISTIC-CODIFIABLE (same date-format fallback, 4 windows)\n```\n\n## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- No substrate yields a real invocation of the skill: FAIL-CLOSED. Report it and write no eval; never synthesize cases from imagination.\n- `gbrain eval cross-modal` or the judge run lacks a key or hits `no_pricing`: say the eval was not judged; leave the draft as PENDING-HUMAN-APPROVAL.\n\n## Anti-Patterns\n\n- ❌ Auto-merging a synthesized eval into SKILL.md. The human gate is the\n  contract.\n- ❌ Presenting SPEC-DERIVED dimensions as history-grounded — fabricating\n  usage evidence is the cardinal sin.\n- ❌ Mining nothing and still emitting a confident eval. Fail loudly or label\n  honestly.\n- ❌ Trusting \"3 models scored it 8\u002F10\" without checking that three providers\n  actually returned distinct, non-identical responses.\n- ❌ Calling a model inside the panel-integrity check — it is pure assertion\n  logic over a result object.\n- ❌ Building a bespoke judging harness when `gbrain eval cross-modal` is the\n  native gate.\n- ❌ Staging mined cases with real people\u002Fcompanies in them. Placeholders\n  only.\n\n## Dedup (sharp boundaries)\n\n- **skill-optimizer (SkillOpt, host-side)** — optimizes a skill's body\n  against an EXISTING benchmark; its `--bootstrap-from-skill` derives tasks\n  from the spec. THIS skill authors the benchmark from lived usage and feeds\n  it into `skills\u002F\u003Cname>\u002Fskillopt-benchmark.jsonl` — it extends SkillOpt's\n  surface, never duplicates it. Read the skill-optimizer SKILL.md (on the\n  host, where its engine lives) before the handoff. No history at all → use\n  `--bootstrap-from-skill`, not this.\n- **BrainBench (`gbrain eval` suites)** — evals the ENGINE (retrieval,\n  memory conformance, calibration). This evals SKILLS over their history.\n- **`skills\u002Fskillify\u002FSKILL.md` \u002F `skills\u002Fskill-creator\u002FSKILL.md`** — create\n  skills from descriptions; they don't mine lived usage.\n- **`skills\u002Fcross-modal-review\u002FSKILL.md` \u002F `gbrain eval cross-modal`** — RUN\n  judging panels; they don't author evals. The panel-integrity assertions\n  here verify their panels were real.\n- **`skills\u002Fskillpack-check\u002FSKILL.md`** — audits skill structure\u002Fconformance,\n  not behavior quality.\n- **`routing-eval.jsonl`** — tests dispatch (does the right skill fire);\n  autobench tests behavior after dispatch. ROUTING-MISS findings route there.\n",{"name":5,"version":44,"mutating":45,"requires":46,"triggers":48,"upstream":55,"writes_to":56,"description":58,"writes_pages":40},"1.0.0",true,[47],"dir:conversations\u002F",[19,20,49,50,51,52,53,54],"write the eval from usage history","synthesize an eval for this skill","mine how this skill is actually used","build a benchmark from my corrections","verify the eval panel","did all providers return","skill-autobench@fc834ee + panel-integrity@fc834ee + fail-improve-loop@fc834ee (taxonomy only)",[57],"skills\u002F\u003Cname>\u002Feval\u002F","Author an eval for an existing skill from its REAL usage history, not its\nspec. Mine invocations from the brain's conversation archive\n(conversations\u002F) and per-harness session transcripts — a user correction\nafter an invocation is the gold signal — then synthesize an eval_contract\nplus 4-8 replayable cases with honesty labels (SPEC-DERIVED vs\nHISTORY-IMPLIED) and stage the result at skills\u002F\u003Cname>\u002Feval\u002Fautobench-\u003Cdate>.md\nas PENDING-HUMAN-APPROVAL. Never rewrites SKILL.md. Ships two guard\ncompanions: panel integrity (multi-model judging must prove each provider\nactually responded) and the fail-improve taxonomy (logged LLM-fallback\ncases convert to deterministic code over time).\n","master","074ec301549ded4930f04d2c3b22d709a6c095cc","skills\u002Fskill-autobench",4929,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain","https:\u002F\u002Fgithub.com\u002Fgarrytan","https:\u002F\u002Fblog.garrytan.com","Writes software, dreams. ","2026-11-15 03:57:03",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":45},[70,73,76],{"tool":71,"command":72},"npx","npx skills add garrytan\u002Fgbrain --skill skill-autobench",{"tool":74,"command":75},"bunx","bunx skills add garrytan\u002Fgbrain --skill skill-autobench",{"tool":77,"command":78},"pnpm","pnpm dlx skills add garrytan\u002Fgbrain --skill skill-autobench","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fskill-autobench\u002FSKILL.md",[81],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"routing-eval.jsonl","OTHER","其他",801,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fskills\u002Fskill-autobench\u002Frouting-eval.jsonl",[88,96,102,107,112,117],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"01M7DVD1SVD1CK2S6M5MR0NKVH","beta","Synthetic fixture skill.","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":97,"name":98,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":95},"01M7DVD0T1465DP7CGPVNGK5XH","alpha","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":103,"name":98,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":95},"01M7DVCZWYBFRTE76082QMZCK8","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":108,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":95},"01M7DVCYYGRM05Z2MWH37CYGHH","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":113,"name":98,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":95},"01M7DVCXRT85704NBBZ73F59KP","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":118,"name":98,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":95},"01M7DVCWR4M8HWJVM1CXB7K1VN","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-tool\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]