首页龙虾技能列表 › Vercel Composition Patterns — Vercel工具

Vercel Composition Patterns — Vercel工具

v0.1.0

[AI辅助] React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing r...

0· 131·0 当前·0 累计
by @analsharqy (Quantyra)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/17
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This is an instruction-only React composition patterns guide whose files and runtime instructions match the described purpose, with no installs, secrets, or external endpoints requested.
评估建议
This skill is a documentation-only guide for React composition patterns and appears internally consistent and low-risk. Before installing: (1) confirm provenance if you require official Vercel authorship (metadata claims 'vercel' but the registry/source and homepage are missing), (2) verify the MIT license terms meet your needs, and (3) if you plan to let an agent apply these patterns to your codebase, review the agent's code-change permissions (commits, pushes) because the skill itself has no s...
详细分析 ▾
用途与能力
The skill's name, description, and included rule files all describe React composition patterns and the repo contents are documentation and examples — this aligns with the stated purpose. One provenance note: SKILL.md and metadata claim author 'vercel' and MIT license, but the registry/source is 'unknown' and there is no homepage; that is a provenance/attribution issue (not a technical capability mismatch) and worth verifying if you expect an official Vercel publication.
指令范围
SKILL.md and the rule files are documentation-only and instruct the agent to read local rule files for guidance. The instructions do not ask the agent to read unrelated system files, access environment variables, call external endpoints, or perform I/O beyond reading the skill's own files.
安装机制
There is no install spec and no code files that execute; this is instruction-only (documentation). No packages are downloaded or extracted and nothing is written to disk by an installer.
凭证需求
The skill declares no required environment variables, no credentials, and no config paths. There are no unexpected secret or credential requests in SKILL.md or the provided files.
持久化与权限
The skill does not request always:true and uses default invocation settings. It does not modify other skills or system-wide settings. Autonomous invocation is permitted (platform default) but the skill itself does not ask for elevated persistence.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.02026/3/17

- Initial release of vercel-composition-patterns, providing React composition guidelines for scalable, maintainable component design. - Covers when and how to use compound components, lifting state, and composition to avoid boolean prop proliferation. - Organized into rule categories: Component Architecture, State Management, Implementation Patterns, and React 19 API updates. - Includes actionable rule references (e.g., avoid boolean props, decouple state management) and React 19-specific best practices. - Designed as a quick reference for developers refactoring components or building flexible React APIs.

● 无害

安装命令 点击复制

官方npx clawhub@latest install composition-patterns-2
镜像加速npx clawhub@latest install composition-patterns-2 --registry https://cn.clawhub-mirror.com

技能文档

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.

当...时 到 Apply

Reference these guidelines when:

  • Refactoring components 带有 many 布尔值 props
  • Building reusable 组件 libraries
  • Designing flexible 组件 APIs
  • Reviewing 组件 architecture
  • Working 带有 compound components 或 context providers

Rule Categories 由 Priority

PriorityCategoryImpactPrefix
1Component ArchitectureHIGHarchitecture-
2State ManagementMEDIUMstate-
3Implementation PatternsMEDIUMpatterns-
4React 19 APIsMEDIUMreact19-

Quick Reference

1. 组件 Architecture (HIGH)

  • architecture-avoid-布尔值-props - Don't 添加 布尔值 props 到 customize
behavior; use composition
  • architecture-compound-components - Structure complex components 带有 shared
context

2. State Management (MEDIUM)

  • state-decouple-implementation - Provider 仅 place knows 如何
state is managed
  • state-context-接口 - Define generic 接口 带有 state, actions, meta
for dependency injection
  • state-lift-state - 移动 state 进入 provider components 对于 sibling access

3. Implementation Patterns (MEDIUM)

  • patterns-explicit-variants - 创建 explicit variant components 代替 的
boolean modes
  • patterns-children-在...上-render-props - 使用 children 对于 composition 代替
of renderX props

4. React 19 APIs (MEDIUM)

⚠️ React 19+ only. Skip this section if using React 18 or earlier.
  • react19-否-forwardref - Don't 使用 forwardRef; 使用 使用() 代替 的 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:

  • Brief explanation 的 为什么 matters
  • 错误 code 示例 带有 explanation
  • 正确 code 示例 带有 explanation
  • Additional context 和 references

满 Compiled Document

For the complete guide with all rules expanded: AGENTS.md

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务