[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F53KK3YJTQJ7VCYDQ0H7GY":3,"skill-same:01M7F53KK3YJTQJ7VCYDQ0H7GY":52},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7F53KK3YJTQJ7VCYDQ0H7GY","skill-tdd",null,"Build a behavior change with observed red, minimal green, and measured test consolidation","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-tdd\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: skill-tdd\ndescription: \"Build a behavior change with observed red, minimal green, and measured test consolidation\"\ndisable-model-invocation: true\n---\n\n> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n# Test-driven development\n\nRead `skills\u002Fblocks\u002Fengineering-method-selection.md` from the installed plugin\nfor review admission. Natural-language requests and `--peer-review` share that\npolicy. Honor host-only requests; risk alone does not authorize paid usage.\n\nRun the red, green, and refactor cycle on the current host. Routine TDD makes\nzero additional provider dispatches. Use one external reviewer only when the\nuser passes `--peer-review`, explicitly requests independent review, or an\nexisting risk policy requires it. Explicit debate, council, and multi-model\ncommands retain their own execution contracts.\n\n\u003CHARD-GATE>\nNO PRODUCTION BEHAVIOR CHANGE WITHOUT AN OBSERVED, EXPECTED FAILING TEST FIRST.\n\u003C\u002FHARD-GATE>\n\n## The rule\n\nDo not change production behavior until a focused test fails for the expected\nreason. Existing implementation outside the requested change remains intact.\n\n1. Name the observable behavior and the smallest public boundary that proves it.\n2. Write one focused test. Directly test an internal invariant only when the\n   public boundary cannot isolate its failure mode.\n3. Run it and record the expected failure, command, and exit status.\n4. Implement the smallest change that passes.\n5. Run the focused test, then the affected suite.\n6. Refactor only while the tests remain green.\n\nIf a test passes before implementation, it is not red evidence. If it errors due\nto fixture or syntax problems, repair the test until it fails on the missing\nbehavior.\n\n## Consolidating tests\n\nDo not equate similar assertions with duplicate guarantees. Keep separate OS,\nsecurity, cancellation, and integration boundaries. For every removed test,\nrecord `old_test`, `behavior`, `replacement`, `mutant`, `red_observed`,\n`baseline_ms`, `candidate_ms`, and `reason`. The retained test must kill the\nnamed mutant at the intended caller boundary.\n\nAfter one warm-up, measure five isolated runs and report every sample and the\nmedian. Review a slowdown only when it exceeds both 20 percent and 100 ms.\n\nCompletion requires observed red and green evidence, affected-suite results,\nand the consolidation ledger when tests were removed. A missing reviewer is\nreported as incomplete review, never simulated.\n\n## Strategy rotation\n\nIf the same test remains red after two implementation attempts, stop and\nrecheck the test boundary, fixture, and expected behavior. The strategy-rotation\nhook is a signal to try a fundamentally different hypothesis, not another\nvariation of the same patch.\n\nAdapted from `DEEPENING` in `mattpocock\u002Fskills` at commit\n`3cca18b368ae95cdbdebbff572ccafa662551015` under the MIT License. See\n`THIRD_PARTY_NOTICES.md`.\n","> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n# Test-driven development\n\nRead `skills\u002Fblocks\u002Fengineering-method-selection.md` from the installed plugin\nfor review admission. Natural-language requests and `--peer-review` share that\npolicy. Honor host-only requests; risk alone does not authorize paid usage.\n\nRun the red, green, and refactor cycle on the current host. Routine TDD makes\nzero additional provider dispatches. Use one external reviewer only when the\nuser passes `--peer-review`, explicitly requests independent review, or an\nexisting risk policy requires it. Explicit debate, council, and multi-model\ncommands retain their own execution contracts.\n\n\u003CHARD-GATE>\nNO PRODUCTION BEHAVIOR CHANGE WITHOUT AN OBSERVED, EXPECTED FAILING TEST FIRST.\n\u003C\u002FHARD-GATE>\n\n## The rule\n\nDo not change production behavior until a focused test fails for the expected\nreason. Existing implementation outside the requested change remains intact.\n\n1. Name the observable behavior and the smallest public boundary that proves it.\n2. Write one focused test. Directly test an internal invariant only when the\n   public boundary cannot isolate its failure mode.\n3. Run it and record the expected failure, command, and exit status.\n4. Implement the smallest change that passes.\n5. Run the focused test, then the affected suite.\n6. Refactor only while the tests remain green.\n\nIf a test passes before implementation, it is not red evidence. If it errors due\nto fixture or syntax problems, repair the test until it fails on the missing\nbehavior.\n\n## Consolidating tests\n\nDo not equate similar assertions with duplicate guarantees. Keep separate OS,\nsecurity, cancellation, and integration boundaries. For every removed test,\nrecord `old_test`, `behavior`, `replacement`, `mutant`, `red_observed`,\n`baseline_ms`, `candidate_ms`, and `reason`. The retained test must kill the\nnamed mutant at the intended caller boundary.\n\nAfter one warm-up, measure five isolated runs and report every sample and the\nmedian. Review a slowdown only when it exceeds both 20 percent and 100 ms.\n\nCompletion requires observed red and green evidence, affected-suite results,\nand the consolidation ledger when tests were removed. A missing reviewer is\nreported as incomplete review, never simulated.\n\n## Strategy rotation\n\nIf the same test remains red after two implementation attempts, stop and\nrecheck the test boundary, fixture, and expected behavior. The strategy-rotation\nhook is a signal to try a fundamentally different hypothesis, not another\nvariation of the same patch.\n\nAdapted from `DEEPENING` in `mattpocock\u002Fskills` at commit\n`3cca18b368ae95cdbdebbff572ccafa662551015` under the MIT License. See\n`THIRD_PARTY_NOTICES.md`.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fskill-tdd",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-tdd",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-tdd",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-tdd\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",164,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-tdd\u002Fagents\u002Fopenai.yaml",[53,60,65,72,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]