[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0E7WKRMCVXQPS8H6QV8HA":3,"skill-same:01M6X0E7WKRMCVXQPS8H6QV8HA":112},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6X0E7WKRMCVXQPS8H6QV8HA","vercel-composition-patterns",null,"React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.","microsoft\u002FHuabu","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6X0DDX0PRP3DDSC7SC0HNAS",183,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"composition patterns","Composition","vercel composition patterns","vercel","patterns","when","components","react composition patterns","with","render","react 19","triggers","reusable","use","react composition","api","component architecture","tasks","architecture","react","2026-11-10 10:12:30",false,"---\nname: vercel-composition-patterns\ndescription:\n  React composition patterns that scale. Use when refactoring components with\n  boolean prop proliferation, building flexible component libraries, or\n  designing reusable APIs. Triggers on tasks involving compound components,\n  render props, context providers, or component architecture. Includes React 19\n  API changes.\nlicense: MIT\nmetadata:\n  author: vercel\n  version: '1.0.0'\n---\n\n# React Composition Patterns\n\nComposition patterns for building flexible, maintainable React components. Avoid\nboolean prop proliferation by using compound components, lifting state, and\ncomposing internals. These patterns make codebases easier for both humans and AI\nagents to work with as they scale.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Refactoring components with many boolean props\n- Building reusable component libraries\n- Designing flexible component APIs\n- Reviewing component architecture\n- Working with compound components or context providers\n\n## Rule Categories by Priority\n\n| Priority | Category                | Impact | Prefix          |\n| -------- | ----------------------- | ------ | --------------- |\n| 1        | Component Architecture  | HIGH   | `architecture-` |\n| 2        | State Management        | MEDIUM | `state-`        |\n| 3        | Implementation Patterns | MEDIUM | `patterns-`     |\n| 4        | React 19 APIs           | MEDIUM | `react19-`      |\n\n## Quick Reference\n\n### 1. Component Architecture (HIGH)\n\n- `architecture-avoid-boolean-props` - Don't add boolean props to customize\n  behavior; use composition\n- `architecture-compound-components` - Structure complex components with shared\n  context\n\n### 2. State Management (MEDIUM)\n\n- `state-decouple-implementation` - Provider is the only place that knows how\n  state is managed\n- `state-context-interface` - Define generic interface with state, actions, meta\n  for dependency injection\n- `state-lift-state` - Move state into provider components for sibling access\n\n### 3. Implementation Patterns (MEDIUM)\n\n- `patterns-explicit-variants` - Create explicit variant components instead of\n  boolean modes\n- `patterns-children-over-render-props` - Use children for composition instead\n  of renderX props\n\n### 4. React 19 APIs (MEDIUM)\n\n> **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.\n\n- `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()`\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Farchitecture-avoid-boolean-props.md\nrules\u002Fstate-context-interface.md\n```\n\nEach rule file contains:\n\n- Brief explanation of why it matters\n- Incorrect code example with explanation\n- Correct code example with explanation\n- Additional context and references\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `AGENTS.md`\n","# React Composition Patterns\n\nComposition patterns for building flexible, maintainable React components. Avoid\nboolean prop proliferation by using compound components, lifting state, and\ncomposing internals. These patterns make codebases easier for both humans and AI\nagents to work with as they scale.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Refactoring components with many boolean props\n- Building reusable component libraries\n- Designing flexible component APIs\n- Reviewing component architecture\n- Working with compound components or context providers\n\n## Rule Categories by Priority\n\n| Priority | Category                | Impact | Prefix          |\n| -------- | ----------------------- | ------ | --------------- |\n| 1        | Component Architecture  | HIGH   | `architecture-` |\n| 2        | State Management        | MEDIUM | `state-`        |\n| 3        | Implementation Patterns | MEDIUM | `patterns-`     |\n| 4        | React 19 APIs           | MEDIUM | `react19-`      |\n\n## Quick Reference\n\n### 1. Component Architecture (HIGH)\n\n- `architecture-avoid-boolean-props` - Don't add boolean props to customize\n  behavior; use composition\n- `architecture-compound-components` - Structure complex components with shared\n  context\n\n### 2. State Management (MEDIUM)\n\n- `state-decouple-implementation` - Provider is the only place that knows how\n  state is managed\n- `state-context-interface` - Define generic interface with state, actions, meta\n  for dependency injection\n- `state-lift-state` - Move state into provider components for sibling access\n\n### 3. Implementation Patterns (MEDIUM)\n\n- `patterns-explicit-variants` - Create explicit variant components instead of\n  boolean modes\n- `patterns-children-over-render-props` - Use children for composition instead\n  of renderX props\n\n### 4. React 19 APIs (MEDIUM)\n\n> **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.\n\n- `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()`\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Farchitecture-avoid-boolean-props.md\nrules\u002Fstate-context-interface.md\n```\n\nEach rule file contains:\n\n- Brief explanation of why it matters\n- Incorrect code example with explanation\n- Correct code example with explanation\n- Additional context and references\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `AGENTS.md`\n",{"name":5,"license":15,"metadata":44,"description":7},{"author":22,"version":45},"1.0.0","main","14822a92c9739f08579ddf2426c56e84909b4ab1",".agents\u002Fskills\u002Fvercel-composition-patterns",26,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu","https:\u002F\u002Fmicrosoft.github.io\u002FHuabu\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 09:40:52",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add microsoft\u002FHuabu --skill vercel-composition-patterns",{"tool":62,"command":63},"bunx","bunx skills add microsoft\u002FHuabu --skill vercel-composition-patterns",{"tool":65,"command":66},"pnpm","pnpm dlx skills add microsoft\u002FHuabu --skill vercel-composition-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",true,[70,76,80,84,88,92,96,100,104,108],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"AGENTS.md","REFERENCE","参考文档",22737,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FAGENTS.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"README.md",2140,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FREADME.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"rules\u002Farchitecture-avoid-boolean-props.md",2271,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Farchitecture-avoid-boolean-props.md",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"rules\u002Farchitecture-compound-components.md",2609,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Farchitecture-compound-components.md",{"path":89,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":90,"sourceHtmlUrl":91},"rules\u002Fpatterns-children-over-render-props.md",1894,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fpatterns-children-over-render-props.md",{"path":93,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":94,"sourceHtmlUrl":95},"rules\u002Fpatterns-explicit-variants.md",2398,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fpatterns-explicit-variants.md",{"path":97,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":98,"sourceHtmlUrl":99},"rules\u002Freact19-no-forwardref.md",962,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Freact19-no-forwardref.md",{"path":101,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":102,"sourceHtmlUrl":103},"rules\u002Fstate-context-interface.md",5000,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-context-interface.md",{"path":105,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":106,"sourceHtmlUrl":107},"rules\u002Fstate-decouple-implementation.md",2714,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-decouple-implementation.md",{"path":109,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":110,"sourceHtmlUrl":111},"rules\u002Fstate-lift-state.md",3260,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-lift-state.md",[113,121,128,135,141,150],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":120},"01M7B9PZ6G3GS0C1746D3EH2PP","paper-scout-setup","Install a Paper Scout into a blank Huabu Space. Use when asked to set up a research-idea and related-work discovery Space. Do not use to run a literature search, review one paper, or overwrite an existing Space.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fspace-kits\u002Fpaper-scout-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":120},"01M7B9PT51SDKGC1R49THGEV2T","paper-reviewer-setup","Install a Paper Reviewer into a blank Huabu Space. Use when asked to set up a paper-reading and bilingual review Space. Do not use to review a paper, search for literature, or overwrite an existing Space.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fspace-kits\u002Fpaper-reviewer-setup\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":120},"01M7B9PNTHEWQGN2A8A68J9J83","issue-tracker-setup","Install an Issue Tracker into a blank Huabu Space from this cloned Kit, or validate its configuration table and create the Coordinator. Use when asked to initialize or finish configuring an Issue Tracker Space. Do not use to investigate or fix repository issues, run the installed Coordinator, or overwrite a non-empty Space.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fspace-kits\u002Fissue-tracker-setup\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":120},"01M7B9PKYV0DMGB1MZ99JD4HER","hackmd","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fapps\u002Fserver\u002Fsrc\u002Fservices\u002Fhackmd\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":39},"01M6X0GC24XV5DQ6NB454JTJQG","web-search","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fapps\u002Fserver\u002Fsrc\u002Fservices\u002Fweb-search\u002FSKILL.md",[],[147,148,149],"web","web search","search",{"skillNo":151,"name":152,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":39},"01M6X0GA59Q0BTYZ2SZYFDR0RC","image-gen","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FHuabu\u002Fblob\u002Fmain\u002Fapps\u002Fserver\u002Fsrc\u002Fservices\u002Fimage-gen\u002FSKILL.md",[],[156,157],"image","image gen"]