[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DE4SVCV7PWPKQ7K3DBMWQY":3,"skill-same:01M7DE4SVCV7PWPKQ7K3DBMWQY":96},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7DE4SVCV7PWPKQ7K3DBMWQY","coding-standard",null,"Use when designing, implementing, or reviewing an agent-friendly CLI, including commands, flags, help text, output, errors, and safety behavior.","pascalandy\u002Fskills","pascalandy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6694151?v=4","01M7DDRR1T4AMR6J3FV6RHHV5M","Pascal Andy","01M7DDRR2B04BJ8S7QZYZV1WFK",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"coding-standard\"\ndescription: \"Use when designing, implementing, or reviewing an agent-friendly CLI, including commands, flags, help text, output, errors, and safety behavior.\"\nkind: \"dev\"\nkeywords: [\"cli\", \"cli-spec\", \"cli-design\", \"cli-implementation\", \"cli-audit\", \"agent-friendly\", \"composability\", \"idempotent\", \"retry-safe\"]\n---\n\n# Coding Standard\n\nLanguage-agnostic coding disciplines: what good design looks like, regardless of implementation language.\n\n## Output contract\n\nEvery script and CLI answers in one compact JSON line. [script-output](https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fdocs\u002Freferences\u002Fscript-output.md) holds the rule, how to read the answer, and why; read it before you design or change what a command prints. It overrides the sub-skills' advice on output, such as a silent success or an opt-in `--json`.\n\n- Everything passed: `{\"ok\":true}` on stdout, exit 0\n- Anything else: stdout stays empty, the last line of stderr is `{\"ok\":false,\"errors\":[\"…\"]}`, and the exit code is not 0. Each error says what failed and the command that fixes it\n- A warning that needs action fails the command; other detail moves to `-v`\n- Data beside `ok` only when it is the command's job: a list, a dry run, `changes` such as `[[\"add\",\"path\"]]`, or the `file` a content command wrote\n- `--help` stays text\n\n## Sub-skills\n\nWhen the user or project supplies its own CLI contract, follow it; use these sub-skills only for what it leaves open. Load the file of the row that matches the request:\n\n| Request | Load |\n|---|---|\n| Write a CLI spec that designs the surface and parameters before implementing, or refactors an existing surface: command tree, args and flags tables, output rules, exit code map, config precedence, examples, from a condensed [clig.dev](https:\u002F\u002Fclig.dev\u002F) rubric | [references\u002FCliSpec\u002FMetaSkill.md](references\u002FCliSpec\u002FMetaSkill.md) |\n| Build or implement a CLI, or review its code or UX: I\u002FO streams, help text, output, errors, argument parsing, interactivity, subcommands, robustness, signals, configuration, env vars, naming, distribution, and a 100+ item stress-test checklist | [references\u002FCliImpl\u002FMetaSkill.md](references\u002FCliImpl\u002FMetaSkill.md) |\n| Audit a CLI for agent-friendliness: requirements, structured output, composability and pipelines, all inputs via flags, idempotent and retry-safe commands, non-interactive operation, operability, errors resolvable in one attempt, safety checks with `--dry-run` and `--force` | [references\u002FCliAudit\u002FMetaSkill.md](references\u002FCliAudit\u002FMetaSkill.md) |\n\n## Out of scope\n\n- Language syntax, idioms, tooling, package managers, and framework patterns: use `coding-language`\n\n## Credits\n\n- CLI Guidelines -- [clig.dev](https:\u002F\u002Fclig.dev\u002F) by Aanand Prasad, Ben Firshman, Carl Tashian, Eva Parish\n- Agent-friendly requirements -- adapted from [agent-scripts](https:\u002F\u002Fgithub.com\u002Fsteipete\u002Fagent-scripts) by Peter Steinberger\n","# Coding Standard\n\nLanguage-agnostic coding disciplines: what good design looks like, regardless of implementation language.\n\n## Output contract\n\nEvery script and CLI answers in one compact JSON line. [script-output](https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fdocs\u002Freferences\u002Fscript-output.md) holds the rule, how to read the answer, and why; read it before you design or change what a command prints. It overrides the sub-skills' advice on output, such as a silent success or an opt-in `--json`.\n\n- Everything passed: `{\"ok\":true}` on stdout, exit 0\n- Anything else: stdout stays empty, the last line of stderr is `{\"ok\":false,\"errors\":[\"…\"]}`, and the exit code is not 0. Each error says what failed and the command that fixes it\n- A warning that needs action fails the command; other detail moves to `-v`\n- Data beside `ok` only when it is the command's job: a list, a dry run, `changes` such as `[[\"add\",\"path\"]]`, or the `file` a content command wrote\n- `--help` stays text\n\n## Sub-skills\n\nWhen the user or project supplies its own CLI contract, follow it; use these sub-skills only for what it leaves open. Load the file of the row that matches the request:\n\n| Request | Load |\n|---|---|\n| Write a CLI spec that designs the surface and parameters before implementing, or refactors an existing surface: command tree, args and flags tables, output rules, exit code map, config precedence, examples, from a condensed [clig.dev](https:\u002F\u002Fclig.dev\u002F) rubric | [references\u002FCliSpec\u002FMetaSkill.md](references\u002FCliSpec\u002FMetaSkill.md) |\n| Build or implement a CLI, or review its code or UX: I\u002FO streams, help text, output, errors, argument parsing, interactivity, subcommands, robustness, signals, configuration, env vars, naming, distribution, and a 100+ item stress-test checklist | [references\u002FCliImpl\u002FMetaSkill.md](references\u002FCliImpl\u002FMetaSkill.md) |\n| Audit a CLI for agent-friendliness: requirements, structured output, composability and pipelines, all inputs via flags, idempotent and retry-safe commands, non-interactive operation, operability, errors resolvable in one attempt, safety checks with `--dry-run` and `--force` | [references\u002FCliAudit\u002FMetaSkill.md](references\u002FCliAudit\u002FMetaSkill.md) |\n\n## Out of scope\n\n- Language syntax, idioms, tooling, package managers, and framework patterns: use `coding-language`\n\n## Credits\n\n- CLI Guidelines -- [clig.dev](https:\u002F\u002Fclig.dev\u002F) by Aanand Prasad, Ben Firshman, Carl Tashian, Eva Parish\n- Agent-friendly requirements -- adapted from [agent-scripts](https:\u002F\u002Fgithub.com\u002Fsteipete\u002Fagent-scripts) by Peter Steinberger\n",{"kind":24,"name":5,"keywords":25,"description":7},"dev",[26,27,28,29,30,31,32,33,34],"cli","cli-spec","cli-design","cli-implementation","cli-audit","agent-friendly","composability","idempotent","retry-safe","main","c2b929d1a54305e77aad0296872e90e08d68a637","skills\u002Fcoding-standard",1,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills","https:\u002F\u002Fgithub.com\u002Fpascalandy","https:\u002F\u002Fblog.pascalandy.com","The question: how can I build the default one-stop place where entrepreneurs can start their mobile-first websites and blog? Psst psst… play-with-ghost.com","2026-11-15 03:34:59",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add pascalandy\u002Fskills --skill coding-standard",{"tool":50,"command":51},"bunx","bunx skills add pascalandy\u002Fskills --skill coding-standard",{"tool":53,"command":54},"pnpm","pnpm dlx skills add pascalandy\u002Fskills --skill coding-standard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002FSKILL.md",true,[58,64,68,72,76,80,84,88,92],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002FCliAudit\u002FMetaSkill.md","REFERENCE","参考文档",8964,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliAudit\u002FMetaSkill.md",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002FCliImpl\u002FMetaSkill.md",6702,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliImpl\u002FMetaSkill.md",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002FCliImpl\u002Freferences\u002Fchecklist.md",6315,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliImpl\u002Freferences\u002Fchecklist.md",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002FCliImpl\u002Freferences\u002Ffull-guidelines.md",70986,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliImpl\u002Freferences\u002Ffull-guidelines.md",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002FCliImpl\u002Freferences\u002FHigh-Level Concepts.md",1640,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliImpl\u002Freferences\u002FHigh-Level Concepts.md",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002FCliImpl\u002Freferences\u002Findex.md",911,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliImpl\u002Freferences\u002Findex.md",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002FCliSpec\u002FMetaSkill.md",3960,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliSpec\u002FMetaSkill.md",{"path":89,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002FCliSpec\u002Freferences\u002Fcli-guidelines.md",8993,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliSpec\u002Freferences\u002Fcli-guidelines.md",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002FCliSpec\u002Freferences\u002Fsource.md",71,"https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-standard\u002Freferences\u002FCliSpec\u002Freferences\u002Fsource.md",[97,104,111,118,125,132],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DEA67FREYEGQJYTWD9D0GB","writing-great-skills","Use when creating, modifying, evaluating a skill.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DEA3ZN566HSV6YJ8KPE824","writing-for-agents","Use when creating, editing, or reviewing a skill, AGENTS.md, CLAUDE.md, or another document agents read.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7DEA0FRE0FEYV9XS0YTTBPJ","why","Use for questions about design rationale, the history of regressions or incidents, or the evidence behind thresholds and tradeoffs. Use `how` for runtime behavior. Do not use for plain commit or date lookups.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7DE9XVZASJS9PC1A5BVMVHG","verify-video-archive","Use when validating the macOS or Linux archive workflow reached by `just convert-video`, including real media, prerequisites, terminal progress, source safety, locking, and recovery.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-video-archive\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M7DE9VTG6ZEQH1M10J66T8MR","verify-transcript","Use when validating transcript CLI behavior, locating its verification features, or running the paid YouTube end-to-end check.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-transcript\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M7DE9RWQ6WNVG455HQFHVNFR","verify-skills","Use when verifying `just compile-skills`, `just remote-skills`, `just install-skills`, or `just skills-discover` in the skills repository, such as after changing their scripts or adding, renaming, or moving a skill.","https:\u002F\u002Fgithub.com\u002Fpascalandy\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-skills\u002FSKILL.md",[],[]]