[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72TFDWYKM81RARZ31P977YD":3,"skill-same:01M72TFDWYKM81RARZ31P977YD":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M72TFDWYKM81RARZ31P977YD","cli-for-agents",null,"Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin\u002Fpipelines, fast actionable errors, idempotency, dry-run, and predictable structure. Use when building a CLI, adding commands, writing --help, or when the user mentions agents, terminals, or automation-friendly CLIs.","Mekann2904\u002Fmekann","Mekann2904","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F149444390?v=4","01M72TBR4X3TE5S6305ZXYHZYH","Mekann","01M72TBR5E4BWYB1VBWHTHEG5T",0,"MIT","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fcli-for-agents\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: cli-for-agents\ndescription: >-\n  Designs or reviews CLIs so coding agents can run them reliably: non-interactive\n  flags, layered --help with examples, stdin\u002Fpipelines, fast actionable errors,\n  idempotency, dry-run, and predictable structure. Use when building a CLI,\n  adding commands, writing --help, or when the user mentions agents, terminals,\n  or automation-friendly CLIs.\n---\n\n# CLI for agents\n\nHuman-oriented CLIs often block agents: interactive prompts, huge upfront docs, and help text without copy-pasteable examples. Prefer patterns that work headlessly and compose in pipelines.\n\nIn Pi, build or revise the CLI with `write`\u002F`edit` and confirm its behavior by running it through `bash` (flags, `--help`, pipelines, exit codes). Keep the agent-runnable patterns—non-interactive flags, examples in `--help`, stdin\u002Fpipelines, idempotency, `--dry-run`, actionable errors—front and center.\n\n## Non-interactive first\n\n- Every input should be expressible as a flag or flag value. Do not require arrow keys, menus, or timed prompts.\n- If flags are missing, **then** fall back to interactive mode—not the other way around.\n\n**Bad:** `mycli deploy` → `? Which environment? (use arrow keys)`  \n**Good:** `mycli deploy --env staging`\n\n## Discoverability without dumping context\n\n- Agents discover subcommands incrementally: `mycli`, then `mycli deploy --help`. Do not print the entire manual on every run.\n- Let each subcommand own its documentation so unused commands stay out of context.\n\n## `--help` that works\n\n- Every subcommand has `--help`.\n- Every `--help` includes **Examples** with real invocations. Examples do more than prose for pattern-matching.\n\n```text\nOptions:\n  --env     Target environment (staging, production)\n  --tag     Image tag (default: latest)\n  --force   Skip confirmation\n\nExamples:\n  mycli deploy --env staging\n  mycli deploy --env production --tag v1.2.3\n  mycli deploy --env staging --force\n```\n\n## stdin, flags, and pipelines\n\n- Accept stdin where it makes sense (e.g. `cat config.json | mycli config import --stdin`).\n- Avoid odd positional ordering and avoid falling back to interactive prompts for missing values.\n- Support chaining: `mycli deploy --env staging --tag $(mycli build --output tag-only)`.\n\n## Fail fast with actionable errors\n\n- On missing required flags: exit immediately with a clear message and a **correct example invocation**, not a hang.\n\n```text\nError: No image tag specified.\n  mycli deploy --env staging --tag \u003Cimage-tag>\n  Available tags: mycli build list --output tags\n```\n\n## Idempotency\n\n- Agents retry often. The same successful command run twice should be safe (no-op or explicit \"already done\"), not duplicate side effects.\n\n## Destructive actions\n\n- Add `--dry-run` (or equivalent) so agents can preview plans before committing.\n- Offer `--yes` \u002F `--force` to skip confirmations while keeping the safe default for humans.\n\n## Predictable structure\n\n- Use a consistent pattern everywhere, e.g. `resource` + `verb`: if `mycli service list` exists, `mycli deploy list` and `mycli config list` should follow the same shape.\n\n## Success output\n\n- On success, return machine-useful data: IDs, URLs, durations. Plain text is fine; avoid relying on decorative output alone.\n\n```text\ndeployed v1.2.3 to staging\nurl: https:\u002F\u002Fstaging.myapp.com\ndeploy_id: dep_abc123\nduration: 34s\n```\n\n## When reviewing an existing CLI\n\n- Check: non-interactive path, layered help, examples on `--help`, stdin\u002Fpipeline story, error messages with invocations, idempotency, dry-run, confirmation bypass flags, consistent command structure, structured success output.\n","# CLI for agents\n\nHuman-oriented CLIs often block agents: interactive prompts, huge upfront docs, and help text without copy-pasteable examples. Prefer patterns that work headlessly and compose in pipelines.\n\nIn Pi, build or revise the CLI with `write`\u002F`edit` and confirm its behavior by running it through `bash` (flags, `--help`, pipelines, exit codes). Keep the agent-runnable patterns—non-interactive flags, examples in `--help`, stdin\u002Fpipelines, idempotency, `--dry-run`, actionable errors—front and center.\n\n## Non-interactive first\n\n- Every input should be expressible as a flag or flag value. Do not require arrow keys, menus, or timed prompts.\n- If flags are missing, **then** fall back to interactive mode—not the other way around.\n\n**Bad:** `mycli deploy` → `? Which environment? (use arrow keys)`  \n**Good:** `mycli deploy --env staging`\n\n## Discoverability without dumping context\n\n- Agents discover subcommands incrementally: `mycli`, then `mycli deploy --help`. Do not print the entire manual on every run.\n- Let each subcommand own its documentation so unused commands stay out of context.\n\n## `--help` that works\n\n- Every subcommand has `--help`.\n- Every `--help` includes **Examples** with real invocations. Examples do more than prose for pattern-matching.\n\n```text\nOptions:\n  --env     Target environment (staging, production)\n  --tag     Image tag (default: latest)\n  --force   Skip confirmation\n\nExamples:\n  mycli deploy --env staging\n  mycli deploy --env production --tag v1.2.3\n  mycli deploy --env staging --force\n```\n\n## stdin, flags, and pipelines\n\n- Accept stdin where it makes sense (e.g. `cat config.json | mycli config import --stdin`).\n- Avoid odd positional ordering and avoid falling back to interactive prompts for missing values.\n- Support chaining: `mycli deploy --env staging --tag $(mycli build --output tag-only)`.\n\n## Fail fast with actionable errors\n\n- On missing required flags: exit immediately with a clear message and a **correct example invocation**, not a hang.\n\n```text\nError: No image tag specified.\n  mycli deploy --env staging --tag \u003Cimage-tag>\n  Available tags: mycli build list --output tags\n```\n\n## Idempotency\n\n- Agents retry often. The same successful command run twice should be safe (no-op or explicit \"already done\"), not duplicate side effects.\n\n## Destructive actions\n\n- Add `--dry-run` (or equivalent) so agents can preview plans before committing.\n- Offer `--yes` \u002F `--force` to skip confirmations while keeping the safe default for humans.\n\n## Predictable structure\n\n- Use a consistent pattern everywhere, e.g. `resource` + `verb`: if `mycli service list` exists, `mycli deploy list` and `mycli config list` should follow the same shape.\n\n## Success output\n\n- On success, return machine-useful data: IDs, URLs, durations. Plain text is fine; avoid relying on decorative output alone.\n\n```text\ndeployed v1.2.3 to staging\nurl: https:\u002F\u002Fstaging.myapp.com\ndeploy_id: dep_abc123\nduration: 34s\n```\n\n## When reviewing an existing CLI\n\n- Check: non-interactive path, layered help, examples on `--help`, stdin\u002Fpipeline story, error messages with invocations, idempotency, dry-run, confirmation bypass flags, consistent command structure, structured success output.\n",{"name":5,"description":7},"main","ffd7ea99bf2436d312931261a5616ba93f865f62","mekann\u002Fskills\u002Fcli-for-agents","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann","https:\u002F\u002Fgithub.com\u002FMekann2904","https:\u002F\u002Fblog.mekann.workers.dev","琉大 y23 ","2026-08-07 01:44:53",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Mekann2904\u002Fmekann --skill cli-for-agents",{"tool":38,"command":39},"bunx","bunx skills add Mekann2904\u002Fmekann --skill cli-for-agents",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Mekann2904\u002Fmekann --skill cli-for-agents","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fcli-for-agents\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M72THYFJF13P93N2F0SCN7BF","writing-assistant","Create, edit, and improve articles and technical documents by planning structure, clarifying dependencies, preserving technical accuracy, and tightening prose. Use when the user wants to draft, revise, or improve an article, guide, reference, design document, proposal, or other technical writing.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fwriting-assistant\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M72THVWJNXRBYKRV9KERZETA","triage","Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M72THSWAY2FKT4B2CMPATPPA","to-prd","Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M72THQ5B1G8M2SNFJ1XEZ82N","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M72THMPT2V3TK4FS4512Z7TE","thermo-nuclear-code-quality-review","Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fthermo-nuclear-code-quality-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M72THJ3JCC5F3H02C80WQM9F","teach","Teach the user a new skill or concept through a persistent, source-grounded learning workspace. Use when the user wants multi-session teaching, lessons, exercises, or a structured learning path.","https:\u002F\u002Fgithub.com\u002FMekann2904\u002Fmekann\u002Fblob\u002Fmain\u002Fmekann\u002Fskills\u002Fteach\u002FSKILL.md",[],[]]