[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8QDBXVS7MC69B68YP29G3":3,"skill-same:01M7A8QDBXVS7MC69B68YP29G3":65},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":5,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7A8QDBXVS7MC69B68YP29G3","ask",null,"justinstimatze\u002Fonsetter","justinstimatze","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1648777?v=4","01M7A8QBY7M1RMV3377AVCE37R","Justin Stimatze","01M7A8QBYWFHNJTDRZPXYRAEY6",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fskill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: onsetter\ndescription: How to write, measure and wire an onsetter ask — prose in a fenced ask block inside an ordinary CLAUDE.md, injected in front of the Write or Edit that trips its gate. Read this before adding or changing an ask block, before picking a header (requires, in, not-in, on, not, has, untouched, added, removed, when, evokes, revisit, always, block, name, cues, fires-on, silent-on), and whenever a CLAUDE.md in the tree already contains ask fences. Covers where the block goes, the replay-before-wiring rule, why a wide gate now costs more than it used to, what replay cannot measure, how one ask can cue another by name, when block: true is warranted over an advisory firing, and how fires-on:\u002Fsilent-on: prove a gate isn't dark.\n---\n\n# Writing an onsetter ask\n\nAn ask is a fenced block in an ordinary `CLAUDE.md`, opened with the exact\nkeyword `ask`: headers, one blank line, then prose, all inside the fence.\nOnsetter runs as a `PreToolUse` hook on Write and Edit. When a block's gates\nmatch the pending edit, its body is injected in front of that edit.\n\nNothing calls onsetter directly — it fires on the tool call regardless of\nwhether anyone knows it's there, which is the point, and also why this skill\nexists. The firing\nside needs no discovery; the authoring side does.\n\n## Get the header reference from the binary\n\n```\nonsetter headers\n```\n\nAll fifteen headers with their haystacks, the gotchas, and a\nwhat-you-want-to-catch table. It ships inside the binary, so it always\ndescribes the version actually installed. Read it rather than working from\nmemory of this file — the trap that keeps catching people is `not:`, which is a\ncontent regex and not a path exclusion, so `not: **\u002F*_test.go` matches nothing\nand the ask fires on the tests anyway. Path exclusion is `not-in:`.\n\nThree of the fifteen, `name:`, `cues:` and `always:`, aren't gates at all:\n`cues:` lets a fired ask also inject a second ask's prose by name, without\nchecking that second ask's own gate; `always:` skips the once-per-session\nsuppression entirely, so an ask whose corpus is suspect by construction can\nfire on every matching edit rather than stopping after the first.\n`onsetter headers` covers the semantics, the loop-safety, and the real\ngotchas (a cue can only reach an ask its own `CLAUDE.md` chain would already\nsee; `always:` on an unnarrowed ask is the loudest injection this format can\nproduce).\n\n## Where the block goes\n\nThe `CLAUDE.md` closest to the files the ask is about. Globs resolve against\nthat file's own directory, never the repo root, so an ask in `corpus\u002FCLAUDE.md`\nwrites `chars\u002F**` and not `corpus\u002Fchars\u002F**`. Keeping the ask near its subject\nis what lets `in:` stay short, and it means the ask moves when the content\nmoves.\n\nOne exception: asks in `\u003Croot>\u002F.claude\u002FCLAUDE.md` scope to `\u003Croot>`, because\nClaude Code loads that file as the project's own. That exception needs a real\nproject root: an ask in the global `~\u002F.claude\u002FCLAUDE.md` scopes only to\n`~\u002F.claude\u002F` itself — there's no project root above `$HOME` for its globs to\nbe relative to.\n\nNever add an ask to a checkout you do not own.\n\n## The loop, in order\n\n1. Draft the block.\n2. `onsetter lint` — a block that fails to parse is worse than no block,\n   because the author believes it is watching.\n3. `onsetter replay '\u003Cglob>'` against the files it claims to govern.\n4. Narrow, and run replay again. Every first draft over-fires.\n\nA gate tripping on more than a few percent of what it reaches is a tax on every\nedit it touches. `onsetter list \u003Cpath>` does the same for a single file and\nnames the gate that turned it away.\n\nAn `evokes:` ask has a fifth step: `onsetter warm` before it will ever fire.\nUnlike every other header, it needs a local cache built ahead of time — a\nphrase added since the last `warm` silently never fires, so re-run it after\ndrafting or editing one.\n\nIt also has no ground truth of its own the way a regex does, so `replay`'s\nrate cannot tell you whether the threshold is right. `onsetter calib \u003Cask>\n\u003Cfires-glob> \u003Cnot-glob>` is the equivalent for this one header: point it at\nlabeled positive and negative examples and it reports where they actually\nland — including whether they overlap, in which case the fix is rewording\nthe phrases rather than picking a different number.\n\n## What replay cannot tell you\n\n**It measures cost, never catch.** The corpus has already been cleaned of the\ndefect the ask looks for, so a healthy ask and a dead one both read 0%. When a\nrow is 0%, read the funnel line to see which gate rejected: `in: ×38 · when: ×2`\nmeans the glob reached two files and the regex matched neither, which is a\ndifferent bug from `in: ×40` alone.\n\n**It cannot see `added:` or `removed:` at all.** Replay builds synthetic mints\nfrom files on disk, so there is no old text: `added:` degrades to `when:` and\n`removed:` never fires. A rate printed for one of those is silently about the\nask's *other* gates. Replay marks such rows. The honest check is to pipe two\nJSON payloads through `onsetter hook` with an old\u002Fnew pair.\n\nA rate that agrees with whatever the ask replaced proves the migration was\nfaithful. It says nothing about whether the gate is good.\n\n## Lifetime, and why width costs\n\nThe two kinds of block get opposite treatment without either declaring\nitself. No content gate means nothing to quote: it fires once per session\nhowever many files it governs, then goes quiet — a reminder, and a second\nfiring would be the literal same sentence. A `when:`, `added:`, `removed:`\nor `evokes:` block is different: it always fires, on every occurrence, for\nthe whole session — marked `(asked N× already this session)` once a given\noccurrence (the quote plus the edit around it, not the quote alone) recurs.\n`has:` gates on the file as it stands but never contributes a quote, so a\n`has:`-only block is a reminder too, same as a `cues:`-reached firing, which\nnever checks its own gate and so never has anything to quote either.\n\nThis is no suppression at all for the matched case, replaced by a count,\nrather than a tightened once-per-session default. The old key hashed the quote\nalone, so two unrelated occurrences sharing a short match silently\ncollapsed into one already-answered question; the count exists so a repeat\ngets triaged by whoever's reading it, not hidden by a session file that\ncan't tell a genuine repeat from a different occurrence that looks similar.\n\nThe consequence when drafting: gate width is still expensive, more than\nbefore. A pattern matching most of a corpus now costs one injection per\noccurrence, with no once-per-session ceiling to cap it — the old \"twenty\nalternatives, twenty questions\" ceiling no longer holds for a matched ask,\nsince the same string recurring in different edits counts as a fresh\noccurrence each time, rather than one capped question.\n\n`always: true` opts a matched ask out of the count — every firing looks\nidentical, for a near-check corpus where that's already expected. `revisit:`\nis retired: its whole job was the widening that's unconditional now.\nSee `onsetter headers` for the full mechanics and cost.\n\n## Writing the prose\n\nThe body is a question, not a rule. It is read by an agent mid-edit, and being\nwrong costs one sentence — which is the whole reason a gate this loose is worth\nhaving.\n\n- Say what about the matched text is suspect. The injection already quotes it.\n- End with the out: \"…unless it is genuinely X, in which case continue.\"\n- Say what to do, not only what is wrong.\n- Do not write a linter. If the check is precise enough to block on, it belongs\n  in CI, and someone will ask why this is not one.\n\nIdentity is a hash of the gate and the body, so inserting a paragraph above an\nask changes nothing and editing its prose re-arms it. To retire one, delete the\nblock.\n","# Writing an onsetter ask\n\nAn ask is a fenced block in an ordinary `CLAUDE.md`, opened with the exact\nkeyword `ask`: headers, one blank line, then prose, all inside the fence.\nOnsetter runs as a `PreToolUse` hook on Write and Edit. When a block's gates\nmatch the pending edit, its body is injected in front of that edit.\n\nNothing calls onsetter directly — it fires on the tool call regardless of\nwhether anyone knows it's there, which is the point, and also why this skill\nexists. The firing\nside needs no discovery; the authoring side does.\n\n## Get the header reference from the binary\n\n```\nonsetter headers\n```\n\nAll fifteen headers with their haystacks, the gotchas, and a\nwhat-you-want-to-catch table. It ships inside the binary, so it always\ndescribes the version actually installed. Read it rather than working from\nmemory of this file — the trap that keeps catching people is `not:`, which is a\ncontent regex and not a path exclusion, so `not: **\u002F*_test.go` matches nothing\nand the ask fires on the tests anyway. Path exclusion is `not-in:`.\n\nThree of the fifteen, `name:`, `cues:` and `always:`, aren't gates at all:\n`cues:` lets a fired ask also inject a second ask's prose by name, without\nchecking that second ask's own gate; `always:` skips the once-per-session\nsuppression entirely, so an ask whose corpus is suspect by construction can\nfire on every matching edit rather than stopping after the first.\n`onsetter headers` covers the semantics, the loop-safety, and the real\ngotchas (a cue can only reach an ask its own `CLAUDE.md` chain would already\nsee; `always:` on an unnarrowed ask is the loudest injection this format can\nproduce).\n\n## Where the block goes\n\nThe `CLAUDE.md` closest to the files the ask is about. Globs resolve against\nthat file's own directory, never the repo root, so an ask in `corpus\u002FCLAUDE.md`\nwrites `chars\u002F**` and not `corpus\u002Fchars\u002F**`. Keeping the ask near its subject\nis what lets `in:` stay short, and it means the ask moves when the content\nmoves.\n\nOne exception: asks in `\u003Croot>\u002F.claude\u002FCLAUDE.md` scope to `\u003Croot>`, because\nClaude Code loads that file as the project's own. That exception needs a real\nproject root: an ask in the global `~\u002F.claude\u002FCLAUDE.md` scopes only to\n`~\u002F.claude\u002F` itself — there's no project root above `$HOME` for its globs to\nbe relative to.\n\nNever add an ask to a checkout you do not own.\n\n## The loop, in order\n\n1. Draft the block.\n2. `onsetter lint` — a block that fails to parse is worse than no block,\n   because the author believes it is watching.\n3. `onsetter replay '\u003Cglob>'` against the files it claims to govern.\n4. Narrow, and run replay again. Every first draft over-fires.\n\nA gate tripping on more than a few percent of what it reaches is a tax on every\nedit it touches. `onsetter list \u003Cpath>` does the same for a single file and\nnames the gate that turned it away.\n\nAn `evokes:` ask has a fifth step: `onsetter warm` before it will ever fire.\nUnlike every other header, it needs a local cache built ahead of time — a\nphrase added since the last `warm` silently never fires, so re-run it after\ndrafting or editing one.\n\nIt also has no ground truth of its own the way a regex does, so `replay`'s\nrate cannot tell you whether the threshold is right. `onsetter calib \u003Cask>\n\u003Cfires-glob> \u003Cnot-glob>` is the equivalent for this one header: point it at\nlabeled positive and negative examples and it reports where they actually\nland — including whether they overlap, in which case the fix is rewording\nthe phrases rather than picking a different number.\n\n## What replay cannot tell you\n\n**It measures cost, never catch.** The corpus has already been cleaned of the\ndefect the ask looks for, so a healthy ask and a dead one both read 0%. When a\nrow is 0%, read the funnel line to see which gate rejected: `in: ×38 · when: ×2`\nmeans the glob reached two files and the regex matched neither, which is a\ndifferent bug from `in: ×40` alone.\n\n**It cannot see `added:` or `removed:` at all.** Replay builds synthetic mints\nfrom files on disk, so there is no old text: `added:` degrades to `when:` and\n`removed:` never fires. A rate printed for one of those is silently about the\nask's *other* gates. Replay marks such rows. The honest check is to pipe two\nJSON payloads through `onsetter hook` with an old\u002Fnew pair.\n\nA rate that agrees with whatever the ask replaced proves the migration was\nfaithful. It says nothing about whether the gate is good.\n\n## Lifetime, and why width costs\n\nThe two kinds of block get opposite treatment without either declaring\nitself. No content gate means nothing to quote: it fires once per session\nhowever many files it governs, then goes quiet — a reminder, and a second\nfiring would be the literal same sentence. A `when:`, `added:`, `removed:`\nor `evokes:` block is different: it always fires, on every occurrence, for\nthe whole session — marked `(asked N× already this session)` once a given\noccurrence (the quote plus the edit around it, not the quote alone) recurs.\n`has:` gates on the file as it stands but never contributes a quote, so a\n`has:`-only block is a reminder too, same as a `cues:`-reached firing, which\nnever checks its own gate and so never has anything to quote either.\n\nThis is no suppression at all for the matched case, replaced by a count,\nrather than a tightened once-per-session default. The old key hashed the quote\nalone, so two unrelated occurrences sharing a short match silently\ncollapsed into one already-answered question; the count exists so a repeat\ngets triaged by whoever's reading it, not hidden by a session file that\ncan't tell a genuine repeat from a different occurrence that looks similar.\n\nThe consequence when drafting: gate width is still expensive, more than\nbefore. A pattern matching most of a corpus now costs one injection per\noccurrence, with no once-per-session ceiling to cap it — the old \"twenty\nalternatives, twenty questions\" ceiling no longer holds for a matched ask,\nsince the same string recurring in different edits counts as a fresh\noccurrence each time, rather than one capped question.\n\n`always: true` opts a matched ask out of the count — every firing looks\nidentical, for a near-check corpus where that's already expected. `revisit:`\nis retired: its whole job was the widening that's unconditional now.\nSee `onsetter headers` for the full mechanics and cost.\n\n## Writing the prose\n\nThe body is a question, not a rule. It is read by an agent mid-edit, and being\nwrong costs one sentence — which is the whole reason a gate this loose is worth\nhaving.\n\n- Say what about the matched text is suspect. The injection already quotes it.\n- End with the out: \"…unless it is genuinely X, in which case continue.\"\n- Say what to do, not only what is wrong.\n- Do not write a linter. If the check is precise enough to block on, it belongs\n  in CI, and someone will ask why this is not one.\n\nIdentity is a hash of the gate and the body, so inserting a paragraph above an\nask changes nothing and editing its prose re-arms it. To retire one, delete the\nblock.\n",{},"main","8d6a1ba32289d574269d42c9a3647be3a54c7fcf",0,"https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter","https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter#readme","https:\u002F\u002Fgithub.com\u002Fjustinstimatze","http:\u002F\u002Fwww.justinstimatze.com","2026-11-12 11:36:26",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add justinstimatze\u002Fonsetter --skill ask",{"tool":37,"command":38},"bunx","bunx skills add justinstimatze\u002Fonsetter --skill ask",{"tool":40,"command":41},"pnpm","pnpm dlx skills add justinstimatze\u002Fonsetter --skill ask","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fskill.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"ask_external_test.go","SCRIPT","脚本",2677,"https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fask_external_test.go",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"ask_test.go",45171,"https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fask_test.go",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"ask.go",32544,"https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fask.go",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"headers.md","REFERENCE","参考文档",33157,"https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fask\u002Fheaders.md",[66],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7A8QG9X6DD9WR1AFPNZCJS4","onsetter","https:\u002F\u002Fgithub.com\u002Fjustinstimatze\u002Fonsetter\u002Fblob\u002Fmain\u002Fskills\u002Fonsetter\u002FSKILL.md",[],[]]