[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4FYDE5A8TYJ18XE3EXPFS":3,"skill-same:01M6C4FYDE5A8TYJ18XE3EXPFS":49},{"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":21,"linkOnly":22,"markdownContent":23,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6C4FYDE5A8TYJ18XE3EXPFS","correct",null,"WHEN preventing a repeated codebase mistake; NOT for one-off hypotheses or writing preferences; proves scoped mechanical enforcement","mintuz\u002Fskills","mintuz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F447031?v=4","01M6BVWJYSVR4XQC9AQCEMWQRG","Adam Bulmer","01M6C4DCXKNYZB281YB3PZDJJG",35,"MIT","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Fcorrect\u002FSKILL.md",[],[5,19,20],"writing","preferences","2026-11-10 10:12:30",false,"---\nname: correct\ndescription: \"WHEN preventing a repeated codebase mistake; NOT for one-off hypotheses or writing preferences; proves scoped mechanical enforcement\"\n---\n\n# Correct\n\nMake a demonstrated recurring codebase mistake harder to express, within the authorized scope.\n\n1. **Establish recurrence.** Read relevant corrections, changes and failures. Cite at least two independent occurrences of the same concrete mistake and its consequence. Copied\u002Fresumed transcripts, a recap of one incident or an unenforced rule alone do not establish recurrence. Separate observed error from suspected cause; insufficient evidence calls for bounded diagnosis, not policy.\n2. **Choose the owner.** Keep one complete correction scoped to the affected behavior. Prefer eliminating the invalid path or duplicate state owner, then domain types, an executable check with an actionable error, then behavior tests. Explain briefly why a higher-level guard is unsuitable. Judgment-only lessons belong to `record-lesson`; prose preferences belong to their writing owner. Stale or misactivated skill instructions belong to their canonical skill\u002Fevaluation\u002Finstall owner, not a product architecture rewrite; use `skill-doctor` when available and apply the repository's skill TDD there.\n3. **Prove enforcement.** Preserve a real prior bad example. Show the old mechanism accepts or misses it, then show the new guard rejects it. The corrected case and legitimate neighboring behavior must pass the same local\u002FCI check. Preserve meaningful empty, absent or undefined outcomes when the contract requires them. A test that only copies implementation details cannot establish enforcement.\n4. **Complete the authorized correction.** Update affected callers and run focused regressions. For existing widespread violations, enforce new violations while naming the remaining migration scope. Keep the executable owner authoritative; any indispensable judgment rule stays small. Do not commit automatically, maintain a standing rule table, impose a blanket exceptions process, or renovate unrelated code.\n\nReport the two evidence locators, chosen guard and scope, old-failure\u002Fnew-enforcement results, valid-case checks and remaining limitations. If execution is unavailable, distinguish the proposed proof from a verified correction.\n","# Correct\n\nMake a demonstrated recurring codebase mistake harder to express, within the authorized scope.\n\n1. **Establish recurrence.** Read relevant corrections, changes and failures. Cite at least two independent occurrences of the same concrete mistake and its consequence. Copied\u002Fresumed transcripts, a recap of one incident or an unenforced rule alone do not establish recurrence. Separate observed error from suspected cause; insufficient evidence calls for bounded diagnosis, not policy.\n2. **Choose the owner.** Keep one complete correction scoped to the affected behavior. Prefer eliminating the invalid path or duplicate state owner, then domain types, an executable check with an actionable error, then behavior tests. Explain briefly why a higher-level guard is unsuitable. Judgment-only lessons belong to `record-lesson`; prose preferences belong to their writing owner. Stale or misactivated skill instructions belong to their canonical skill\u002Fevaluation\u002Finstall owner, not a product architecture rewrite; use `skill-doctor` when available and apply the repository's skill TDD there.\n3. **Prove enforcement.** Preserve a real prior bad example. Show the old mechanism accepts or misses it, then show the new guard rejects it. The corrected case and legitimate neighboring behavior must pass the same local\u002FCI check. Preserve meaningful empty, absent or undefined outcomes when the contract requires them. A test that only copies implementation details cannot establish enforcement.\n4. **Complete the authorized correction.** Update affected callers and run focused regressions. For existing widespread violations, enforce new violations while naming the remaining migration scope. Keep the executable owner authoritative; any indispensable judgment rule stays small. Do not commit automatically, maintain a standing rule table, impose a blanket exceptions process, or renovate unrelated code.\n\nReport the two evidence locators, chosen guard and scope, old-failure\u002Fnew-enforcement results, valid-case checks and remaining limitations. If execution is unavailable, distinguish the proposed proof from a verified correction.\n",{"name":5,"description":7},"main","4e0a12b5048eac78a3ace4feee657873cdd530ef","src\u002Fcore\u002Fskills\u002Fcorrect",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 00:57:20",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mintuz\u002Fskills --skill correct",{"tool":41,"command":42},"bunx","bunx skills add mintuz\u002Fskills --skill correct",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mintuz\u002Fskills --skill correct","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fskills\u002Fcorrect\u002FSKILL.md",true,[],[50,73,96,109,130,147],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":64,"publishedAt":21},"01M6C4PDGB6ZZWBS35N3DF7PZZ","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.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fxstate\u002FSKILL.md",[56,61],{"categoryNo":57,"categoryName":58,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":62,"categoryName":63,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000009","前端开发",[52,65,66,67,68,69,70,71,72],"react","text","state","integrations","Charts","mermaid","testing","open",{"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":87,"publishedAt":21},"01M6C4PB6VVC2X19B63B7YNH0T","web-design","WHEN refining UI layout, typography, color, or polish; NOT code implementation; provides concise principles for intentional, legible design.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Fweb-design\u002FSKILL.md",[79,84],{"categoryNo":80,"categoryName":81,"taxonomyType":82,"taxonomyTypeDesc":83},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",{"categoryNo":85,"categoryName":86,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000015","视觉设计",[88,89,90,91,92,93,94,95],"web","design","web design","code implementation","polish","ui","typography","code",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":103,"publishedAt":21},"01M6C4P8D92GJDA49V7X1CZXEV","tailwind","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.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Ftailwind\u002FSKILL.md",[102],{"categoryNo":85,"categoryName":86,"taxonomyType":59,"taxonomyTypeDesc":60},[104,105,106,107,89,108],"Tailwind","libraries","component","css","design systems",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":118,"publishedAt":21},"01M6C4P5VWQ69Q32DA0634GDJY","refactoring","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",[115],{"categoryNo":116,"categoryName":117,"taxonomyType":59,"taxonomyTypeDesc":60},"01JBSEEDCAT000000000000007","代码审查",[111,119,120,121,122,123,124,125,126,127,95,128,129],"Safety","baseline","refactor","behavior","change","plan","new feature","SET","up","feature delivery","test",{"skillNo":131,"name":65,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":137,"publishedAt":21},"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",[135,136],{"categoryNo":57,"categoryName":58,"taxonomyType":59,"taxonomyTypeDesc":60},{"categoryNo":62,"categoryName":63,"taxonomyType":59,"taxonomyTypeDesc":60},[65,95,107,104,138,71,139,140,141,142,143,67,129,144,145,146],"performance","hooks","components","architecture","api","react components","state management","styling","management",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":155,"publishedAt":21},"01M6C4P0DK385QBG3B3S86TQV2","react-testing","USE WHEN writing, fixing or reviewing a React Testing Library test for a component, hook or context provider, even one small test, or when asked for an end-to-end journey inside a Vitest or React Testing Library suite; NOT WHEN changing the component itself (react), testing XState actors or @xstate\u002Freact (xstate), or writing a Playwright or Cypress test; covers renderHook, providers, async results, forms and false-pass anti-patterns, and declines end-to-end journeys with the testable slices.","https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fweb\u002Fskills\u002Freact-testing\u002FSKILL.md",[153,154],{"categoryNo":57,"categoryName":58,"taxonomyType":59,"taxonomyTypeDesc":60},{"categoryNo":62,"categoryName":63,"taxonomyType":59,"taxonomyTypeDesc":60},[156,71,65,157,139,158,159,160,140,161,162,143],"react testing","anti-patterns","e2e","library","testing library","Providers","context"]