[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4KW0HTZH2PMREA8Z7DF9Z":3,"skill-same:01M6C4KW0HTZH2PMREA8Z7DF9Z":57},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6C4KW0HTZH2PMREA8Z7DF9Z","principle-preserve-unrelated-work",null,"WHEN a diff, commit or git action could touch anything outside the request; NOT for deciding whether an action is authorised at all or for syncing with a base branch; keeps unrelated behaviour, worktree changes, data and the index as found.","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\u002Fprinciple\u002Fskills\u002Fprinciple-preserve-unrelated-work\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"work","unrelated","principle preserve unrelated work","commit","git","index","worktree","data","branch","diff","2026-11-10 10:12:30",false,"---\nname: principle-preserve-unrelated-work\ndescription: \"WHEN a diff, commit or git action could touch anything outside the request; NOT for deciding whether an action is authorised at all or for syncing with a base branch; keeps unrelated behaviour, worktree changes, data and the index as found.\"\n---\n\n# Preserve unrelated work\n\nLeave behaviour and edits you were not asked to change.\n\n1. Before writing, read the worktree and index. Treat every change you did not make as someone else's work, even in the file you are editing.\n2. The scope is the whole requested change and the edits it requires: when the request changes an interface, the new interface and the updated callers are in scope. Outside that scope, preserve supported behaviour (outputs, side effects, errors, ordering, concurrency, persistence, compatibility) and user data. Reformatting, renames and tidy-ups elsewhere are separate changes, proposed rather than bundled.\n3. Leave others' worktree changes and the index as found. Stage and commit only your own hunks, and only when asked; when you share a file with someone's edits, select your hunks rather than the whole file. Stash, reset, checkout and discard stay off others' changes.\n4. Before handing over, compare your diff and the index with the starting state. Revert each incidental change, or justify it in the report.\n\nDistinct from: `principle-stay-in-scope` (whether an action is authorised at all), `principle-update-the-base-deliberately` (starting from or syncing with a base), `principle-clean-up-what-you-started` (tearing down resources a run created).\n\nDone: unrelated behaviour, worktree changes and the index are unchanged, or each change is justified.\n","# Preserve unrelated work\n\nLeave behaviour and edits you were not asked to change.\n\n1. Before writing, read the worktree and index. Treat every change you did not make as someone else's work, even in the file you are editing.\n2. The scope is the whole requested change and the edits it requires: when the request changes an interface, the new interface and the updated callers are in scope. Outside that scope, preserve supported behaviour (outputs, side effects, errors, ordering, concurrency, persistence, compatibility) and user data. Reformatting, renames and tidy-ups elsewhere are separate changes, proposed rather than bundled.\n3. Leave others' worktree changes and the index as found. Stage and commit only your own hunks, and only when asked; when you share a file with someone's edits, select your hunks rather than the whole file. Stash, reset, checkout and discard stay off others' changes.\n4. Before handing over, compare your diff and the index with the starting state. Revert each incidental change, or justify it in the report.\n\nDistinct from: `principle-stay-in-scope` (whether an action is authorised at all), `principle-update-the-base-deliberately` (starting from or syncing with a base), `principle-clean-up-what-you-started` (tearing down resources a run created).\n\nDone: unrelated behaviour, worktree changes and the index are unchanged, or each change is justified.\n",{"name":5,"description":7},"main","4e0a12b5048eac78a3ace4feee657873cdd530ef","src\u002Fprinciple\u002Fskills\u002Fprinciple-preserve-unrelated-work",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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add mintuz\u002Fskills --skill principle-preserve-unrelated-work",{"tool":49,"command":50},"bunx","bunx skills add mintuz\u002Fskills --skill principle-preserve-unrelated-work",{"tool":52,"command":53},"pnpm","pnpm dlx skills add mintuz\u002Fskills --skill principle-preserve-unrelated-work","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmintuz\u002Fskills\u002Fblob\u002Fmain\u002Fsrc\u002Fprinciple\u002Fskills\u002Fprinciple-preserve-unrelated-work\u002FSKILL.md",true,[],[58,81,104,117,138,155],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":72,"publishedAt":29},"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",[64,69],{"categoryNo":65,"categoryName":66,"taxonomyType":67,"taxonomyTypeDesc":68},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":70,"categoryName":71,"taxonomyType":67,"taxonomyTypeDesc":68},"01JBSEEDCAT000000000000009","前端开发",[60,73,74,75,76,77,78,79,80],"react","text","state","integrations","Charts","mermaid","testing","open",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":95,"publishedAt":29},"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",[87,92],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",{"categoryNo":93,"categoryName":94,"taxonomyType":67,"taxonomyTypeDesc":68},"01JBSEEDCAT000000000000015","视觉设计",[96,97,98,99,100,101,102,103],"web","design","web design","code implementation","polish","ui","typography","code",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":29},"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",[110],{"categoryNo":93,"categoryName":94,"taxonomyType":67,"taxonomyTypeDesc":68},[112,113,114,115,97,116],"Tailwind","libraries","component","css","design systems",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":126,"publishedAt":29},"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",[123],{"categoryNo":124,"categoryName":125,"taxonomyType":67,"taxonomyTypeDesc":68},"01JBSEEDCAT000000000000007","代码审查",[119,127,128,129,130,131,132,133,134,135,103,136,137],"Safety","baseline","refactor","behavior","change","plan","new feature","SET","up","feature delivery","test",{"skillNo":139,"name":73,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":145,"publishedAt":29},"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",[143,144],{"categoryNo":65,"categoryName":66,"taxonomyType":67,"taxonomyTypeDesc":68},{"categoryNo":70,"categoryName":71,"taxonomyType":67,"taxonomyTypeDesc":68},[73,103,115,112,146,79,147,148,149,150,151,75,137,152,153,154],"performance","hooks","components","architecture","api","react components","state management","styling","management",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":163,"publishedAt":29},"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",[161,162],{"categoryNo":65,"categoryName":66,"taxonomyType":67,"taxonomyTypeDesc":68},{"categoryNo":70,"categoryName":71,"taxonomyType":67,"taxonomyTypeDesc":68},[164,79,73,165,147,166,167,168,148,169,170,151],"react testing","anti-patterns","e2e","library","testing library","Providers","context"]