[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4H39GQF1R0SDC83RS06K8":3,"skill-same:01M6C4H39GQF1R0SDC83RS06K8":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":17,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6C4H39GQF1R0SDC83RS06K8","tdd","TDD 红绿重构测试驱动开发","WHEN using framework-neutral TDD Red-Green-Refactor in any project; NOT for merely classifying runtime evidence or replacing the project's test framework; proves failing-before and passing-after tests, then assesses refactoring.","当在任何项目中使用与框架无关的 TDD 红-绿-重构方法时；不适用于仅对运行时证据进行分类或替换项目测试框架的场景；先证明测试在修改前失败、修改后通过，再评估重构。","mintuz\u002Fskills","mintuz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F447031?v=4","01M6BVWJYSVR4XQC9AQCEMWQRG","Adam Bulmer","01M6C4DCXKNYZB281YB3PZDJJG",35,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[5,31,32,33,34,35,36],"test","test framework","framework","refactor","refactoring","evidence","2026-11-10 10:12:30",false,"---\nname: tdd\ndescription: WHEN using framework-neutral TDD Red-Green-Refactor in any project; NOT for merely classifying runtime evidence or replacing the project's test framework; proves failing-before and passing-after tests, then assesses refactoring.\n---\n\n# TDD Best Practices\n\n## Core Principle\n\n**Every line of new or changed behaviour must be written in response to a failing test.**\n\nThis is non-negotiable: production code that adds or changes behaviour without a failing test demanding it is not TDD. Refactoring is the one exception: it changes structure while every test stays green, so it demands no new failing test.\n\nOnly an actual failing-before and passing-after behaviour test proves a RED\u002FGREEN cycle. A build, typecheck or static page render does not replace it. Direct interaction with an identified running artifact and its observed effects is valid bounded runtime evidence, but does not retroactively prove TDD. Keep that evidence; if a fix preceded its test, reverse only your own fix, preserve unrelated work, and run the discriminating regression against pre-fix code before reapplying the minimal implementation. Report the command, result and what it proves at each transition (`principle-prove-it-works`).\n\nUse the project's existing runner and test framework across web, iOS, CLI,\nlibrary and service projects. Retain existing XCTest suites, including `measure`\nperformance tests; TDD does not require migration to Swift Testing. Framework\nauthoring belongs to the matching skill or the suite's established conventions.\n\nTreat coverage as a by-product of the required behaviour cases, not a separate\ncoverage-only task. Use a coverage report to discover missing business cases;\nnever add implementation-detail assertions merely to satisfy a percentage.\n\n## The Sacred Cycle: Red → Green → Refactor\n\n### 1. RED - Write a Failing Test\n\nWrite one test that describes the desired behaviour. Run it against the pre-change production code. The test must fail because the behaviour does not exist yet.\n\nA failure that names the absent unit under test is a valid RED: an unresolved import of the module you are about to create, an undefined export you are about to add, or a wrong, missing, or thrown result from the code under test.\n\nAny other failure is a harness fault, not RED: a wrong import path, a typo in the test file, a missing dependency, a broken runner configuration, or a compile error in unrelated code. Repair the harness fault first, preserving unrelated work and every existing test. Rerun the test before you write production code.\n\nNever duplicate an existing test.\n\n**Rules:**\n\n- An unexpected pass is a stop condition. Do not add or adapt the implementation. Inspect the production code and name the reason for the pass: the behaviour already exists, the test is ineffective, or your own production edit is already in the working tree. Strengthen an ineffective test and rerun it. Stop the slice when the behaviour already exists.\n- A pass caused by your own production edit is a false RED, not evidence. Reverse only your own edit, keep the test, and rerun it. Never revert, stash, or reset work you did not write (`principle-preserve-unrelated-work`).\n- Run the narrowest scope that exercises the new test, then confirm the failure is the one you intended. A broad run buries that failure in unrelated output.\n- Start with the simplest behaviour.\n- Test ONE thing at a time. Write the next test only after the current one is green. Record the behaviours still to come as a list or as empty placeholders, never as further written tests.\n- Test business behaviour, not implementation (`principle-test-behavior-not-implementation`).\n- Name tests to document intent.\n- Use fresh, explicit test data: factories in JavaScript\u002FTypeScript; simple local immutable Swift values need no factory. Keep owned-resource lifecycle hooks.\n\n### 2. GREEN - Minimal Implementation\n\nWrite the **minimum** code to make the current test pass. Nothing more.\n\n**Rules:**\n\n- No \"just in case\" logic or speculative features (`principle-foundational-thinking`).\n- If you are writing more than the test needs, STOP and question why.\n- After focused GREEN, run the relevant existing regression suite as a distinct check before declaring the slice safe (`principle-scale-verification`).\n\n### 3. REFACTOR - Assess and Improve\n\nAfter every GREEN, assess whether refactoring would add value: once per behaviour, not once after a batch. If the code is already clean, move on. The `refactoring` skill owns the full procedure; these rules apply in every cycle:\n\n- Secure a reversible GREEN baseline first. Commit the green code when you are allowed to commit; when the user forbids a commit, keep the green state recoverable another way. Never refactor code you cannot restore (`principle-capture-the-baseline`).\n- Assess the changed, covered code before expanding to untested areas. Name the cleanup justified by the available code. If no worthwhile cleanup is justified, say so and leave that code unchanged. Never invent a cleanup to complete the cycle.\n- Refactor only code that green tests already cover. For untested code, first write a characterisation test that records the output the code actually produces today and passes against unchanged production code. Without it, leave the code alone, whether or not it looks trivial.\n- Keep external APIs unchanged and all tests passing.\n- Keep the refactor separate from the behaviour change: a separate commit, or a separate reviewable step when you cannot commit.\n\n## Guides\n\n| Guide | Use for |\n| --- | --- |\n| [workflow-examples.md](references\u002Fworkflow-examples.md) | Full RED-GREEN-REFACTOR walkthroughs (free shipping, payment validation); when to refactor vs move on |\n| [test-factories.md](references\u002Ftest-factories.md) | Factory functions with overrides, why they beat `let`\u002F`beforeEach`, composing factories, organising tests by behaviour, no 1:1 test-to-implementation mapping, 100% coverage through behaviour |\n| [violations.md](references\u002Fviolations.md) | Critical violations, high-priority issues, style issues, behaviour vs implementation examples |\n| [patterns.md](references\u002Fpatterns.md) | Behaviour-focused tests, public-API-only testing, factories with schema validation, composing factories, test naming and organisation |\n\n## Decision Trees\n\n### Should I write this code?\n\n```\nDoes this code add or change behavior?\n├── No (pure refactor under green tests) → Keep every test green\n└── Yes → Is there a failing test demanding it?\n    ├── Yes → Write minimal code to pass\n    └── No → Write the failing test first\n```\n\n### Is my test good?\n\n```\nDoes the test verify a business outcome?\n├── Yes → Does it use the public API only?\n│   ├── Yes → Is its test data fresh and explicit?\n│   │   ├── Yes (JS\u002FTS factories; simple local immutable Swift values also qualify) → Good test ✓\n│   │   └── No → Use factories in JS\u002FTS; remove shared mutable fixtures\n│   └── No → Rewrite to avoid internals\n└── No → Rewrite to focus on behavior\n```\n\n### How much code should I write?\n\n```\nDoes this code make the current failing test pass?\n├── Yes → Is there any code that could be removed\n│         and tests still pass?\n│   ├── Yes → Remove it\n│   └── No → Done\n└── No → Keep writing minimal code\n```\n\n## Checklist Before Committing\n\n- [ ] All new or changed behaviour has a test that demanded it\n- [ ] Tests verify behaviour through the public API only, not implementation details\n- [ ] Implementation is minimal\n- [ ] Refactoring assessment completed\n- [ ] All tests pass\n- [ ] Test data is fresh and explicit. JavaScript\u002FTypeScript fixture data uses factories, not `let` declarations or `beforeEach` builders. Local immutable Swift `let` bindings are valid. Keep legitimate resource lifecycle hooks.\n- [ ] Test names describe business behaviour\n- [ ] Edge cases covered\n- [ ] Test organisation reflects business features\n- [ ] 100% coverage achieved through behaviour testing\n","# TDD Best Practices\n\n## Core Principle\n\n**Every line of new or changed behaviour must be written in response to a failing test.**\n\nThis is non-negotiable: production code that adds or changes behaviour without a failing test demanding it is not TDD. Refactoring is the one exception: it changes structure while every test stays green, so it demands no new failing test.\n\nOnly an actual failing-before and passing-after behaviour test proves a RED\u002FGREEN cycle. A build, typecheck or static page render does not replace it. Direct interaction with an identified running artifact and its observed effects is valid bounded runtime evidence, but does not retroactively prove TDD. Keep that evidence; if a fix preceded its test, reverse only your own fix, preserve unrelated work, and run the discriminating regression against pre-fix code before reapplying the minimal implementation. Report the command, result and what it proves at each transition (`principle-prove-it-works`).\n\nUse the project's existing runner and test framework across web, iOS, CLI,\nlibrary and service projects. Retain existing XCTest suites, including `measure`\nperformance tests; TDD does not require migration to Swift Testing. Framework\nauthoring belongs to the matching skill or the suite's established conventions.\n\nTreat coverage as a by-product of the required behaviour cases, not a separate\ncoverage-only task. Use a coverage report to discover missing business cases;\nnever add implementation-detail assertions merely to satisfy a percentage.\n\n## The Sacred Cycle: Red → Green → Refactor\n\n### 1. RED - Write a Failing Test\n\nWrite one test that describes the desired behaviour. Run it against the pre-change production code. The test must fail because the behaviour does not exist yet.\n\nA failure that names the absent unit under test is a valid RED: an unresolved import of the module you are about to create, an undefined export you are about to add, or a wrong, missing, or thrown result from the code under test.\n\nAny other failure is a harness fault, not RED: a wrong import path, a typo in the test file, a missing dependency, a broken runner configuration, or a compile error in unrelated code. Repair the harness fault first, preserving unrelated work and every existing test. Rerun the test before you write production code.\n\nNever duplicate an existing test.\n\n**Rules:**\n\n- An unexpected pass is a stop condition. Do not add or adapt the implementation. Inspect the production code and name the reason for the pass: the behaviour already exists, the test is ineffective, or your own production edit is already in the working tree. Strengthen an ineffective test and rerun it. Stop the slice when the behaviour already exists.\n- A pass caused by your own production edit is a false RED, not evidence. Reverse only your own edit, keep the test, and rerun it. Never revert, stash, or reset work you did not write (`principle-preserve-unrelated-work`).\n- Run the narrowest scope that exercises the new test, then confirm the failure is the one you intended. A broad run buries that failure in unrelated output.\n- Start with the simplest behaviour.\n- Test ONE thing at a time. Write the next test only after the current one is green. Record the behaviours still to come as a list or as empty placeholders, never as further written tests.\n- Test business behaviour, not implementation (`principle-test-behavior-not-implementation`).\n- Name tests to document intent.\n- Use fresh, explicit test data: factories in JavaScript\u002FTypeScript; simple local immutable Swift values need no factory. Keep owned-resource lifecycle hooks.\n\n### 2. GREEN - Minimal Implementation\n\nWrite the **minimum** code to make the current test pass. Nothing more.\n\n**Rules:**\n\n- No \"just in case\" logic or speculative features (`principle-foundational-thinking`).\n- If you are writing more than the test needs, STOP and question why.\n- After focused GREEN, run the relevant existing regression suite as a distinct check before declaring the slice safe (`principle-scale-verification`).\n\n### 3. REFACTOR - Assess and Improve\n\nAfter every GREEN, assess whether refactoring would add value: once per behaviour, not once after a batch. If the code is already clean, move on. The `refactoring` skill owns the full procedure; these rules apply in every cycle:\n\n- Secure a reversible GREEN baseline first. Commit the green code when you are allowed to commit; when the user forbids a commit, keep the green state recoverable another way. Never refactor code you cannot restore (`principle-capture-the-baseline`).\n- Assess the changed, covered code before expanding to untested areas. Name the cleanup justified by the available code. If no worthwhile cleanup is justified, say so and leave that code unchanged. Never invent a cleanup to complete the cycle.\n- Refactor only code that green tests already cover. For untested code, first write a characterisation test that records the output the code actually produces today and passes against unchanged production code. Without it, leave the code alone, whether or not it looks trivial.\n- Keep external APIs unchanged and all tests passing.\n- Keep the refactor separate from the behaviour change: a separate commit, or a separate reviewable step when you cannot commit.\n\n## Guides\n\n| Guide | Use for |\n| --- | --- |\n| [workflow-examples.md](references\u002Fworkflow-examples.md) | Full RED-GREEN-REFACTOR walkthroughs (free shipping, payment validation); when to refactor vs move on |\n| [test-factories.md](references\u002Ftest-factories.md) | Factory functions with overrides, why they beat `let`\u002F`beforeEach`, composing factories, organising tests by behaviour, no 1:1 test-to-implementation mapping, 100% coverage through behaviour |\n| [violations.md](references\u002Fviolations.md) | Critical violations, high-priority issues, style issues, behaviour vs implementation examples |\n| [patterns.md](references\u002Fpatterns.md) | Behaviour-focused tests, public-API-only testing, factories with schema validation, composing factories, test naming and organisation |\n\n## Decision Trees\n\n### Should I write this code?\n\n```\nDoes this code add or change behavior?\n├── No (pure refactor under green tests) → Keep every test green\n└── Yes → Is there a failing test demanding it?\n    ├── Yes → Write minimal code to pass\n    └── No → Write the failing test first\n```\n\n### Is my test good?\n\n```\nDoes the test verify a business outcome?\n├── Yes → Does it use the public API only?\n│   ├── Yes → Is its test data fresh and explicit?\n│   │   ├── Yes (JS\u002FTS factories; simple local immutable Swift values also qualify) → Good test ✓\n│   │   └── No → Use factories in JS\u002FTS; remove shared mutable fixtures\n│   └── No → Rewrite to avoid internals\n└── No → Rewrite to focus on behavior\n```\n\n### How much code should I write?\n\n```\nDoes this code make the current failing test pass?\n├── Yes → Is there any code that could be removed\n│         and tests still pass?\n│   ├── Yes → Remove it\n│   └── No → Done\n└── No → Keep writing minimal code\n```\n\n## Checklist Before Committing\n\n- [ ] All new or changed behaviour has a test that demanded it\n- [ ] Tests verify behaviour through the public API only, not implementation details\n- [ ] Implementation is minimal\n- [ ] Refactoring assessment completed\n- [ ] All tests pass\n- [ ] Test data is fresh and explicit. JavaScript\u002FTypeScript fixture data uses factories, not `let` declarations or `beforeEach` builders. Local immutable Swift `let` bindings are valid. Keep legitimate resource lifecycle hooks.\n- [ ] Test names describe business behaviour\n- [ ] Edge cases covered\n- [ ] Test organisation reflects business features\n- [ ] 100% coverage achieved through behaviour testing\n",{"name":5,"description":7},"main","4e0a12b5048eac78a3ace4feee657873cdd530ef","src\u002Fcore\u002Fskills\u002Ftdd",7,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmintuz","http:\u002F\u002Fwww.mintuz.com","Working at @monzo, Previously worked at Moonpig, @booking and @bbc","2026-11-13 19:21:11",{"source":9,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add mintuz\u002Fskills --skill tdd",{"tool":57,"command":58},"bunx","bunx skills add mintuz\u002Fskills --skill tdd",{"tool":60,"command":61},"pnpm","pnpm dlx skills add mintuz\u002Fskills --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002FSKILL.md",true,[65,71,75,79],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fpatterns.md","REFERENCE","参考文档",3965,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002Freferences\u002Fpatterns.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ftest-factories.md",5868,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002Freferences\u002Ftest-factories.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fviolations.md",4953,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002Freferences\u002Fviolations.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fworkflow-examples.md",4014,"https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Ftdd\u002Freferences\u002Fworkflow-examples.md",[84,92,113,136,152,173],{"skillNo":85,"name":86,"nameZh":17,"description":87,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7B66DH3EX8C4A3JBAPB1NCY","lens-review","USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens \u002Fcode-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Flens-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":93,"name":94,"nameZh":95,"description":96,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":104,"publishedAt":37},"01M6C4PDGB6ZZWBS35N3DF7PZZ","xstate","XState 状态机建模","WHEN React state changes in response to an external answer — async submit, in-flight or loading flags, retries, cancellation, polling, optimistic updates, stale responses — or to an interaction with an interruptible middle, such as a drag or a gesture; or WHEN building, reviewing, testing, or visualising XState 5 actors and @xstate\u002Freact integrations; NOT for a value one event sets completely, such as a text draft, a focus flag, or a plain open and closed toggle; models typed lifecycles and renders legal Mermaid stateDiagram-v2 charts.","当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程（如拖拽或手势）交互而变化时使用；或在构建、审查、测试或可视化 XState 5 actors 和 @xstate\u002Freact 集成时使用；不适用于单个事件即可完全设定的值，如文本草稿、焦点标志或简单的开关切换；建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fxstate\u002FSKILL.md",[100,101],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":102,"categoryName":103,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[94,105,106,107,108,109,110,111,112],"text","state","integrations","Charts","mermaid","testing","open","react",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":127,"publishedAt":37},"01M6C4PB6VVC2X19B63B7YNH0T","web-design","网页界面设计优化","WHEN refining UI layout, typography, color, or polish; NOT code implementation; provides concise principles for intentional, legible design.","在优化 UI 布局、排版、色彩或细节打磨时使用；不涉及代码实现；提供简洁的原则，以实现有意图、易读的设计。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fweb-design\u002FSKILL.md",[121,124],{"categoryNo":122,"categoryName":123,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":125,"categoryName":126,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1VGZ0ZM4TQHMPD75R2KWQ","用户体验设计",[128,129,130,131,132,133,134,135],"web","design","web design","polish","code implementation","ui","typography","code",{"skillNo":137,"name":138,"nameZh":139,"description":140,"descriptionZh":141,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":146,"publishedAt":37},"01M6C4P8D92GJDA49V7X1CZXEV","tailwind","Tailwind CSS 样式开发","USE WHEN writing, fixing or reviewing styling in a project that uses Tailwind CSS, even a one-class change or a request that does not name Tailwind: colours, focus rings, spacing, class names chosen by a prop, map or CVA variants, theme tokens and dark mode in the Tailwind stylesheet or tailwind.config, setup or upgrades (if unsure whether the project uses Tailwind, check package.json or the main stylesheet first); NOT WHEN writing plain CSS or Sass in a project without Tailwind; produces class names Tailwind can find, syntax for the installed major version, visible focus indicators, and no unrequested dependency or invented brand value.","在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用，即便只是改一个类名，或请求中未提及 Tailwind：颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级（如不确定项目是否使用 Tailwind，先检查 package.json 或主样式表）；不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass；产出的类名能被 Tailwind 识别，语法适配已安装的主版本，具有可见的焦点指示器，且不引入未要求的依赖或杜撰的品牌值。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Ftailwind\u002FSKILL.md",[144,145],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":102,"categoryName":103,"taxonomyType":28,"taxonomyTypeDesc":29},[147,148,149,150,129,151],"Tailwind","libraries","component","css","design systems",{"skillNo":153,"name":35,"nameZh":154,"description":155,"descriptionZh":156,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":157,"categories":158,"keywords":163,"publishedAt":37},"01M6C4P5VWQ69Q32DA0634GDJY","代码重构规划","WHEN you need a plan to refactor, restructure, or clean up working code and the test result is known, either green or a recorded failing set; NOT for new feature delivery or any behavior change; reversible-baseline safety with prioritized improvements.","当你需要制定计划来重构、重组或清理正常工作的代码，且测试结果已知（全绿或已记录的失败集合）时使用；不适用于新功能交付或任何行为变更；以可逆的基线安全性和按优先级排序的改进为核心。","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Frefactoring\u002FSKILL.md",[159,160],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":161,"categoryName":162,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",[35,34,164,165,166,167,135,168,31,169,170,171,172],"baseline","Safety","SET","up","feature delivery","new feature","plan","change","behavior",{"skillNo":174,"name":112,"nameZh":17,"description":175,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":37},"01M6C4P345APEFEX00J8T7QMXQ","USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Freact\u002FSKILL.md",[],[112,179,150,147,180,110,181,135,182,183,184,185,106,31,186,187],"state management","performance","hooks","components","architecture","api","react components","styling","management"]