重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
vercel-composition-patterns by kimny1143/claude-code-template
npx skills add https://github.com/kimny1143/claude-code-template --skill vercel-composition-patterns用于构建灵活、可维护 React 组件的组合模式。通过使用复合组件、状态提升和内部组合,避免布尔属性泛滥。这些模式使得代码库在扩展时,无论是人类开发者还是 AI 代理都更容易协作。
在以下情况下参考这些指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 组件架构 | 高 | architecture- |
| 2 | 状态管理 | 中 | state- |
| 3 | 实现模式 | 中 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
patterns-| 4 | React 19 API | 中 | react19- |
architecture-avoid-boolean-props - 不要通过添加布尔属性来定制行为;应使用组合architecture-compound-components - 使用共享上下文来构建复杂组件state-decouple-implementation - 提供者是唯一知道状态如何管理的地方state-context-interface - 定义包含状态、操作、元数据的通用接口以进行依赖注入state-lift-state - 将状态提升到提供者组件中,以便兄弟组件访问patterns-explicit-variants - 创建显式的变体组件,而不是使用布尔模式patterns-children-over-render-props - 使用 children 进行组合,而不是 renderX 属性⚠️ 仅限 React 19+。 如果使用 React 18 或更早版本,请跳过此部分。
react19-no-forwardref - 不要使用 forwardRef;使用 use() 代替 useContext()阅读单个规则文件以获取详细解释和代码示例:
rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md
每个规则文件包含:
获取包含所有规则详解的完整指南:AGENTS.md
每周安装量
57
代码仓库
首次出现
2026年2月9日
安全审计
安装于
claude-code52
gemini-cli24
github-copilot23
codex23
opencode23
cursor22
Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Component Architecture | HIGH | architecture- |
| 2 | State Management | MEDIUM | state- |
| 3 | Implementation Patterns | MEDIUM | patterns- |
| 4 | React 19 APIs | MEDIUM | react19- |
architecture-avoid-boolean-props - Don't add boolean props to customize behavior; use compositionarchitecture-compound-components - Structure complex components with shared contextstate-decouple-implementation - Provider is the only place that knows how state is managedstate-context-interface - Define generic interface with state, actions, meta for dependency injectionstate-lift-state - Move state into provider components for sibling accesspatterns-explicit-variants - Create explicit variant components instead of boolean modespatterns-children-over-render-props - Use children for composition instead of renderX props⚠️ React 19+ only. Skip this section if using React 18 or earlier.
react19-no-forwardref - Don't use forwardRef; use use() instead of useContext()Read individual rule files for detailed explanations and code examples:
rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md
Each rule file contains:
For the complete guide with all rules expanded: AGENTS.md
Weekly Installs
57
Repository
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code52
gemini-cli24
github-copilot23
codex23
opencode23
cursor22
前端设计系统技能:生产级UI设计、设计令牌与可访问性指南
8,500 周安装
Jupiter API 集成技能 - 优化 Solana DeFi 交易、借贷与永续合约的快速路由与执行
221 周安装
clarify:vague - 需求澄清工具,将模糊需求转化为精确规范,提升开发效率
57 周安装
跨平台广告创意质量审核与优化指南:Google、Meta、TikTok等平台最佳实践
223 周安装
Apple Liquid Glass 设计系统完全指南:实现、优化与专家审查 | axiom-liquid-glass
215 周安装
SEO内容规划师 - 智能内容策略工具,提升网站SEO效果与内容质量
221 周安装
.NET和Python项目横切关注点配置指南:日志、错误处理、CORS、健康检查、API文档
219 周安装