[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KWPB27V5GP2FDM4BVFHFXZ":3,"skill-same:01M6KWPB27V5GP2FDM4BVFHFXZ":124},{"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":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":13,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6KWPB27V5GP2FDM4BVFHFXZ","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.","PhopCMU\u002FCheckin-Client-V2","PhopCMU","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F245412936?v=4","01M6KWHW2KTT8GVBSC1CKTZNS4","01M6KWHW7YTZDG1H5R9MZTFBPR",0,"MIT","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"composition patterns","Composition","vercel composition patterns","patterns","vercel","use","react composition patterns","with","render","react 19","triggers","reusable","components","react composition","api","component architecture","libraries","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":14,"metadata":48,"description":7},{"author":27,"version":49},"1.0.0","main","28ca336d1a46a21ae79704ed671e4a8c5cacdf99",".agents\u002Fskills\u002Fvercel-composition-patterns","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2","https:\u002F\u002Fgithub.com\u002FPhopCMU","2026-05-11 14:01:40",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add PhopCMU\u002FCheckin-Client-V2 --skill vercel-composition-patterns",{"tool":62,"command":63},"bunx","bunx skills add PhopCMU\u002FCheckin-Client-V2 --skill vercel-composition-patterns",{"tool":65,"command":66},"pnpm","pnpm dlx skills add PhopCMU\u002FCheckin-Client-V2 --skill vercel-composition-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",true,[70,76,80,84,88,92,96,100,104,108,112,116,120],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"AGENTS.md","REFERENCE","参考文档",22627,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FAGENTS.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"metadata.json",530,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Fmetadata.json",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"README.md",2140,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FREADME.md",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"rules\u002F_sections.md",829,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002F_sections.md",{"path":89,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":90,"sourceHtmlUrl":91},"rules\u002F_template.md",329,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002F_template.md",{"path":93,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":94,"sourceHtmlUrl":95},"rules\u002Farchitecture-avoid-boolean-props.md",2267,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Farchitecture-avoid-boolean-props.md",{"path":97,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":98,"sourceHtmlUrl":99},"rules\u002Farchitecture-compound-components.md",2600,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Farchitecture-compound-components.md",{"path":101,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":102,"sourceHtmlUrl":103},"rules\u002Fpatterns-children-over-render-props.md",1886,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fpatterns-children-over-render-props.md",{"path":105,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":106,"sourceHtmlUrl":107},"rules\u002Fpatterns-explicit-variants.md",2395,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fpatterns-explicit-variants.md",{"path":109,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":110,"sourceHtmlUrl":111},"rules\u002Freact19-no-forwardref.md",953,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Freact19-no-forwardref.md",{"path":113,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":114,"sourceHtmlUrl":115},"rules\u002Fstate-context-interface.md",4974,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-context-interface.md",{"path":117,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":118,"sourceHtmlUrl":119},"rules\u002Fstate-decouple-implementation.md",2699,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-decouple-implementation.md",{"path":121,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":122,"sourceHtmlUrl":123},"rules\u002Fstate-lift-state.md",3224,"https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002Frules\u002Fstate-lift-state.md",[125,147,178,184,190],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":132,"publishedAt":43},"01M6KWPHTN0SZGMDRS7PQ46J6V","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[131],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[42,133,134,135,27,136,137,33,138,139,26,140,141,142,143,40,144,35,145,146],"vercel react best practices","best practices","react best practices","guidelines","data fetching","pages","next","refactoring","data","Optimization","code","react components","performance","writing",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":161,"publishedAt":43},"01M6KWNXA378SABVENCYDCG7HR","seo","Optimize for search engine visibility and ranking. Use when asked to \"improve SEO\", \"optimize for search\", \"fix meta tags\", \"add structured data\", \"sitemap optimization\", or \"search engine optimization\".","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fseo\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000019","营销推广",{"categoryNo":157,"categoryName":158,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000035","市场营销","PROFESSION","适用职业",[149,162,28,163,164,165,166,167,168,141,142,169,170,171,172,173,174,175,176,177],"engine","quality","fix","tags","improve","Meta Tags","Meta","search","web","structured data","optimize","for","sitemap","add","ranking","structured",{"skillNo":179,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":183,"publishedAt":43},"01M6KWNJH0BNARF7VCQ20XBF9X","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[182],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[135,133,134,42,27,137,33,142,145,139,26,140,141,143,40,136,144,35,138,146],{"skillNo":185,"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":186,"categories":187,"keywords":189,"publishedAt":43},"01M6KWJAY8N46RBJKJQ05JYPTF","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomposition-patterns\u002FSKILL.md",[188],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[24,25,23,27,26,38,39,40,41,42,35,37,29,30,31,32,33,34,28,36],{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":43},"01M6KWHYVVZHN95X3Q1ABD9HB0","accessibility","Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to \"improve accessibility\", \"a11y audit\", \"WCAG compliance\", \"screen reader support\", \"keyboard navigation\", or \"make accessible\".","https:\u002F\u002Fgithub.com\u002FPhopCMU\u002FCheckin-Client-V2\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Faccessibility\u002FSKILL.md",[],[192,28,197,198,199,200,201,202,163,166,203,204,205,206,136,170,207],"make","screen","keyboard","navigation","a11y audit","reader","WCAG","compliance","audit","web accessibility","support"]