[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DBSEYYSPR1TBJE2VCGMMZ0":3,"skill-same:01M7DBSEYYSPR1TBJE2VCGMMZ0":45},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M7DBSEYYSPR1TBJE2VCGMMZ0","lint-pair",null,"Turn copied code or a bypassed helper into one helper plus an ast-grep rule that bans the second copy, scoped to one directory.","dreamfactory-gg\u002Fgutcheck","dreamfactory-gg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F296322377?v=4","01M7DBRRXF16SGVHG2HAV2B9EN","dreamfactory.gg","01M7DBRRZ8C01T9WNAZSEWAQ94",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Flint-pair\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lint-pair\ndescription: Turn copied code or a bypassed helper into one helper plus an ast-grep rule that bans the second copy, scoped to one directory.\nargument-hint: \"\u003Cdirectory>\"\ndisable-model-invocation: true\n---\n\n# Lint pair: one helper, and the rule that makes it the only way\n\nProse rules get read; lint rules bite. A pair is a helper plus a repo check that fails on a new copy of what it replaced.\n\n1. **Find the copies.** Churn: `git log --since=60.days --name-only --format= -- DIR | sort | uniq -c | sort -rn | head -30`. Then the user's reuse corrections: `tokenmaxxing recall \"use the existing helper\"` (also \"reuse\", \"duplicate\", \"copy of\"). Look for a function body pasted across files, or an existing helper that code routes around (a hand-rolled list of connections beside an existing cleanup helper).\n2. **Defaults, not shape.** Diff the variants. If they differ only in default values, one helper with overrides fits. If they differ in shape (different fields, steps or control flow), stop and tell the user: a parameter per difference is the wrong abstraction.\n3. **Make one helper** in the directory it serves. Each file's drifted defaults survive as an explicit preset or override at its call site, so behaviour doesn't change.\n4. **Migrate by script**, not by hand. Prove sameness: dump what the old and new code produce (tables, output) and diff.\n5. **Ban the second copy with ast-grep.**\n   - `sgconfig.yml` at the repo root: `ruleDirs: [\u003Clint dir>]` (`tools\u002Flint` or `scripts\u002Flint`), and for Luau `languageGlobs: { lua: [\"*.luau\"] }`.\n   - One rule file per ban: `severity: error`, a `message` naming the helper, a `note` with its one-line interface, and `files:` (relative to the sgconfig root) scoped to the directory. Leave out generated trees. Allow-list legitimate sites with `not:` or narrower `files:`, never with ignore comments.\n6. **Install ast-grep through the repo's own tool manager.** Rokit: `ast-grep = \"ast-grep\u002Fast-grep@\u003Cversion>\"` in rokit.toml; setup docs say `rokit trust ast-grep\u002Fast-grep && rokit install` (rokit refuses an untrusted tool without a TTY). npm: `npm i -D @ast-grep\u002Fcli` and a `\"lint:ast\": \"ast-grep scan src\"` script. Add a step to the repo's check script (with an install hint when ast-grep is missing) and to CI. Always pass the source dir: a bare `ast-grep scan` walks assets for minutes.\n7. **Put the interface in the directory's CLAUDE.md** (or the brief its builders read): each function's signature, defaults and a one-line example, and the rule id, so agents call the helper without opening its file.\n8. **Prove it**, quoting the three runs: check passes; inject one violation in the scoped directory, check fails naming the rule id; revert, check passes.\n\nAfterwards, more than two ignore comments against a rule means the rule is wrong, not the code.\n\n## Example\nForty Luau files under `src\u002Feffects\u002F` each carry a local `emitter` builder, in a dozen drifted default sets.\n- Helper `src\u002Fshared\u002FEffect.luau`: `Effect.emitter(o)`, and `Effect.preset(base)` for what one file's emitters share (each file's old defaults become its `base`).\n- `sgconfig.yml`: `ruleDirs: [tools\u002Flint]`, `languageGlobs: { lua: [\"*.luau\"] }`. `tools\u002Flint\u002Feffect-helpers.yml`:\n  ```yaml\n  id: effect-helpers\n  language: lua\n  severity: error\n  message: Effects build emitters with shared\u002FEffect.luau, never a local copy.\n  note: \"local emitter = Effect.preset({ brightness = 2 }); interface in src\u002Feffects\u002FCLAUDE.md\"\n  files: [\"src\u002Feffects\u002F**\"]\n  rule:\n    any:\n      - pattern: local function emitter($$$) $$$ end\n      - pattern: local emitter = function($$$) $$$ end\n  ```\n- `rokit.toml` pins ast-grep; `scripts\u002Fcheck.sh` runs `ast-grep scan src`; `src\u002Feffects\u002FCLAUDE.md` holds the Effect.luau interface.\n","# Lint pair: one helper, and the rule that makes it the only way\n\nProse rules get read; lint rules bite. A pair is a helper plus a repo check that fails on a new copy of what it replaced.\n\n1. **Find the copies.** Churn: `git log --since=60.days --name-only --format= -- DIR | sort | uniq -c | sort -rn | head -30`. Then the user's reuse corrections: `tokenmaxxing recall \"use the existing helper\"` (also \"reuse\", \"duplicate\", \"copy of\"). Look for a function body pasted across files, or an existing helper that code routes around (a hand-rolled list of connections beside an existing cleanup helper).\n2. **Defaults, not shape.** Diff the variants. If they differ only in default values, one helper with overrides fits. If they differ in shape (different fields, steps or control flow), stop and tell the user: a parameter per difference is the wrong abstraction.\n3. **Make one helper** in the directory it serves. Each file's drifted defaults survive as an explicit preset or override at its call site, so behaviour doesn't change.\n4. **Migrate by script**, not by hand. Prove sameness: dump what the old and new code produce (tables, output) and diff.\n5. **Ban the second copy with ast-grep.**\n   - `sgconfig.yml` at the repo root: `ruleDirs: [\u003Clint dir>]` (`tools\u002Flint` or `scripts\u002Flint`), and for Luau `languageGlobs: { lua: [\"*.luau\"] }`.\n   - One rule file per ban: `severity: error`, a `message` naming the helper, a `note` with its one-line interface, and `files:` (relative to the sgconfig root) scoped to the directory. Leave out generated trees. Allow-list legitimate sites with `not:` or narrower `files:`, never with ignore comments.\n6. **Install ast-grep through the repo's own tool manager.** Rokit: `ast-grep = \"ast-grep\u002Fast-grep@\u003Cversion>\"` in rokit.toml; setup docs say `rokit trust ast-grep\u002Fast-grep && rokit install` (rokit refuses an untrusted tool without a TTY). npm: `npm i -D @ast-grep\u002Fcli` and a `\"lint:ast\": \"ast-grep scan src\"` script. Add a step to the repo's check script (with an install hint when ast-grep is missing) and to CI. Always pass the source dir: a bare `ast-grep scan` walks assets for minutes.\n7. **Put the interface in the directory's CLAUDE.md** (or the brief its builders read): each function's signature, defaults and a one-line example, and the rule id, so agents call the helper without opening its file.\n8. **Prove it**, quoting the three runs: check passes; inject one violation in the scoped directory, check fails naming the rule id; revert, check passes.\n\nAfterwards, more than two ignore comments against a rule means the rule is wrong, not the code.\n\n## Example\nForty Luau files under `src\u002Feffects\u002F` each carry a local `emitter` builder, in a dozen drifted default sets.\n- Helper `src\u002Fshared\u002FEffect.luau`: `Effect.emitter(o)`, and `Effect.preset(base)` for what one file's emitters share (each file's old defaults become its `base`).\n- `sgconfig.yml`: `ruleDirs: [tools\u002Flint]`, `languageGlobs: { lua: [\"*.luau\"] }`. `tools\u002Flint\u002Feffect-helpers.yml`:\n  ```yaml\n  id: effect-helpers\n  language: lua\n  severity: error\n  message: Effects build emitters with shared\u002FEffect.luau, never a local copy.\n  note: \"local emitter = Effect.preset({ brightness = 2 }); interface in src\u002Feffects\u002FCLAUDE.md\"\n  files: [\"src\u002Feffects\u002F**\"]\n  rule:\n    any:\n      - pattern: local function emitter($$$) $$$ end\n      - pattern: local emitter = function($$$) $$$ end\n  ```\n- `rokit.toml` pins ast-grep; `scripts\u002Fcheck.sh` runs `ast-grep scan src`; `src\u002Feffects\u002FCLAUDE.md` holds the Effect.luau interface.\n",{"name":5,"description":7,"argument-hint":24,"disable-model-invocation":25},"\u003Cdirectory>",true,"main","f26a96bd6926328cdb08cf7a488ff9c6e805df7a","tokenmaxxing\u002Fskills\u002Flint-pair","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg","2026-11-06 04:10:24",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":25},[34,37,40],{"tool":35,"command":36},"npx","npx skills add dreamfactory-gg\u002Fgutcheck --skill lint-pair",{"tool":38,"command":39},"bunx","bunx skills add dreamfactory-gg\u002Fgutcheck --skill lint-pair",{"tool":41,"command":42},"pnpm","pnpm dlx skills add dreamfactory-gg\u002Fgutcheck --skill lint-pair","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Flint-pair\u002FSKILL.md",[],[46,52,59,66,72,79],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7DBSPWN1CWPXRCN10DN1KZE","soldiers","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Fsoldiers\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DBSM0V7JT6PWH19PMSV91D","report","Report what the tokenmaxxing hooks did over the last N days (default 7).","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Freport\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DBSHPH2N3FXRCFRAREFR5B","recall","Search past sessions, memory, Codex logs and git history for an earlier decision, fix or approach.","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Frecall\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DBSCNWYXAJEFN8R641PSFT","jev","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Fjev\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DBS9Z13CG15S72MDPZM3MN","init","Build or rebuild ~\u002F.config\u002Ftokenmaxxing\u002Fconfig.toml and the skill, doc and recall indexes from this user's history.","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Finit\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DBS6W5VXJR723VM21GV3KS","handoff","https:\u002F\u002Fgithub.com\u002Fdreamfactory-gg\u002Fgutcheck\u002Fblob\u002Fmain\u002Ftokenmaxxing\u002Fskills\u002Fhandoff\u002FSKILL.md",[],[]]