[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C9PWBD8YYGW58WC8T4RQJ5":3,"skill-same:01M7C9PWBD8YYGW58WC8T4RQJ5":51},{"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":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7C9PWBD8YYGW58WC8T4RQJ5","tdd",null,"Test-driven development done well. A red-green loop for features at agreed seams, and a regression-first loop for bugs. Use when the user asks for TDD, a failing test, or a regression test, or when the change has an obvious cheap local test target.","NickDabizaz\u002Fskills","NickDabizaz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F94162428?v=4","01M7C9GBYFDJ5SPS3HTM528ATS","Nick","01M7C9GBZ2NQ6YYQN9TJB9E1ZG",0,"MIT","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tdd\ndescription: Test-driven development done well. A red-green loop for features at agreed seams, and a regression-first loop for bugs. Use when the user asks for TDD, a failing test, or a regression test, or when the change has an obvious cheap local test target.\n---\n\n# TDD\n\nBuild behavior test-first. The goal is a test that fails before the change and passes after it, at a seam that survives refactoring.\n\n## Two loops\n\n**Feature loop (red, green, tidy).**\n\n1. Agree the seams first. A seam is where a test calls the code through its public interface. Prefer existing seams, the highest one that still isolates the behavior, and ideally one seam for the change. Confirm the seam with the user in one line before writing a test.\n2. Write the smallest failing test for the next behavior slice. The test encodes intended behavior, not the current implementation.\n3. Run it and confirm it fails for the intended reason.\n4. Write the smallest production change that makes it pass.\n5. Tidy without changing behavior. Refactoring for its own sake belongs to review, not the loop.\n6. Repeat for the next slice, one vertical slice at a time.\n\n**Bug loop (regression first).**\n\n1. Understand the bug: intended behavior, current behavior, affected path, smallest observable reproduction.\n2. Choose the narrowest executable check already used for that code path.\n3. Write the failing test first, encoding intended behavior.\n4. Run it before fixing and confirm it fails for the intended reason. If it passes or fails for an unrelated reason, fix the test first.\n5. Make the smallest production fix.\n6. Rerun to green.\n\n## When a failing test is impractical\n\nIf the only test would need broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, a vague reproduction, or large unrelated fixture churn, skip the new test and use the closest executable regression check instead: a targeted script, a manual reproduction command, browser automation, a snapshot comparison, a log assertion, or a focused integration check. Prefer no new test over a bad test.\n\n## Guardrails\n\n- Test behavior through public interfaces. The `undefined` check: would the test still pass if every imported function returned `undefined`? If so, rewrite it.\n- Do not change tests to match a wrong implementation.\n- Do not weaken assertions unless the expected behavior genuinely changed, and say why.\n- Keep the test focused on the change. No broad fixture churn.\n- If the bug is flaky, make the test deterministic where possible and name the signal being locked down.\n- If the bug exposes a broader class of failures, land the focused regression path first, then consider sibling coverage separately.\n\n## Final response\n\nReport the evidence, not just the outcome:\n\n- The failing-before test or check, and the failure it produced.\n- The passing-after run, and any nearby validation.\n- If failing-before could not be shown, say why and name the closest check used instead.\n","# TDD\n\nBuild behavior test-first. The goal is a test that fails before the change and passes after it, at a seam that survives refactoring.\n\n## Two loops\n\n**Feature loop (red, green, tidy).**\n\n1. Agree the seams first. A seam is where a test calls the code through its public interface. Prefer existing seams, the highest one that still isolates the behavior, and ideally one seam for the change. Confirm the seam with the user in one line before writing a test.\n2. Write the smallest failing test for the next behavior slice. The test encodes intended behavior, not the current implementation.\n3. Run it and confirm it fails for the intended reason.\n4. Write the smallest production change that makes it pass.\n5. Tidy without changing behavior. Refactoring for its own sake belongs to review, not the loop.\n6. Repeat for the next slice, one vertical slice at a time.\n\n**Bug loop (regression first).**\n\n1. Understand the bug: intended behavior, current behavior, affected path, smallest observable reproduction.\n2. Choose the narrowest executable check already used for that code path.\n3. Write the failing test first, encoding intended behavior.\n4. Run it before fixing and confirm it fails for the intended reason. If it passes or fails for an unrelated reason, fix the test first.\n5. Make the smallest production fix.\n6. Rerun to green.\n\n## When a failing test is impractical\n\nIf the only test would need broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, a vague reproduction, or large unrelated fixture churn, skip the new test and use the closest executable regression check instead: a targeted script, a manual reproduction command, browser automation, a snapshot comparison, a log assertion, or a focused integration check. Prefer no new test over a bad test.\n\n## Guardrails\n\n- Test behavior through public interfaces. The `undefined` check: would the test still pass if every imported function returned `undefined`? If so, rewrite it.\n- Do not change tests to match a wrong implementation.\n- Do not weaken assertions unless the expected behavior genuinely changed, and say why.\n- Keep the test focused on the change. No broad fixture churn.\n- If the bug is flaky, make the test deterministic where possible and name the signal being locked down.\n- If the bug exposes a broader class of failures, land the focused regression path first, then consider sibling coverage separately.\n\n## Final response\n\nReport the evidence, not just the outcome:\n\n- The failing-before test or check, and the failure it produced.\n- The passing-after run, and any nearby validation.\n- If failing-before could not be shown, say why and name the closest check used instead.\n",{"name":5,"description":7},"master","51ae6656d3d7922a9936dbec1141eabbaebd95ba","skills\u002Ftdd","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills","https:\u002F\u002Fgithub.com\u002FNickDabizaz","Software Engineer","2026-10-11 18:38:24",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add NickDabizaz\u002Fskills --skill tdd",{"tool":37,"command":38},"bunx","bunx skills add NickDabizaz\u002Fskills --skill tdd",{"tool":40,"command":41},"pnpm","pnpm dlx skills add NickDabizaz\u002Fskills --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Ftdd\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",194,"https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Ftdd\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7C9R9N4GN60KJVQQ31WPST7","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7C9R63ZKDQXGV52K28SPDN2","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7C9R12DH4ME1R65C2Y2MDJY","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7C9QY62QQB3EBC8RSPMD8QF","wayfinder","Plan a huge chunk of work (more than one agent session can hold) 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\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7C9QW7VA5BEN6DFK2ZBKPEK","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7C9QPDH4FGSMFTFN3P9BQ2M","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\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]