[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E1E37KDVA9STKXF1F8ZAP7":3,"skill-same:01M6E1E37KDVA9STKXF1F8ZAP7":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":13,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6E1E37KDVA9STKXF1F8ZAP7","feature-flags",null,"Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.","7dvq6yrkgs-stack\u002Fplaywright","7dvq6yrkgs-stack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F251638143?v=4","01M6E061J2AMGWYZ6TK7Y8NM74","01M6E061PQCQJGQMPBERMCFN5G",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Ffeature-flags\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"feature flags","flags","feature","test","react","debugging","channel","use","gate","tests","2026-11-10 10:12:30",false,"---\nname: feature-flags\ndescription: Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.\n---\n\n# React Feature Flags\n\n## Flag Files\n\n| File | Purpose |\n|------|---------|\n| `packages\u002Fshared\u002FReactFeatureFlags.js` | Default flags (canary), `__EXPERIMENTAL__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.www.js` | www channel, `__VARIANT__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.native-fb.js` | React Native, `__VARIANT__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.test-renderer.js` | Test renderer |\n\n## Gating Tests\n\n### `@gate` pragma (test-level)\n\nUse when the feature is completely unavailable without the flag:\n\n```javascript\n\u002F\u002F @gate enableViewTransition\nit('supports view transitions', () => {\n  \u002F\u002F This test only runs when enableViewTransition is true\n  \u002F\u002F and is SKIPPED (not failed) when false\n});\n```\n\n### `gate()` inline (assertion-level)\n\nUse when the feature exists but behavior differs based on flag:\n\n```javascript\nit('renders component', async () => {\n  await act(() => root.render(\u003CApp \u002F>));\n\n  if (gate(flags => flags.enableNewBehavior)) {\n    expect(container.textContent).toBe('new output');\n  } else {\n    expect(container.textContent).toBe('legacy output');\n  }\n});\n```\n\n## Adding a New Flag\n\n1. Add to `ReactFeatureFlags.js` with default value\n2. Add to each fork file (`*.www.js`, `*.native-fb.js`, etc.)\n3. If it should vary in www\u002FRN, set to `__VARIANT__` in the fork file\n4. Gate tests with `@gate flagName` or inline `gate()`\n\n## Checking Flag States\n\nUse `\u002Fflags` to view states across channels. See the `flags` skill for full command options.\n\n## `__VARIANT__` Flags (GKs)\n\nFlags set to `__VARIANT__` simulate gatekeepers - tested twice (true and false):\n\n```bash\n\u002Ftest www \u003Cpattern>              # __VARIANT__ = true\n\u002Ftest www variant false \u003Cpattern> # __VARIANT__ = false\n```\n\n## Debugging Channel-Specific Failures\n\n1. Run `\u002Fflags --diff \u003Cchannel1> \u003Cchannel2>` to compare values\n2. Check `@gate` conditions - test may be gated to specific channels\n3. Run `\u002Ftest \u003Cchannel> \u003Cpattern>` to isolate the failure\n4. Verify flag exists in all fork files if newly added\n\n## Common Mistakes\n\n- **Forgetting both variants** - Always test `www` AND `www variant false` for `__VARIANT__` flags\n- **Using @gate for behavior differences** - Use inline `gate()` if both paths should run\n- **Missing fork files** - New flags must be added to ALL fork files, not just the main one\n- **Wrong gate syntax** - It's `gate(flags => flags.name)`, not `gate('name')`\n","# React Feature Flags\n\n## Flag Files\n\n| File | Purpose |\n|------|---------|\n| `packages\u002Fshared\u002FReactFeatureFlags.js` | Default flags (canary), `__EXPERIMENTAL__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.www.js` | www channel, `__VARIANT__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.native-fb.js` | React Native, `__VARIANT__` overrides |\n| `packages\u002Fshared\u002Fforks\u002FReactFeatureFlags.test-renderer.js` | Test renderer |\n\n## Gating Tests\n\n### `@gate` pragma (test-level)\n\nUse when the feature is completely unavailable without the flag:\n\n```javascript\n\u002F\u002F @gate enableViewTransition\nit('supports view transitions', () => {\n  \u002F\u002F This test only runs when enableViewTransition is true\n  \u002F\u002F and is SKIPPED (not failed) when false\n});\n```\n\n### `gate()` inline (assertion-level)\n\nUse when the feature exists but behavior differs based on flag:\n\n```javascript\nit('renders component', async () => {\n  await act(() => root.render(\u003CApp \u002F>));\n\n  if (gate(flags => flags.enableNewBehavior)) {\n    expect(container.textContent).toBe('new output');\n  } else {\n    expect(container.textContent).toBe('legacy output');\n  }\n});\n```\n\n## Adding a New Flag\n\n1. Add to `ReactFeatureFlags.js` with default value\n2. Add to each fork file (`*.www.js`, `*.native-fb.js`, etc.)\n3. If it should vary in www\u002FRN, set to `__VARIANT__` in the fork file\n4. Gate tests with `@gate flagName` or inline `gate()`\n\n## Checking Flag States\n\nUse `\u002Fflags` to view states across channels. See the `flags` skill for full command options.\n\n## `__VARIANT__` Flags (GKs)\n\nFlags set to `__VARIANT__` simulate gatekeepers - tested twice (true and false):\n\n```bash\n\u002Ftest www \u003Cpattern>              # __VARIANT__ = true\n\u002Ftest www variant false \u003Cpattern> # __VARIANT__ = false\n```\n\n## Debugging Channel-Specific Failures\n\n1. Run `\u002Fflags --diff \u003Cchannel1> \u003Cchannel2>` to compare values\n2. Check `@gate` conditions - test may be gated to specific channels\n3. Run `\u002Ftest \u003Cchannel> \u003Cpattern>` to isolate the failure\n4. Verify flag exists in all fork files if newly added\n\n## Common Mistakes\n\n- **Forgetting both variants** - Always test `www` AND `www variant false` for `__VARIANT__` flags\n- **Using @gate for behavior differences** - Use inline `gate()` if both paths should run\n- **Missing fork files** - New flags must be added to ALL fork files, not just the main one\n- **Wrong gate syntax** - It's `gate(flags => flags.name)`, not `gate('name')`\n",{"name":5,"description":7},"main","a2e3284ed4488780397ee2f78217366e11470dfb","skills\u002Ffeature-flags","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright","https:\u002F\u002Fplaywright.dev","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack","2026-04-25 06:04:45",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill feature-flags",{"tool":46,"command":47},"bunx","bunx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill feature-flags",{"tool":49,"command":50},"pnpm","pnpm dlx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill feature-flags","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Ffeature-flags\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},".skillfish.json","REFERENCE","参考文档",224,"https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Ffeature-flags\u002F.skillfish.json",[61,79,87,95,108,118],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":28},"01M6E3XK4PRPMQHM7Y98FQPTY1","zyte-api-automation","Automate Zyte API tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzyte-api-automation\u002FSKILL.md",[],[68,69,70,71,72,73,74,75,76,77,78],"zyte api automation","api","automation","MCP","tasks","search","Tools","first","automate","composio","via",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":28},"01M6E3XFX6QSTR1QR59NFXJTMA","zylvie-automation","Automate Zylvie tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzylvie-automation\u002FSKILL.md",[],[86,70,76,71,72,73,74,75,77,78],"zylvie automation",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":28},"01M6E3XCX2GDYYCHN58ZJHT37M","zoominfo-automation","Automate Zoominfo tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoominfo-automation\u002FSKILL.md",[],[94,70,73,74,75,76,77,78,72,71],"zoominfo automation",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":28},"01M6E3X9WJ2T73216WQHHTB9BD","zoho_mail-automation","Automate Zoho Mail tasks via Rube MCP (Composio): email sending, folders, labels, and mailbox management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_mail-automation\u002FSKILL.md",[],[102,103,104,70,71,72,73,105,74,75,76,106,77,107,78],"mail","zoho mail automation","zoho","email","management","mailbox",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":28},"01M6E3X719W648XZBW1EC6JQ64","zoho_invoice-automation","Automate Zoho Invoice tasks via Rube MCP (Composio): invoices, estimates, expenses, clients, and payment tracking. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_invoice-automation\u002FSKILL.md",[],[115,104,70,72,73,74,75,76,116,117,77,78,71],"zoho invoice automation","tracking","payment",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":28},"01M6E3X28JYTC3QTK32AQF7BYB","zoho_inventory-automation","Automate Zoho Inventory tasks via Rube MCP (Composio): items, orders, warehouses, shipments, and stock management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_inventory-automation\u002FSKILL.md",[],[70,125,104,126,75,76,74,73,72,71,77,78,127,128,106],"inventory","zoho inventory automation","stock","orders"]