[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFBHVJA5CGXCJS8KSGN1H3":3,"skill-same:01M7EFBHVJA5CGXCJS8KSGN1H3":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7EFBHVJA5CGXCJS8KSGN1H3","input-contract-tests",null,"Use when adding or changing a public API, CLI command, or module export — cover applicable input classes (empty, invalid\u002Fnegative, overflow, concurrent, exception). Triggers on \"入参契约\", \"input contract\", \"public API tests\". Not for hook\u002Fdetector trigger-semantics (use boundary-testing). Not a default landing gate.","winter6205\u002Farthurpower","winter6205","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F136674824?v=4","01M7EF9EWNYDKHX9MR3AG5QV7A","01M7EF9EXCC1CNFXQNV6PS3M8B",2,"MIT","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Finput-contract-tests\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: input-contract-tests\ndescription: Use when adding or changing a public API, CLI command, or module export — cover applicable input classes (empty, invalid\u002Fnegative, overflow, concurrent, exception). Triggers on \"入参契约\", \"input contract\", \"public API tests\". Not for hook\u002Fdetector trigger-semantics (use boundary-testing). Not a default landing gate.\nbucket: engineering\ntype: technique\n---\n\n# Input Contract Tests\n\nWrite-time checklist for **public entries**: callers outside the module can send dirty input. Nail the promise (reject \u002F tolerate \u002F typed error) with tests. This is not a default review slot and does not dispatch an auditor agent.\n\n## When to use\n\n- New or changed public API \u002F CLI \u002F RPC \u002F exported function that accepts external input\n- A PR clearly missing an input class on a public entry\n- Operator asks for 入参契约 \u002F input-contract coverage\n\nSkip: internal helpers with no external callers; prototypes; generated code; formatting. Hook\u002Fdetector **trigger** drift → `boundary-testing` (sequential axis1 → axis2).\n\n## The five input classes\n\nApply only classes that fit the entry:\n\n| Class              | Meaning                                                     |\n| ------------------ | ----------------------------------------------------------- |\n| empty              | missing \u002F null \u002F blank where a value is required            |\n| invalid \u002F negative | wrong type, illegal enum, negative where forbidden          |\n| overflow           | too long \u002F too large \u002F out of range                         |\n| concurrent         | two callers mutate shared state at once (if relevant)       |\n| exception          | dependency failure surfaces as a typed error, not a swallow |\n\n## Procedure\n\n1. **Name the public entry.** Completion: function\u002Fcommand path stated.\n2. **List applicable classes.** Drop classes that cannot apply; note why. Completion: list written.\n3. **For each listed class — RED then GREEN** under `test-driven-development`. Completion: each class has a test that failed before the handling code (or already existed and still passes).\n4. **Stop.** Do not open a separate audit agent. Optional human re-check: invoke this skill by name on the diff.\n\n## Acceptance Criteria\n\n- [ ] Public entry named\n- [ ] Applicable input classes listed (inapplicable marked N\u002FA)\n- [ ] Each applicable class has a focused test\n- [ ] No default dispatch of a contract-validator agent\n\n## Verification\n\n```\nSkill type: technique\nBar level:  minimum\n```\n\n## See Also\n\n- `test-driven-development` — RED\u002FGREEN discipline for every test you add\n- `boundary-testing` — detector\u002Fhook trigger-semantics smoke (not input classes)\n","# Input Contract Tests\n\nWrite-time checklist for **public entries**: callers outside the module can send dirty input. Nail the promise (reject \u002F tolerate \u002F typed error) with tests. This is not a default review slot and does not dispatch an auditor agent.\n\n## When to use\n\n- New or changed public API \u002F CLI \u002F RPC \u002F exported function that accepts external input\n- A PR clearly missing an input class on a public entry\n- Operator asks for 入参契约 \u002F input-contract coverage\n\nSkip: internal helpers with no external callers; prototypes; generated code; formatting. Hook\u002Fdetector **trigger** drift → `boundary-testing` (sequential axis1 → axis2).\n\n## The five input classes\n\nApply only classes that fit the entry:\n\n| Class              | Meaning                                                     |\n| ------------------ | ----------------------------------------------------------- |\n| empty              | missing \u002F null \u002F blank where a value is required            |\n| invalid \u002F negative | wrong type, illegal enum, negative where forbidden          |\n| overflow           | too long \u002F too large \u002F out of range                         |\n| concurrent         | two callers mutate shared state at once (if relevant)       |\n| exception          | dependency failure surfaces as a typed error, not a swallow |\n\n## Procedure\n\n1. **Name the public entry.** Completion: function\u002Fcommand path stated.\n2. **List applicable classes.** Drop classes that cannot apply; note why. Completion: list written.\n3. **For each listed class — RED then GREEN** under `test-driven-development`. Completion: each class has a test that failed before the handling code (or already existed and still passes).\n4. **Stop.** Do not open a separate audit agent. Optional human re-check: invoke this skill by name on the diff.\n\n## Acceptance Criteria\n\n- [ ] Public entry named\n- [ ] Applicable input classes listed (inapplicable marked N\u002FA)\n- [ ] Each applicable class has a focused test\n- [ ] No default dispatch of a contract-validator agent\n\n## Verification\n\n```\nSkill type: technique\nBar level:  minimum\n```\n\n## See Also\n\n- `test-driven-development` — RED\u002FGREEN discipline for every test you add\n- `boundary-testing` — detector\u002Fhook trigger-semantics smoke (not input classes)\n",{"name":5,"type":23,"bucket":24,"description":7},"technique","engineering","master","1a067ffc9024631d22ca8bf2b47ad81369f28056","arthurpower\u002Fskills\u002Finput-contract-tests",0,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower","https:\u002F\u002Fgithub.com\u002Fwinter6205","2026-10-28 23:46:38",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add winter6205\u002Farthurpower --skill input-contract-tests",{"tool":38,"command":39},"bunx","bunx skills add winter6205\u002Farthurpower --skill input-contract-tests",{"tool":41,"command":42},"pnpm","pnpm dlx skills add winter6205\u002Farthurpower --skill input-contract-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Finput-contract-tests\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fboundary-test-examples.md","REFERENCE","参考文档",2427,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Finput-contract-tests\u002Freferences\u002Fboundary-test-examples.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcriteria.md",703,"https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Finput-contract-tests\u002Freferences\u002Fcriteria.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7EFDX3VT33HSHDA17T9N9JJ","writing-plans","Use when turning a buildable spec into ordered tracer bullets after architecture-change-reviewer. Covers vertical slicing, dependency order, and headroom for the implementer. Triggers on 写计划, 拆任务, 任务分解, 制定方案, 跨文件改动, 计划.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7EFDQV6SGJWDK634DWPFR35","wayfinder","Use when a chunk of work is more than one agent session can hold — plan it as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7EFDM9Y55GKYFGY96088BYB","verification-before-completion","This skill should be used when claiming \"完成\" \u002F \"done\" \u002F \"fixed\" \u002F \"passing\" \u002F \"ready to ship\", before trusting a subagent success report, or when checking \"对照计划\" \u002F \"对照 spec\" — whether this run's delivery matches its basis.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7EFDFCY4V0JMQHSEE34A2JS","using-agent-skills","Use when starting a new session, switching tasks, or unsure which arthurpower skill applies. Routes incoming work to the matching skill via flowchart before invoking. Activates on phrases like \"which skill should I use\", \"skill check\", \"pre-task skill check\", \"how to start\", \"router\", \"skill routing\", or when multiple competing skills could apply. Does not auto-invoke user-invoked authoring skills (skill-authoring, self-evolving-rules).","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fusing-agent-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7EFDB70ATNQASXP4BKDYGA6","test-driven-development","Use when implementing logic, fixing a bug, or changing behavior — write the failing test first (RED), then minimal code (GREEN), then refactor. Triggers on \"write the failing test first\", \"Prove-It\", or a bug that needs a reproduction test before the fix.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7EFD6NPWFG5WSXT0DF07XH1","systematic-debugging","Use when debugging a test failure, build break, unexpected runtime error, flaky test, or hanging process. Triggers on phrases like \"fix this bug\", \"getting an error\", \"failing test\", \"flaky\", \"hanging\", \"halfway through debugging\", \"this used to work\", \"intermittent failure\", \"stack trace shows X\", or any case where behavior does not match expectations. Prevents shotgun debugging.","https:\u002F\u002Fgithub.com\u002Fwinter6205\u002Farthurpower\u002Fblob\u002Fmaster\u002Farthurpower\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]