[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A08F0JZ1BZBNTXCMH4YFE2":3,"skill-same:01M7A08F0JZ1BZBNTXCMH4YFE2":67},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7A08F0JZ1BZBNTXCMH4YFE2","python-tdd",null,"Drive a change through tight RED → GREEN → REFACTOR cycles using pytest. One failing test, then minimal code to pass, then refactor. Use when coding in python and the user asks for \"TDD\" (\"Test Driven Development\"), says \"test-first\", or wants new behavior added behavior-by-behavior rather than upfront.","Hiryus\u002Fai-harness","Hiryus","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1088028?v=4","01M7A0882BK1C18YWB1XK8NQRZ","01M7A08830EXP6KA8VNEH563K0",1,"MIT","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-tdd\ndescription: Drive a change through tight RED → GREEN → REFACTOR cycles using pytest. One failing test, then minimal code to pass, then refactor. Use when coding in python and the user asks for \"TDD\" (\"Test Driven Development\"), says \"test-first\", or wants new behavior added behavior-by-behavior rather than upfront.\n---\n\n\u003Cwhat-to-do>\nWork one behavior at a time. For eachbehavior, execute _IN THIS ORDER_:\n1. **SCAFFOLD** — if the function to test does not exist yet, create a stub for it with its declaration and a `pass` for all body.\n2. **RED** — write _ONE_ failing pytest test that names a behavior through the public interface. Run it. Confirm it fails for the reason you expect (not an import error, not a typo).\n3. **GREEN** — write the _SMALLEST_ change that makes it pass. No extra fields, no extra branches, no \"while I'm here\". Run the test. Confirm it passes.\n4. **REFACTOR** — only when green. Clean up duplication, deepen the module, rename for clarity.\n5. **CONTROL** — run the full test suit (not only the one you implemented, _ALL_ the tests). Also run linter and type checker. Fix any error before moving to next step.\n\nThen pick the next behavior and repeat.\n\nBefore the first cycle, agree with the user on:\n- the public interface (function signatures, class API, HTTP endpoint shape — whatever the caller sees)\n- the ordered list of behaviors to drive out (3–7 items, prioritised)\n- which behaviors are out of scope for this round\n\nShow that list back to the user and get a yes before writing the first test.\n\u003C\u002Fwhat-to-do>\n\n\u003Csupporting-info>\n\n## The cardinal sin: horizontal slicing\n\n**Do not write all the tests first, then all the code.** That produces tests of imagined behavior — they assert on the shape you guessed before you knew anything. They pass when the system breaks and break when nothing changed.\n\nVertical slices only: one test → one implementation → next test. Each cycle teaches you something that informs the next test.\n\n```\nWRONG (horizontal):\n  RED:   test1, test2, test3, test4, test5\n  GREEN: impl1, impl2, impl3, impl4, impl5\n\nRIGHT (vertical):\n  RED→GREEN: test1 → impl1\n  RED→GREEN: test2 → impl2\n  ...\n```\n\n## Per-cycle checklist\n\nBefore moving to the next behavior:\n- [ ] Test names the behavior, not the mechanism\n- [ ] Test reaches the code only through the public interface\n- [ ] Test would still pass after a plausible internal refactor\n- [ ] Production code is the minimum that satisfies the test\n- [ ] No speculative fields, branches, or abstractions added\n- [ ] Full test file runs green\n- [ ] Refactor pass done (or explicitly skipped this cycle)\n\n## Further reading\n\nLoad on demand, when the cycle calls for it:\n\n- [writing-tests.md](.\u002Fwriting-tests.md) — what makes a good test: behavior over implementation, GIVEN\u002FWHEN\u002FTHEN structure, what not to test, pytest conventions.\n- [mocking.md](.\u002Fmocking.md) — mock at the edges of the system, never inside; prefer fakes over `mock.patch`.\n- [interface-design.md](.\u002Finterface-design.md) — shape production code so tests are easy: dependency injection, return-not-mutate, small surface, SDK-style boundaries.\n- [refactoring.md](.\u002Frefactoring.md) — refactor green code (and tests) using named smells: duplication, long function, shallow module, primitive obsession.\n- [troubleshooting.md](.\u002Ftroubleshooting.md) — symptoms and fixes when the cycle stalls.\n\n\u003C\u002Fsupporting-info>\n","\u003Cwhat-to-do>\nWork one behavior at a time. For eachbehavior, execute _IN THIS ORDER_:\n1. **SCAFFOLD** — if the function to test does not exist yet, create a stub for it with its declaration and a `pass` for all body.\n2. **RED** — write _ONE_ failing pytest test that names a behavior through the public interface. Run it. Confirm it fails for the reason you expect (not an import error, not a typo).\n3. **GREEN** — write the _SMALLEST_ change that makes it pass. No extra fields, no extra branches, no \"while I'm here\". Run the test. Confirm it passes.\n4. **REFACTOR** — only when green. Clean up duplication, deepen the module, rename for clarity.\n5. **CONTROL** — run the full test suit (not only the one you implemented, _ALL_ the tests). Also run linter and type checker. Fix any error before moving to next step.\n\nThen pick the next behavior and repeat.\n\nBefore the first cycle, agree with the user on:\n- the public interface (function signatures, class API, HTTP endpoint shape — whatever the caller sees)\n- the ordered list of behaviors to drive out (3–7 items, prioritised)\n- which behaviors are out of scope for this round\n\nShow that list back to the user and get a yes before writing the first test.\n\u003C\u002Fwhat-to-do>\n\n\u003Csupporting-info>\n\n## The cardinal sin: horizontal slicing\n\n**Do not write all the tests first, then all the code.** That produces tests of imagined behavior — they assert on the shape you guessed before you knew anything. They pass when the system breaks and break when nothing changed.\n\nVertical slices only: one test → one implementation → next test. Each cycle teaches you something that informs the next test.\n\n```\nWRONG (horizontal):\n  RED:   test1, test2, test3, test4, test5\n  GREEN: impl1, impl2, impl3, impl4, impl5\n\nRIGHT (vertical):\n  RED→GREEN: test1 → impl1\n  RED→GREEN: test2 → impl2\n  ...\n```\n\n## Per-cycle checklist\n\nBefore moving to the next behavior:\n- [ ] Test names the behavior, not the mechanism\n- [ ] Test reaches the code only through the public interface\n- [ ] Test would still pass after a plausible internal refactor\n- [ ] Production code is the minimum that satisfies the test\n- [ ] No speculative fields, branches, or abstractions added\n- [ ] Full test file runs green\n- [ ] Refactor pass done (or explicitly skipped this cycle)\n\n## Further reading\n\nLoad on demand, when the cycle calls for it:\n\n- [writing-tests.md](.\u002Fwriting-tests.md) — what makes a good test: behavior over implementation, GIVEN\u002FWHEN\u002FTHEN structure, what not to test, pytest conventions.\n- [mocking.md](.\u002Fmocking.md) — mock at the edges of the system, never inside; prefer fakes over `mock.patch`.\n- [interface-design.md](.\u002Finterface-design.md) — shape production code so tests are easy: dependency injection, return-not-mutate, small surface, SDK-style boundaries.\n- [refactoring.md](.\u002Frefactoring.md) — refactor green code (and tests) using named smells: duplication, long function, shallow module, primitive obsession.\n- [troubleshooting.md](.\u002Ftroubleshooting.md) — symptoms and fixes when the cycle stalls.\n\n\u003C\u002Fsupporting-info>\n",{"name":5,"description":7},"main","128ebf2b2362450e03df530ac98d5d7c23c8465b","skills\u002Fpython-tdd",0,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness","https:\u002F\u002Fgithub.com\u002FHiryus","Professional pentester, casual developer and writer, hardcore gamer.","2026-10-30 06:32:30",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Hiryus\u002Fai-harness --skill python-tdd",{"tool":37,"command":38},"bunx","bunx skills add Hiryus\u002Fai-harness --skill python-tdd",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Hiryus\u002Fai-harness --skill python-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002FSKILL.md",true,[45,51,55,59,63],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"interface-design.md","REFERENCE","参考文档",2390,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002Finterface-design.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"mocking.md",1315,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002Fmocking.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"refactoring.md",1697,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002Frefactoring.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"troubleshooting.md",1287,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002Ftroubleshooting.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"writing-tests.md",2986,"https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fpython-tdd\u002Fwriting-tests.md",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7A08TNXH3X90W7K5V5C2ANX","sharpen-language","Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (LANGUAGE.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fsharpen-language\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7A08QQR2W2HZNF73SE838FA","security-review","Runs a multi-agent workflow to analyze the security of a project or repository with different lenses. Use when the user wants a thorough multi-angle security review for a feature, refactor, or piece of code, e.g. \"review the security of this code base\", \"perform a security audit of the current application\", etc.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7A08PAVQTF223Q0WBJ8BKSS","review","Simple and generic code review.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7A08KDW7G64P9DGXFET9HZA","release-notes","Generate release notes for a new version. Use when the user asks for a changelog, release notes, or a formatted summary of changes in a repository.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Frelease-notes\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M7A08C2XVWZ4SSPYMQGJMZW1","js-tdd","Test-driven development for JavaScript and TypeScript. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fjs-tdd\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M7A08AFN2TWVMYE929MN9GWQ","implement","Simple and generic plan implementation.","https:\u002F\u002Fgithub.com\u002FHiryus\u002Fai-harness\u002Fblob\u002Fmain\u002Fskills\u002Fimplement\u002FSKILL.md",[],[]]