[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74HGV6DKT6CGAP240KHTHQY":3,"skill-same:01M74HGV6DKT6CGAP240KHTHQY":55},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M74HGV6DKT6CGAP240KHTHQY","react-component-build",null,"Use when scaffolding or modifying React components, especially under the React 19 + Server Components model. Drives a TDD red-green-refactor flow that pairs with the review-react-rsc and review-react-a11y subagents, the four R-3 detectors (a11y-axe, bundle-budget, rsc-boundary, exhaustive-deps), and the R-4 templates (vitest.react.config.ts, playwright.config.ts, size-limit.config.js). Cites at least three g-react-NNN rules so contributors can grep their way to authoritative source files.","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\u002Freact-component-build\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: react-component-build\ndescription: Use when scaffolding or modifying React components, especially under the React 19 + Server Components model. Drives a TDD red-green-refactor flow that pairs with the review-react-rsc and review-react-a11y subagents, the four R-3 detectors (a11y-axe, bundle-budget, rsc-boundary, exhaustive-deps), and the R-4 templates (vitest.react.config.ts, playwright.config.ts, size-limit.config.js). Cites at least three g-react-NNN rules so contributors can grep their way to authoritative source files.\nbudget_impact_estimate: per-component-build runs review-react-rsc + review-react-a11y once each (~2 sonnet calls; ~2k input tokens, ~600 output) plus 4 detector invocations (cost-free local bash). Total cost class fast.\npaths: [\"**\u002F*.tsx\", \"**\u002F*.jsx\"]\n---\n\n# React Component Build (R-5)\n\nYou are scaffolding or modifying a React 19 component. The target may\nbe a server component, a client component, or a hybrid of both. This\nskill drives a TDD-feature-build flow (`tdd-feature-build` skill in\nthis plugin) so the work is red-green-refactor, not write-then-pray.\n\n## When to invoke\n\n- A new component is being created from scratch.\n- An existing component is being modified beyond a one-line tweak.\n- A reviewer flagged an a11y, bundle-size, or RSC-boundary issue and\n  the fix needs structured guidance.\n\n## Authority chain\n\nThis skill defers to the canonical sources:\n\n- **R-2 rules** define what is right and wrong for this codebase.\n  At minimum, this work touches `g-react-001` (RSC boundary\n  integrity), `g-react-002` (exhaustive-deps), `g-react-003`\n  (a11y P1 violations). Components emitting non-trivial JS bundles\n  also touch `g-react-008` (bundle-size budget per route).\n- **R-3 detectors** verify the rules locally:\n  `rubric\u002Fdetectors\u002Fa11y-axe.sh`,\n  `rubric\u002Fdetectors\u002Fbundle-budget.sh`,\n  `rubric\u002Fdetectors\u002Frsc-boundary.sh`,\n  `rubric\u002Fdetectors\u002Fexhaustive-deps.sh`.\n- **R-1 subagents** review the output:\n  `agents\u002Freview-react-rsc.md` (server\u002Fclient boundary review,\n  client-only-import-in-server detection, missing-Suspense), and\n  `agents\u002Freview-react-a11y.md` (WCAG 2.2 success-criterion\n  mapping).\n- **R-4 templates** drop into the target project:\n  `templates\u002Fvitest.react.config.ts`,\n  `templates\u002Fplaywright.config.ts`,\n  `templates\u002Fsize-limit.config.js`.\n  Install via `skills\u002Freact-component-build\u002F_install.sh --target \u003Cdir>`.\n\n## TDD red-green-refactor flow\n\n1. **Red.** Write the failing component test first. Use the\n   `strict-component-tests` skill for assertion guidance — prefer\n   `getByRole({ name })` over text matchers; check render counts\n   when state-management correctness matters; assert against the\n   semantic DOM, never `.foo` CSS classes.\n\n2. **Green.** Implement the minimum component code that turns the\n   test green. Resist adding the second feature in the same iteration.\n\n3. **Detector pass.** Run the four detectors against the changed\n   files (this happens automatically in the `lint-on-save` hook;\n   run manually with `bash rubric\u002Fdetectors\u002F\u003Cname>.sh --paths\n   \"src\u002F**\u002F*.tsx\"`).\n\n4. **Subagent review.** Spawn `review-react-rsc` and\n   `review-react-a11y` for any non-trivial change. Each emits\n   findings in the §2.3 contract shape; address all P0 findings\n   before merging.\n\n5. **Refactor.** With tests green and detectors clean, refactor\n   for clarity: extract, rename, simplify. Tests stay green.\n\n## Patterns this skill enforces\n\n### Suspense around async server components\n\nEvery async server component must be wrapped in a `\u003CSuspense>`\nboundary at a sensible UI seam. Missing Suspense cascades to the\nnearest ancestor and produces a poor loading UX. Pair Suspense\nwith an Error Boundary at the same boundary — async failures need\na recovery path that is explicit, not a white screen.\n\n### Server-only imports stay server-only\n\nFiles marked `\"use client\"` must not import from `node:*`, `fs`,\n`path`, `crypto`, or any package marked `server-only`. The\n`rsc-boundary.sh` detector enforces this; `review-react-rsc`\nexplains the fix.\n\n### Bundle budget per route\n\nFirst-load JS for each route must respect the configured\n`budget_kb` (default 250KB; override per route in\n`size-limit.config.js`). The `bundle-budget.sh` detector exits\nnon-zero when a route exceeds budget, so CI fails the build\nbefore the regression ships.\n\n## Example invocation\n\n```bash\n# 1. Drop templates into a new project\nbash skills\u002Freact-component-build\u002F_install.sh --target .\u002Fmy-app\n\n# 2. Red: write the test\n$EDITOR my-app\u002Fsrc\u002Fcomponents\u002FCard.test.tsx\n\n# 3. Green: write the component\n$EDITOR my-app\u002Fsrc\u002Fcomponents\u002FCard.tsx\n\n# 4. Run detectors locally (mirrors what CI runs)\nbash rubric\u002Fdetectors\u002Frsc-boundary.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fa11y-axe.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fexhaustive-deps.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fbundle-budget.sh --json --paths \"my-app\u002Fdist\u002F_next\u002Fstatic\u002Fchunks\u002Fpages\u002F*.js\"\n```\n","# React Component Build (R-5)\n\nYou are scaffolding or modifying a React 19 component. The target may\nbe a server component, a client component, or a hybrid of both. This\nskill drives a TDD-feature-build flow (`tdd-feature-build` skill in\nthis plugin) so the work is red-green-refactor, not write-then-pray.\n\n## When to invoke\n\n- A new component is being created from scratch.\n- An existing component is being modified beyond a one-line tweak.\n- A reviewer flagged an a11y, bundle-size, or RSC-boundary issue and\n  the fix needs structured guidance.\n\n## Authority chain\n\nThis skill defers to the canonical sources:\n\n- **R-2 rules** define what is right and wrong for this codebase.\n  At minimum, this work touches `g-react-001` (RSC boundary\n  integrity), `g-react-002` (exhaustive-deps), `g-react-003`\n  (a11y P1 violations). Components emitting non-trivial JS bundles\n  also touch `g-react-008` (bundle-size budget per route).\n- **R-3 detectors** verify the rules locally:\n  `rubric\u002Fdetectors\u002Fa11y-axe.sh`,\n  `rubric\u002Fdetectors\u002Fbundle-budget.sh`,\n  `rubric\u002Fdetectors\u002Frsc-boundary.sh`,\n  `rubric\u002Fdetectors\u002Fexhaustive-deps.sh`.\n- **R-1 subagents** review the output:\n  `agents\u002Freview-react-rsc.md` (server\u002Fclient boundary review,\n  client-only-import-in-server detection, missing-Suspense), and\n  `agents\u002Freview-react-a11y.md` (WCAG 2.2 success-criterion\n  mapping).\n- **R-4 templates** drop into the target project:\n  `templates\u002Fvitest.react.config.ts`,\n  `templates\u002Fplaywright.config.ts`,\n  `templates\u002Fsize-limit.config.js`.\n  Install via `skills\u002Freact-component-build\u002F_install.sh --target \u003Cdir>`.\n\n## TDD red-green-refactor flow\n\n1. **Red.** Write the failing component test first. Use the\n   `strict-component-tests` skill for assertion guidance — prefer\n   `getByRole({ name })` over text matchers; check render counts\n   when state-management correctness matters; assert against the\n   semantic DOM, never `.foo` CSS classes.\n\n2. **Green.** Implement the minimum component code that turns the\n   test green. Resist adding the second feature in the same iteration.\n\n3. **Detector pass.** Run the four detectors against the changed\n   files (this happens automatically in the `lint-on-save` hook;\n   run manually with `bash rubric\u002Fdetectors\u002F\u003Cname>.sh --paths\n   \"src\u002F**\u002F*.tsx\"`).\n\n4. **Subagent review.** Spawn `review-react-rsc` and\n   `review-react-a11y` for any non-trivial change. Each emits\n   findings in the §2.3 contract shape; address all P0 findings\n   before merging.\n\n5. **Refactor.** With tests green and detectors clean, refactor\n   for clarity: extract, rename, simplify. Tests stay green.\n\n## Patterns this skill enforces\n\n### Suspense around async server components\n\nEvery async server component must be wrapped in a `\u003CSuspense>`\nboundary at a sensible UI seam. Missing Suspense cascades to the\nnearest ancestor and produces a poor loading UX. Pair Suspense\nwith an Error Boundary at the same boundary — async failures need\na recovery path that is explicit, not a white screen.\n\n### Server-only imports stay server-only\n\nFiles marked `\"use client\"` must not import from `node:*`, `fs`,\n`path`, `crypto`, or any package marked `server-only`. The\n`rsc-boundary.sh` detector enforces this; `review-react-rsc`\nexplains the fix.\n\n### Bundle budget per route\n\nFirst-load JS for each route must respect the configured\n`budget_kb` (default 250KB; override per route in\n`size-limit.config.js`). The `bundle-budget.sh` detector exits\nnon-zero when a route exceeds budget, so CI fails the build\nbefore the regression ships.\n\n## Example invocation\n\n```bash\n# 1. Drop templates into a new project\nbash skills\u002Freact-component-build\u002F_install.sh --target .\u002Fmy-app\n\n# 2. Red: write the test\n$EDITOR my-app\u002Fsrc\u002Fcomponents\u002FCard.test.tsx\n\n# 3. Green: write the component\n$EDITOR my-app\u002Fsrc\u002Fcomponents\u002FCard.tsx\n\n# 4. Run detectors locally (mirrors what CI runs)\nbash rubric\u002Fdetectors\u002Frsc-boundary.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fa11y-axe.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fexhaustive-deps.sh --json --paths \"my-app\u002Fsrc\u002F**\u002F*.tsx\"\nbash rubric\u002Fdetectors\u002Fbundle-budget.sh --json --paths \"my-app\u002Fdist\u002F_next\u002Fstatic\u002Fchunks\u002Fpages\u002F*.js\"\n```\n",{"name":5,"paths":24,"description":7,"budget_impact_estimate":27},[25,26],"**\u002F*.tsx","**\u002F*.jsx","per-component-build runs review-react-rsc + review-react-a11y once each (~2 sonnet calls; ~2k input tokens, ~600 output) plus 4 detector invocations (cost-free local bash). Total cost class fast.","main","41c38db9b8cf2d5b7743093654a12fdd9cd59c03","skills\u002Freact-component-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":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add drumfiend21\u002Fclaude-tdd-pro --skill react-component-build",{"tool":41,"command":42},"bunx","bunx skills add drumfiend21\u002Fclaude-tdd-pro --skill react-component-build",{"tool":44,"command":45},"pnpm","pnpm dlx skills add drumfiend21\u002Fclaude-tdd-pro --skill react-component-build","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Freact-component-build\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"_install.sh","SCRIPT","脚本",1015,"https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Freact-component-build\u002F_install.sh",[56,63,70,77,84,90],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M74HHK1QJ5APDRM7WWMC90X9","tdd-feature-build","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.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-feature-build\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"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":87,"categories":88,"keywords":89,"publishedAt":19},"01M74HHA5W00JK570KTA68MRZD","spec","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fspec\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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",[],[]]