[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6H2GXMH4M9BD6DBT8DC70":3,"skill-same:01M6C6H2GXMH4M9BD6DBT8DC70":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":17,"ownerHtmlUrl":65,"ownerBlogUrl":17,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6C6H2GXMH4M9BD6DBT8DC70","cli-smoke-recipes","CLI 冒烟测试配方","CLI smoke recipes: expose pure-function modules via subcommands with a bulk-smoke justfile recipe. Use when designing data-transform modules or authoring smoke tests.","CLI 冒烟测试配方：通过子命令暴露纯函数模块，并编写支持批量冒烟测试的 justfile 配方。适用于设计数据转换模块或编写冒烟测试时。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ftools-plugin\u002Fskills\u002Fcli-smoke-recipes\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"smoke","cli smoke recipes","cli","recipes","authoring","2026","when","justfile","with","bulk","transform","via","recipe","tests","modules","use","read","grep","data","smoke tests","2026-11-10 10:12:30",false,"---\nname: cli-smoke-recipes\ndescription: \"CLI smoke recipes: expose pure-function modules via subcommands with a bulk-smoke justfile recipe. Use when designing data-transform modules or authoring smoke tests.\"\nallowed-tools: Read, Grep, Glob, TodoWrite\nmodel: sonnet\ncreated: 2026-04-24\nmodified: 2026-08-15\nreviewed: 2026-04-24\n---\n\n# CLI Smoke Recipes\n\nEvery pure-function module that transforms data should be reachable from the shell plus a bulk-smoke recipe that iterates every shipped input. Applies to decoders, codecs, parsers, validators, formatters, compilers, transpilers, linters.\n\n## When to Use This Skill\n\n| Use this skill when… | Skip when… |\n|---------------------|------------|\n| Designing a new module with a clear input → output contract | Internal helper with no stable interface |\n| Adding CLI exposure to an existing library | Code whose only consumer is another in-process module |\n| Authoring justfile recipes for bulk verification | One-off scripts, or recipe syntax generally — use `justfile-expert` |\n| Deciding if a feature is complete | Implementation is purely experimental |\n\n## The Pattern\n\n### 1. CLI exposure\n\nEach transforming module is callable via `\u003Cbin> \u003Cmodule> \u003Csubcmd>`:\n\n| Operation | Pattern | Required? |\n|-----------|---------|-----------|\n| `info` | Pure reader; prints headers \u002F metadata | Yes |\n| `decode` \u002F `parse` | Source → output format | Yes if the module consumes |\n| `encode` \u002F `render` | Output → source format | Yes if the module produces |\n| `identify` \u002F `validate` | Classify \u002F verify without full parse | Optional but cheap |\n\nThe subcommand is a shell entry point, not a new abstraction. It uses\nthe module's existing functions — never a re-implementation.\n\n### 2. Stdout-first\n\nReader subcommands default to **streaming to stdout** when the\ndestination argument is omitted. This makes them pipe-friendly:\n\n```bash\nmytool codec info foo.bin | head -20\nmytool codec decode foo.bin | jq .header\nmytool codec decode foo.bin | cmp - expected.raw\n```\n\nErrors go to **stderr**, so stdout stays a clean data stream. Exit\ncodes follow standard conventions (0 success, non-zero failure). Do\nnot print decorative banners to stdout in reader commands.\n\n### 3. Module purity\n\nCLI paths keep module dependencies minimal. In practice: a codec\nmodule's CLI entrypoint should not import the application's UI \u002F\nframework layer. The test:\n\n> Can the CLI run in a headless, framework-free environment (CI\n> sandbox, bare container, a naked shell)?\n\nIf yes, the module is pure enough. If no, the module has a UI\ndependency that belongs somewhere else. Prune the import.\n\n### 4. Justfile wrapper per subcommand\n\nOne recipe per subcommand, names: `\u003Cmodule>-\u003Csubcmd>`:\n\n```just\ncodec-info path:\n    @just build\n    .\u002Fbuild\u002Fmytool codec info {{path}}\n\ncodec-decode path:\n    @just build\n    .\u002Fbuild\u002Fmytool codec decode {{path}}\n```\n\nThe recipe declares `build` as a prerequisite so stale binaries never\nhide bugs. Paths resolve against a workspace variable like\n`GAME_ROOT` \u002F `DATA_DIR` \u002F `FIXTURE_DIR` so they work across machines\nand in CI.\n\n### 5. Bulk smoke recipe\n\nPer module, one `\u003Cmodule>-smoke` recipe that iterates every shipped\ninstance of the input format and prints a one-line summary per input:\n\n```just\ncodec-smoke:\n    @just build\n    for f in $(fd -e bin . \"$DATA_DIR\u002Fcodec\"); do \\\n        printf \"%-40s \" \"$(basename $f)\"; \\\n        .\u002Fbuild\u002Fmytool codec info \"$f\" | head -1; \\\n    done\n```\n\nThe bulk recipe catches correctness properties that per-file runs miss:\n\n- \"All N shipped inputs identify as the expected format\" — catches\n  format drift.\n- \"Round-trip against input X is byte-identical\" — catches\n  encode-vs-decode asymmetry.\n- \"Parser never crashes on any shipped input\" — catches the most\n  embarrassing class of bug.\n\n### 6. Same-commit landing\n\nCLI, justfile recipe, and module code ship in **one commit**. If the\nCLI or recipe is deferred to a follow-up, the feature tracker does not\nadvance past \"in progress.\" This is the same discipline as\n`.claude\u002Frules\u002Fdocs-currency.md` applied to the manual-verification\nsurface instead of the docs.\n\n## Detection Heuristic\n\nBefore applying the pattern, confirm the module qualifies:\n\n| Signal | Indicates |\n|--------|-----------|\n| Module has a pure transformation function | Pattern applies |\n| Input \u002F output are serialisable (bytes, text, JSON) | Pattern applies |\n| Module needs UI \u002F framework context to run | Pattern does **not** apply — refactor first |\n| Module is a one-off migration script | Pattern does not apply |\n\n## Quick Reference\n\n### Checklist for new transforming module\n\n- [ ] `info` subcommand exposed\n- [ ] `decode` \u002F `parse` streams to stdout by default\n- [ ] Errors go to stderr\n- [ ] Module import graph excludes UI \u002F framework layer\n- [ ] One justfile recipe per subcommand, `build` prerequisite declared\n- [ ] `\u003Cmodule>-smoke` iterates every shipped input\n- [ ] CLI + recipes + module land in the same commit\n\n### Common Mistakes\n\n| Mistake | Correct Approach |\n|---------|-----------------|\n| Decorative banners on stdout | Stderr only; stdout is data |\n| Running bulk smoke on \"representative\" inputs | Bulk smoke iterates **every** shipped input |\n| CLI imports the UI layer | Refactor; keep CLI path headless |\n| Deferring the smoke recipe to a follow-up | Same-commit or tracker does not advance |\n| Hard-coded absolute paths in recipes | Resolve against a workspace variable |\n\n## Related\n\n- `tools-plugin:justfile-expert` — recipe-authoring mechanics\n- `.claude\u002Frules\u002Fdocs-currency.md` — the same-commit principle this skill mirrors\n- `blueprint-plugin:blueprint-docs-currency` — the docs-side counterpart\n- `agent-patterns-plugin:parallel-agent-dispatch` — smoke recipes are the gate between waves in multi-wave dispatches\n\n> Evidence: the manual-verification surface is the last line of defence\n> before gameplay \u002F real traffic \u002F integration tests exist. Smoke recipes\n> shipped in the same commit as a decoder module caught encoding\n> consistency and round-trip byte-identity on first run — manual\n> exercise had never caught either.\n","# CLI Smoke Recipes\n\nEvery pure-function module that transforms data should be reachable from the shell plus a bulk-smoke recipe that iterates every shipped input. Applies to decoders, codecs, parsers, validators, formatters, compilers, transpilers, linters.\n\n## When to Use This Skill\n\n| Use this skill when… | Skip when… |\n|---------------------|------------|\n| Designing a new module with a clear input → output contract | Internal helper with no stable interface |\n| Adding CLI exposure to an existing library | Code whose only consumer is another in-process module |\n| Authoring justfile recipes for bulk verification | One-off scripts, or recipe syntax generally — use `justfile-expert` |\n| Deciding if a feature is complete | Implementation is purely experimental |\n\n## The Pattern\n\n### 1. CLI exposure\n\nEach transforming module is callable via `\u003Cbin> \u003Cmodule> \u003Csubcmd>`:\n\n| Operation | Pattern | Required? |\n|-----------|---------|-----------|\n| `info` | Pure reader; prints headers \u002F metadata | Yes |\n| `decode` \u002F `parse` | Source → output format | Yes if the module consumes |\n| `encode` \u002F `render` | Output → source format | Yes if the module produces |\n| `identify` \u002F `validate` | Classify \u002F verify without full parse | Optional but cheap |\n\nThe subcommand is a shell entry point, not a new abstraction. It uses\nthe module's existing functions — never a re-implementation.\n\n### 2. Stdout-first\n\nReader subcommands default to **streaming to stdout** when the\ndestination argument is omitted. This makes them pipe-friendly:\n\n```bash\nmytool codec info foo.bin | head -20\nmytool codec decode foo.bin | jq .header\nmytool codec decode foo.bin | cmp - expected.raw\n```\n\nErrors go to **stderr**, so stdout stays a clean data stream. Exit\ncodes follow standard conventions (0 success, non-zero failure). Do\nnot print decorative banners to stdout in reader commands.\n\n### 3. Module purity\n\nCLI paths keep module dependencies minimal. In practice: a codec\nmodule's CLI entrypoint should not import the application's UI \u002F\nframework layer. The test:\n\n> Can the CLI run in a headless, framework-free environment (CI\n> sandbox, bare container, a naked shell)?\n\nIf yes, the module is pure enough. If no, the module has a UI\ndependency that belongs somewhere else. Prune the import.\n\n### 4. Justfile wrapper per subcommand\n\nOne recipe per subcommand, names: `\u003Cmodule>-\u003Csubcmd>`:\n\n```just\ncodec-info path:\n    @just build\n    .\u002Fbuild\u002Fmytool codec info {{path}}\n\ncodec-decode path:\n    @just build\n    .\u002Fbuild\u002Fmytool codec decode {{path}}\n```\n\nThe recipe declares `build` as a prerequisite so stale binaries never\nhide bugs. Paths resolve against a workspace variable like\n`GAME_ROOT` \u002F `DATA_DIR` \u002F `FIXTURE_DIR` so they work across machines\nand in CI.\n\n### 5. Bulk smoke recipe\n\nPer module, one `\u003Cmodule>-smoke` recipe that iterates every shipped\ninstance of the input format and prints a one-line summary per input:\n\n```just\ncodec-smoke:\n    @just build\n    for f in $(fd -e bin . \"$DATA_DIR\u002Fcodec\"); do \\\n        printf \"%-40s \" \"$(basename $f)\"; \\\n        .\u002Fbuild\u002Fmytool codec info \"$f\" | head -1; \\\n    done\n```\n\nThe bulk recipe catches correctness properties that per-file runs miss:\n\n- \"All N shipped inputs identify as the expected format\" — catches\n  format drift.\n- \"Round-trip against input X is byte-identical\" — catches\n  encode-vs-decode asymmetry.\n- \"Parser never crashes on any shipped input\" — catches the most\n  embarrassing class of bug.\n\n### 6. Same-commit landing\n\nCLI, justfile recipe, and module code ship in **one commit**. If the\nCLI or recipe is deferred to a follow-up, the feature tracker does not\nadvance past \"in progress.\" This is the same discipline as\n`.claude\u002Frules\u002Fdocs-currency.md` applied to the manual-verification\nsurface instead of the docs.\n\n## Detection Heuristic\n\nBefore applying the pattern, confirm the module qualifies:\n\n| Signal | Indicates |\n|--------|-----------|\n| Module has a pure transformation function | Pattern applies |\n| Input \u002F output are serialisable (bytes, text, JSON) | Pattern applies |\n| Module needs UI \u002F framework context to run | Pattern does **not** apply — refactor first |\n| Module is a one-off migration script | Pattern does not apply |\n\n## Quick Reference\n\n### Checklist for new transforming module\n\n- [ ] `info` subcommand exposed\n- [ ] `decode` \u002F `parse` streams to stdout by default\n- [ ] Errors go to stderr\n- [ ] Module import graph excludes UI \u002F framework layer\n- [ ] One justfile recipe per subcommand, `build` prerequisite declared\n- [ ] `\u003Cmodule>-smoke` iterates every shipped input\n- [ ] CLI + recipes + module land in the same commit\n\n### Common Mistakes\n\n| Mistake | Correct Approach |\n|---------|-----------------|\n| Decorative banners on stdout | Stderr only; stdout is data |\n| Running bulk smoke on \"representative\" inputs | Bulk smoke iterates **every** shipped input |\n| CLI imports the UI layer | Refactor; keep CLI path headless |\n| Deferring the smoke recipe to a follow-up | Same-commit or tracker does not advance |\n| Hard-coded absolute paths in recipes | Resolve against a workspace variable |\n\n## Related\n\n- `tools-plugin:justfile-expert` — recipe-authoring mechanics\n- `.claude\u002Frules\u002Fdocs-currency.md` — the same-commit principle this skill mirrors\n- `blueprint-plugin:blueprint-docs-currency` — the docs-side counterpart\n- `agent-patterns-plugin:parallel-agent-dispatch` — smoke recipes are the gate between waves in multi-wave dispatches\n\n> Evidence: the manual-verification surface is the last line of defence\n> before gameplay \u002F real traffic \u002F integration tests exist. Smoke recipes\n> shipped in the same commit as a decoder module caught encoding\n> consistency and round-trip byte-identity on first run — manual\n> exercise had never caught either.\n",{"name":5,"model":56,"created":57,"modified":58,"reviewed":57,"description":7,"allowed-tools":59},"sonnet",1776988800000,1786752000000,"Read, Grep, Glob, TodoWrite","main","bdd0582f1a2ba53d21061835bfd72d45f2f954f4","tools-plugin\u002Fskills\u002Fcli-smoke-recipes",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add laurigates\u002Fclaude-plugins --skill cli-smoke-recipes",{"tool":74,"command":75},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill cli-smoke-recipes",{"tool":77,"command":78},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill cli-smoke-recipes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ftools-plugin\u002Fskills\u002Fcli-smoke-recipes\u002FSKILL.md",true,[],[83,91,112,133,149,172],{"skillNo":84,"name":85,"nameZh":17,"description":86,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":92,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":51},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[98,99,100,101,102,103,104,105,106,107,46,37,108,109,110,39,111,42,36,47],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","Bash","file","text","xdg",{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":51},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[101,119,120,121,122,123,37,108,124,125,126,36,47,127,128,129,130,131,132,46],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":134,"name":135,"nameZh":17,"description":136,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":51},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[140,141,101,142,143,103,144,145,104,146,147,46,37,148,108,110,39,126,36,47],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":150,"name":151,"nameZh":17,"description":152,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":51},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[156,157,158,159,160,161,162,163,164,165,46,37,108,166,109,167,168,169,170,171],"docs reference check","check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":178,"categories":179,"keywords":186,"publishedAt":51},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[180,183],{"categoryNo":181,"categoryName":182,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":184,"categoryName":185,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[187,188,189,190,162,191,47,192,128,193,49,194,46,108,109,195,196,37,197,198,199,42,36],"youtube upload","upload","youtube","Video","run","uv run","publishing","uv","api","v3","tags","id","title"]