[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F041SGC9BV4JVS64ETNKK2":3,"skill-same:01M7F041SGC9BV4JVS64ETNKK2":90},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7F041SGC9BV4JVS64ETNKK2","composition-patterns",null,"React component composition patterns for flexible, maintainable component APIs, from Vercel Engineering. Use when refactoring a component that has grown many boolean props, building or reviewing a shared component library or design-system wrapper, choosing between compound components, context providers, render props or explicit variants, or moving to React 19 APIs. Applies to React code only, even if the user does not say \"composition\". For render-and-look design review use ux-review; for performance rules use react-best-practices.","DaisyGuti\u002Fclaude-pack","DaisyGuti","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15878414?v=4","01M7EZWN4KPGM9S0ZWXG903NYR","Daisy Guti","01M7EZWN5HCQ8WN2NQWTG16SWV",0,"MIT","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: composition-patterns\ndescription: React component composition patterns for flexible, maintainable component APIs, from Vercel Engineering. Use when refactoring a component that has grown many boolean props, building or reviewing a shared component library or design-system wrapper, choosing between compound components, context providers, render props or explicit variants, or moving to React 19 APIs. Applies to React code only, even if the user does not say \"composition\". For render-and-look design review use ux-review; for performance rules use react-best-practices.\nlicense: MIT\nmetadata:\n  author: vercel\n  upstream: https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills\u002Ftree\u002Fmain\u002Fskills\u002Fcomposition-patterns\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 the rule files that match the task. Open only the rules that match the task:\n\n```\n${CLAUDE_SKILL_DIR}\u002Frules\u002Farchitecture-avoid-boolean-props.md\n${CLAUDE_SKILL_DIR}\u002Frules\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","# 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 the rule files that match the task. Open only the rules that match the task:\n\n```\n${CLAUDE_SKILL_DIR}\u002Frules\u002Farchitecture-avoid-boolean-props.md\n${CLAUDE_SKILL_DIR}\u002Frules\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",{"name":5,"license":15,"metadata":25,"description":7},{"author":26,"upstream":27},"vercel","https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills\u002Ftree\u002Fmain\u002Fskills\u002Fcomposition-patterns","main","fef324d0b80e6435965d5f9fa22a94da19a113ce","plugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack","https:\u002F\u002Fgithub.com\u002FDaisyGuti","2026-11-14 01:32:45",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add DaisyGuti\u002Fclaude-pack --skill composition-patterns",{"tool":40,"command":41},"bunx","bunx skills add DaisyGuti\u002Fclaude-pack --skill composition-patterns",{"tool":43,"command":44},"pnpm","pnpm dlx skills add DaisyGuti\u002Fclaude-pack --skill composition-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002FSKILL.md",true,[48,53,59,62,66,70,74,78,82,86],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",2267,{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"rules\u002F_sections.md","REFERENCE","参考文档",829,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002F_sections.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":52,"sourceHtmlUrl":61},"rules\u002Farchitecture-avoid-boolean-props.md","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Farchitecture-avoid-boolean-props.md",{"path":63,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":64,"sourceHtmlUrl":65},"rules\u002Farchitecture-compound-components.md",2600,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Farchitecture-compound-components.md",{"path":67,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":68,"sourceHtmlUrl":69},"rules\u002Fpatterns-children-over-render-props.md",1886,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Fpatterns-children-over-render-props.md",{"path":71,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":72,"sourceHtmlUrl":73},"rules\u002Fpatterns-explicit-variants.md",2395,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Fpatterns-explicit-variants.md",{"path":75,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":76,"sourceHtmlUrl":77},"rules\u002Freact19-no-forwardref.md",953,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Freact19-no-forwardref.md",{"path":79,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":80,"sourceHtmlUrl":81},"rules\u002Fstate-context-interface.md",4974,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Fstate-context-interface.md",{"path":83,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":84,"sourceHtmlUrl":85},"rules\u002Fstate-decouple-implementation.md",2699,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Fstate-decouple-implementation.md",{"path":87,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":88,"sourceHtmlUrl":89},"rules\u002Fstate-lift-state.md",3224,"https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fcomposition-patterns\u002Frules\u002Fstate-lift-state.md",[91,99,108,116,124],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M7F05DSKZ4RH362FFWZD78VM","web-design-guidelines","Reviews UI source code against Vercel's Web Interface Guidelines, fetched fresh at review time - accessibility attributes, focus states, forms, animation, typography, images, performance, navigation and URL state, touch, dark mode, i18n, hydration safety and common anti-patterns. Use when asked to review, audit or lint the code of a component, page or stylesheet for UI quality, \"check my UI against best practices\", \"review this form\", or \"audit this markup\", even if the user does not name the guidelines. Reads files and reports findings as file:line. Not for judging a screenshot or a running page (use ux-review), not for a WCAG conformance audit of a live site (use the accessibility plugin), and not for choosing a visual direction (use frontend-design).","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fweb-design-guidelines\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7F053CD749WQ6MZ4HJSRZJJ","ux-review","Judges an existing design for usability, accessibility and visual craft, and says what to change. Use when asked to review or critique a UI, screenshot, mockup, prototype, flow or component, to \"roast\" or grade a design, to explain why a page looks generic or AI-made, to check contrast, keyboard or reading-order risks from a design, or to answer whether a screen works for its user. Gives a readiness verdict and a ranked list of fixes with concrete values (label text, px size, hex). Judges what is shown; it does not build new UI (use frontend-design), review framework source line by line (use web-design-guidelines), or run live-page accessibility tests (use the accessibility plugin). To render the page in a real browser and make the fixes, use the ui-ux agent.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fux-review\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Fux-review\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7F04HJ6CXP47TY8WV46HSG6","react-native-skills","React Native and Expo best practices for building performant mobile apps, from Vercel Engineering. Use when writing or reviewing React Native or Expo components, tuning list and scroll performance, building animations with Reanimated, handling images, safe areas, navigation, fonts or native modules, or structuring a monorepo with native dependencies. Applies to React Native code only, even if the user does not say \"mobile\". For web React performance use react-best-practices.","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-skills\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-skills\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7F048YXXVNZZJH01BYEHN8T","react-best-practices","React and Next.js performance rules from Vercel Engineering, ranked by impact. Use when writing, reviewing or refactoring React or Next.js code for speed - data-fetching waterfalls, bundle size, server components, re-renders, hydration, rendering cost - or when a page feels slow, a bundle is large or a component re-renders too often. Applies to React and Next.js code only, even if the user does not say \"performance\". For visual or usability review use ux-review; for component API design use composition-patterns.","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7EZX21XK35Z38327AZYHR2J","eng","Slash entry for the engineering agent. Use when the user types \u002Fcore:eng, or asks to \"use eng\", \"run the engineering pass\" or \"have engineering do\" a fix, feature, refactor or code review in the current repo, even if they do not name the agent. Hands the task to the core:eng agent in a fresh context and returns its report.","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Feng\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDaisyGuti\u002Fclaude-pack\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Feng\u002FSKILL.md",[],[]]