[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74HHK1QJ5APDRM7WWMC90X9":3,"skill-same:01M74HHK1QJ5APDRM7WWMC90X9":45},{"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":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M74HHK1QJ5APDRM7WWMC90X9","tdd-feature-build",null,"Use when the user describes a NEW feature to add (\"add X to Y\", \"implement Z\", \"build a feature that…\", \"make it possible to…\"). Enforces TDD — failing test first, minimum code to pass, refactor. Refuses to ship code without a test that demonstrably catches its absence. Does NOT trigger on bug fixes (use bug-fix-discipline) or refactors (use test-first-extract). Will ask 1-3 clarifying questions before writing any code; safe to delegate from \u002Ffeature command.","drumfiend21\u002Fclaude-tdd-pro","drumfiend21","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10619389?v=4","01M74HCNYY9VCB2B7FNCSPQSZN","Siddharth Joshi","01M74HCNZHQP883HA9WSN1G6TR",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-feature-build\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: tdd-feature-build\ndescription: Use when the user describes a NEW feature to add (\"add X to Y\", \"implement Z\", \"build a feature that…\", \"make it possible to…\"). Enforces TDD — failing test first, minimum code to pass, refactor. Refuses to ship code without a test that demonstrably catches its absence. Does NOT trigger on bug fixes (use bug-fix-discipline) or refactors (use test-first-extract). Will ask 1-3 clarifying questions before writing any code; safe to delegate from \u002Ffeature command.\n---\n\n# TDD Feature Build\n\nYou are building a new feature using strict test-driven development.\nThe user describes WHAT they want; you decide HOW, and you build it\nthe right way.\n\n## Pre-flight (do this once, before any code)\n\n1. **Read the standards.** Look for `QUALITY-BAR.md` at the project\n   root. If absent, fall back to the plugin's at\n   `${CLAUDE_PLUGIN_ROOT}\u002FQUALITY-BAR.md`. Internalize: naming,\n   formatting, types, error handling, forbidden patterns.\n2. **Read the project's CLAUDE.md** (if present) for any\n   project-specific conventions that override the defaults.\n3. **Detect the test framework.** Look at `package.json` \u002F\n   `pyproject.toml` \u002F existing `*.test.*` files. If no framework\n   is set up at all, STOP and tell the user to run `\u002Finit-guardrails`\n   first — TDD without a test runner is a non-starter.\n4. **Check git state.** If there are uncommitted changes, tell the\n   user and ask whether to (a) commit them as a separate WIP first,\n   (b) stash, or (c) include them in the upcoming feature commits.\n5. **Create a feature branch** from the current HEAD:\n   `git switch -c feature\u002F\u003Cshort-slug>`. Do not work on `main`\u002F`master`.\n\n## Clarifying questions (ask 1–3 before writing any code)\n\nIf the feature is ambiguous in any of these dimensions, ASK before\nproceeding. Do not assume.\n\n- **Behavior boundary**: what does success look like? What are 2-3 happy\n  cases and 2-3 edge cases?\n- **Data shape**: any new state, props, fields, schema changes?\n- **UI surface** (if applicable): where does this appear? Does it need\n  to integrate with existing components or is it standalone?\n- **Persistence**: does this need to survive reload (localStorage \u002F DB)?\n- **Auth scope**: who can do this — anonymous, logged-in, owner-only?\n- **Failure modes**: what should happen on network error \u002F invalid\n  input \u002F concurrent modification?\n\nIf the user has already answered all of these in their request, skip\nto the next section.\n\n## The TDD cycle (one cycle per scenario)\n\nFor each scenario you identified above, run a complete red-green-refactor\ncycle. **Do not write multiple scenarios in one cycle.**\n\n### Red\n\n1. **Write a failing test** that captures exactly this scenario. Use\n   the project's existing test structure as a guide. Apply the strict\n   assertions from `QUALITY-BAR.md`:\n   - `getByRole('button', { name: \u002FSave\u002F })` not `queryAllByText`.\n   - Exact equality where possible; `toHaveLength(N)` not `>= 1` unless\n     duplicates are inherent.\n   - Mock external dependencies (fetch, timers, DOM APIs); never let\n     a unit test hit the network.\n2. **Run the test.** It must fail. Read the failure message — does it\n   fail for the RIGHT reason (the behavior under test isn't there yet)\n   or the WRONG reason (typo, missing import, fixture mismatch)?\n   - Wrong reason → fix the test, re-run, get to the right red.\n   - Right reason → proceed to green.\n\n### Green\n\n3. **Write the minimum code to pass the test.** Not the most general\n   solution, not the most \"correct\" abstraction — the smallest change\n   that turns the red into green. YAGNI applies aggressively here.\n4. **Run the test.** Should pass.\n5. **Run the entire test suite.** Confirm no other tests broke. If\n   they did, your minimum code was too aggressive — pull back.\n\n### Refactor\n\n6. **Look at what you wrote with fresh eyes.** Is there duplication\n   you should remove? A name that's wrong? A type missing? A\n   QUALITY-BAR rule violated?\n7. **Refactor in small steps**, running tests after each. Tests must\n   stay green throughout. Common refactors at this stage:\n   - Extract a helper if you wrote inline logic that has 2+ uses.\n   - Rename for clarity (`x` → `userId`).\n   - Add type annotations where inference is awkward.\n   - Add a comment explaining WHY (never WHAT).\n\n### Commit\n\n8. **Commit the cycle.** Use the format from QUALITY-BAR.md:\n   ```\n   feat(scope): imperative summary\n\n   What changed and why. Behavior visible to user. Trade-offs noted.\n\n   Behavior: …\n   Tests: +N tests covering …; suite NN\u002FNN green.\n\n   Assisted-by: Claude (claude-tdd-pro 0.3.0)\n   ```\n\nRepeat for the next scenario.\n\n## After all scenarios are green\n\n1. **Final lint + format + typecheck + test pass.** Everything must\n   be green. If any step fails, fix it before declaring done.\n2. **Re-read your own diff.** Look for: dead code from refactor,\n   commented-out code, leftover `console.log`, TODOs you forgot to\n   resolve.\n3. **Tell the user the feature is done** with a one-line summary plus\n   the suggestion: `Ready for \u002Fpr.`\n\n## What to refuse \u002F push back on\n\n- **\"Just write it without tests; I'll add them later\"** — refuse.\n  Tests-after almost never happen, and the test isn't a\n  regression-catcher unless it was actually red first. Politely\n  explain and proceed with the test.\n- **\"Don't bother with edge cases for now\"** — push back gently.\n  Identify the most important 1-2 edge cases (null inputs, empty\n  collections, network failure) and at least cover those.\n- **\"Make it work in the existing god-file\"** — push back if the\n  god-file is over ~1000 lines. Suggest the new code goes in a\n  separate file from day one; integrate via import.\n\n## What to delegate\n\nFor multi-scenario autonomous work where the user wants minimal\ninvolvement until PR time, delegate to the `tdd-driver` subagent:\n\"I'm going to delegate this to the tdd-driver agent which will run the\nfull red-green-refactor loop autonomously and report back when ready\nfor \u002Fpr.\"\n","# TDD Feature Build\n\nYou are building a new feature using strict test-driven development.\nThe user describes WHAT they want; you decide HOW, and you build it\nthe right way.\n\n## Pre-flight (do this once, before any code)\n\n1. **Read the standards.** Look for `QUALITY-BAR.md` at the project\n   root. If absent, fall back to the plugin's at\n   `${CLAUDE_PLUGIN_ROOT}\u002FQUALITY-BAR.md`. Internalize: naming,\n   formatting, types, error handling, forbidden patterns.\n2. **Read the project's CLAUDE.md** (if present) for any\n   project-specific conventions that override the defaults.\n3. **Detect the test framework.** Look at `package.json` \u002F\n   `pyproject.toml` \u002F existing `*.test.*` files. If no framework\n   is set up at all, STOP and tell the user to run `\u002Finit-guardrails`\n   first — TDD without a test runner is a non-starter.\n4. **Check git state.** If there are uncommitted changes, tell the\n   user and ask whether to (a) commit them as a separate WIP first,\n   (b) stash, or (c) include them in the upcoming feature commits.\n5. **Create a feature branch** from the current HEAD:\n   `git switch -c feature\u002F\u003Cshort-slug>`. Do not work on `main`\u002F`master`.\n\n## Clarifying questions (ask 1–3 before writing any code)\n\nIf the feature is ambiguous in any of these dimensions, ASK before\nproceeding. Do not assume.\n\n- **Behavior boundary**: what does success look like? What are 2-3 happy\n  cases and 2-3 edge cases?\n- **Data shape**: any new state, props, fields, schema changes?\n- **UI surface** (if applicable): where does this appear? Does it need\n  to integrate with existing components or is it standalone?\n- **Persistence**: does this need to survive reload (localStorage \u002F DB)?\n- **Auth scope**: who can do this — anonymous, logged-in, owner-only?\n- **Failure modes**: what should happen on network error \u002F invalid\n  input \u002F concurrent modification?\n\nIf the user has already answered all of these in their request, skip\nto the next section.\n\n## The TDD cycle (one cycle per scenario)\n\nFor each scenario you identified above, run a complete red-green-refactor\ncycle. **Do not write multiple scenarios in one cycle.**\n\n### Red\n\n1. **Write a failing test** that captures exactly this scenario. Use\n   the project's existing test structure as a guide. Apply the strict\n   assertions from `QUALITY-BAR.md`:\n   - `getByRole('button', { name: \u002FSave\u002F })` not `queryAllByText`.\n   - Exact equality where possible; `toHaveLength(N)` not `>= 1` unless\n     duplicates are inherent.\n   - Mock external dependencies (fetch, timers, DOM APIs); never let\n     a unit test hit the network.\n2. **Run the test.** It must fail. Read the failure message — does it\n   fail for the RIGHT reason (the behavior under test isn't there yet)\n   or the WRONG reason (typo, missing import, fixture mismatch)?\n   - Wrong reason → fix the test, re-run, get to the right red.\n   - Right reason → proceed to green.\n\n### Green\n\n3. **Write the minimum code to pass the test.** Not the most general\n   solution, not the most \"correct\" abstraction — the smallest change\n   that turns the red into green. YAGNI applies aggressively here.\n4. **Run the test.** Should pass.\n5. **Run the entire test suite.** Confirm no other tests broke. If\n   they did, your minimum code was too aggressive — pull back.\n\n### Refactor\n\n6. **Look at what you wrote with fresh eyes.** Is there duplication\n   you should remove? A name that's wrong? A type missing? A\n   QUALITY-BAR rule violated?\n7. **Refactor in small steps**, running tests after each. Tests must\n   stay green throughout. Common refactors at this stage:\n   - Extract a helper if you wrote inline logic that has 2+ uses.\n   - Rename for clarity (`x` → `userId`).\n   - Add type annotations where inference is awkward.\n   - Add a comment explaining WHY (never WHAT).\n\n### Commit\n\n8. **Commit the cycle.** Use the format from QUALITY-BAR.md:\n   ```\n   feat(scope): imperative summary\n\n   What changed and why. Behavior visible to user. Trade-offs noted.\n\n   Behavior: …\n   Tests: +N tests covering …; suite NN\u002FNN green.\n\n   Assisted-by: Claude (claude-tdd-pro 0.3.0)\n   ```\n\nRepeat for the next scenario.\n\n## After all scenarios are green\n\n1. **Final lint + format + typecheck + test pass.** Everything must\n   be green. If any step fails, fix it before declaring done.\n2. **Re-read your own diff.** Look for: dead code from refactor,\n   commented-out code, leftover `console.log`, TODOs you forgot to\n   resolve.\n3. **Tell the user the feature is done** with a one-line summary plus\n   the suggestion: `Ready for \u002Fpr.`\n\n## What to refuse \u002F push back on\n\n- **\"Just write it without tests; I'll add them later\"** — refuse.\n  Tests-after almost never happen, and the test isn't a\n  regression-catcher unless it was actually red first. Politely\n  explain and proceed with the test.\n- **\"Don't bother with edge cases for now\"** — push back gently.\n  Identify the most important 1-2 edge cases (null inputs, empty\n  collections, network failure) and at least cover those.\n- **\"Make it work in the existing god-file\"** — push back if the\n  god-file is over ~1000 lines. Suggest the new code goes in a\n  separate file from day one; integrate via import.\n\n## What to delegate\n\nFor multi-scenario autonomous work where the user wants minimal\ninvolvement until PR time, delegate to the `tdd-driver` subagent:\n\"I'm going to delegate this to the tdd-driver agent which will run the\nfull red-green-refactor loop autonomously and report back when ready\nfor \u002Fpr.\"\n",{"name":5,"description":7},"main","41c38db9b8cf2d5b7743093654a12fdd9cd59c03","skills\u002Ftdd-feature-build","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro","https:\u002F\u002Fgithub.com\u002Fdrumfiend21","http:\u002F\u002Fjungleej.wordpress.com","2026-11-09 20:29:03",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add drumfiend21\u002Fclaude-tdd-pro --skill tdd-feature-build",{"tool":37,"command":38},"bunx","bunx skills add drumfiend21\u002Fclaude-tdd-pro --skill tdd-feature-build",{"tool":40,"command":41},"pnpm","pnpm dlx skills add drumfiend21\u002Fclaude-tdd-pro --skill tdd-feature-build","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-feature-build\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M74HHPZCJM1SJFPMAT28GZ1S","test-first-extract","Use when the user asks to EXTRACT or RELOCATE existing code into its own file, module, or component (\"extract X\", \"split out Y\", \"pull Z into its own file\", \"decompose god-file\"). NOT for net-new features (use tdd-feature-build) or behavior changes (use fix-bug). Enforces the 9-step extraction with isolated unit tests + integration regression tests as a two-tier safety net.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftest-first-extract\u002FSKILL.md",[],[],{"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},"01M74HHEXN1MK9SK9JDGN52YDJ","sync","Multi-machine git-backed sync of local TDD Pro state via the `tdd-pro-sync` branch. Use when operators run claude-tdd-pro on more than one machine and want their FAILURE-LOG, decisions, audit checkpoints, workflow state, operator-curated URL registries, operator\u002Fcommunity trees, and paywalled attestations to follow them between hosts.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fsync\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M74HHBQ8K1FNZ5AXTEGGF8RW","strict-component-tests","Use when writing or reviewing test files. Enforces strict assertions that actually catch regressions (getByRole, exact counts, jest-dom matchers) in contrast to permissive tests (queryAllByText length > 0) that pass against broken UIs. References QUALITY-BAR.md for the canonical strictness rules.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fstrict-component-tests\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"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},"01M74HHA5W00JK570KTA68MRZD","spec","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fspec\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},"01M74HH5HR9S2Q6HRAW0GTXATA","spec-first","Use when the user describes a non-trivial feature or system that should be specified in writing before any code is written. Pattern from Geoffrey Huntley's \"Ralph\" loop, OpenSpec, intent-driven.dev, and Kent Beck's \"augmented coding\" framing — specs+tests are the durable artifact, code is the disposable one. Produces a Markdown spec document that the user reviews; only after approval does any code get written (typically via tdd-feature-build or \u002Ffeature).","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fspec-first\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},"01M74HH0441BWHPTQSDWRPX3ZH","reject-bad-tooling","Use whenever the conversation involves dependency suggestions, CI\u002FCD design, \"automated code improvement,\" lint\u002Fsecurity fixes, or \"tools to make my code better.\" Refuses specific anti-patterns from a prior session that produced more harm than help — and explains why, with the better alternative. Triggers on suggestions of force-fix flags, auto-commit CI workflows, jscodeshift codemods on untested code, fake package names, and similar.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Freject-bad-tooling\u002FSKILL.md",[],[]]