[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NDKM9P78R08M58VAB375F":3,"skill-same:01M75NDKM9P78R08M58VAB375F":50},{"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":34,"updatedAt":35,"install":36,"resources":49},"01M75NDKM9P78R08M58VAB375F","firebase-security-rules",null,"Enforce access control in Firebase Security Rules, never in client code","linktogo\u002Fmaggie","linktogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29751338?v=4","01M75NBAKP44KV5ND0WEE3H87P","Fabien Brunet","01M75NBAMC2TEQQ8FMTBA23MET",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Ffirebase\u002Fsecurity-rules\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: firebase-security-rules\ndescription: Enforce access control in Firebase Security Rules, never in client code\nglobs: [\"firestore.rules\", \"storage.rules\", \"**\u002F*.rules\"]\n---\n\n# Firebase Security Rules\n\nSecurity Rules are the authorization boundary. The client is untrusted — a check\nin your React\u002FNext code is UX, not security.\n\n## Rules\n\n- Default deny. Start from `allow read, write: if false;` and open up only the\n  specific paths and operations each role needs.\n- Authenticate then authorize: gate on `request.auth != null` and then on\n  identity\u002Fownership (`request.auth.uid == resource.data.ownerId`) or a role\n  claim (`request.auth.token.admin == true`).\n- Validate writes in rules: check field types, required fields, and immutability\n  (`request.resource.data.ownerId == resource.data.ownerId`) so a client can't\n  escalate by editing a field.\n- Scope each rule tightly by operation. Split `write` into `create`, `update`,\n  `delete` when they have different conditions.\n- Rules do not filter queries — they authorize document access. A `list` query\n  must be constrained so every returned document satisfies the rule; otherwise it\n  is rejected. Design queries and rules together.\n- Test rules with the emulator (`@firebase\u002Frules-unit-testing`) in CI: assert\n  both the allowed and the denied cases.\n\n## Anti-patterns\n\n- Relying on the app to \"only request the user's own data\" while rules allow any\n  authenticated read.\n- Putting secrets or admin logic behind rules that trust a client-set field.\n- Custom claims changed but never refreshed on the client token (force a token\n  refresh after a role change).\n","# Firebase Security Rules\n\nSecurity Rules are the authorization boundary. The client is untrusted — a check\nin your React\u002FNext code is UX, not security.\n\n## Rules\n\n- Default deny. Start from `allow read, write: if false;` and open up only the\n  specific paths and operations each role needs.\n- Authenticate then authorize: gate on `request.auth != null` and then on\n  identity\u002Fownership (`request.auth.uid == resource.data.ownerId`) or a role\n  claim (`request.auth.token.admin == true`).\n- Validate writes in rules: check field types, required fields, and immutability\n  (`request.resource.data.ownerId == resource.data.ownerId`) so a client can't\n  escalate by editing a field.\n- Scope each rule tightly by operation. Split `write` into `create`, `update`,\n  `delete` when they have different conditions.\n- Rules do not filter queries — they authorize document access. A `list` query\n  must be constrained so every returned document satisfies the rule; otherwise it\n  is rejected. Design queries and rules together.\n- Test rules with the emulator (`@firebase\u002Frules-unit-testing`) in CI: assert\n  both the allowed and the denied cases.\n\n## Anti-patterns\n\n- Relying on the app to \"only request the user's own data\" while rules allow any\n  authenticated read.\n- Putting secrets or admin logic behind rules that trust a client-set field.\n- Custom claims changed but never refreshed on the client token (force a token\n  refresh after a role change).\n",{"name":5,"globs":24,"description":7},[25,26,27],"firestore.rules","storage.rules","**\u002F*.rules","main","d884e3c730aa8243273458fa6d7de64bfd3b8bba","skills\u002Ffirebase\u002Fsecurity-rules","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie","https:\u002F\u002Fgithub.com\u002Flinktogo","http:\u002F\u002Ffabien-brunet.fr\u002F","Software Architect @Capgemini","2026-11-14 21:45:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add linktogo\u002Fmaggie --skill firebase-security-rules",{"tool":42,"command":43},"bunx","bunx skills add linktogo\u002Fmaggie --skill firebase-security-rules",{"tool":45,"command":46},"pnpm","pnpm dlx skills add linktogo\u002Fmaggie --skill firebase-security-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Ffirebase\u002Fsecurity-rules\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M75NEGXZPJFCHAE5P31CQX94","vuejs-state-management","Manage Vue application state with Pinia and the right state locality","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs\u002Fstate-management\u002FSKILL.md",[],[],{"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":64,"publishedAt":19},"01M75NEEHT92D2SPZFEWBMSVX9","vuejs-composition-api","Write Vue 3 components with the Composition API, script setup, and composables","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs\u002Fcomposition-api\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M75NEBQJKWVJG8CYZQQB4BFQ","reactjs-hooks","Use React hooks correctly — dependencies, effects, and custom hooks","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Freactjs\u002Fhooks\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M75NE9V7AYPA9QF9H21TKC08","reactjs-component-design","Write small, composable React components with clean props and no needless state","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Freactjs\u002Fcomponent-design\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75NE64WGJTNTKW3RYVC7394","postgres-query-performance","Diagnose and fix slow PostgreSQL queries with indexes and EXPLAIN","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fpostgres\u002Fquery-performance\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75NE3KGES659BWDAZDM6YQ5","postgres-migrations","Write safe, reversible, zero-downtime PostgreSQL schema migrations","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fpostgres\u002Fmigrations\u002FSKILL.md",[],[]]