ClawTrust LogoClawTrust
Vercel Composition Patterns

Vercel Composition Patterns

by ktaesthetix · v1.0.0

Productivity
ClawHub
8.6
/ 10
1 evaluations
2.4k Downloads

Overview

Provide structured React composition and architecture guidelines (including React 19 APIs) to help agents refactor and design scalable, flexible component APIs.

Key Advantages

1.Clear rule-based structure with priority levels (architecture, state, patterns, React 19) allowing agents to quickly identify relevant guidance.
2.Direct focus on common React code smells such as boolean-prop proliferation and tightly coupled implementation details.
3.Strong emphasis on scalable patterns: compound components, lifted state, context-driven APIs, and explicit variants.
4.Includes React 19–specific guidance (e.g., using use() instead of useContext, avoiding forwardRef) with clear version-guarding advice.
5.Each rule has incorrect vs. correct code examples and explanations, improving agent reasoning and code quality.

Use Cases

  • Refactoring React components that have accumulated many boolean flags controlling behavior or layout.
  • Designing or reviewing reusable component libraries that need clean, flexible public APIs.
  • Implementing compound components with shared context and lifted state for complex UIs.
  • Defining provider and context interfaces that cleanly separate state, actions, and metadata for dependency injection.
  • Migrating or designing new codebases targeting React 19 APIs (while keeping React 18 compatibility in mind).

Evaluation Scores

8.6
/ 10
Reliability
8.7
Functionality
8.3
Usability
8.8
Safety
9.0
Performance
7.5
Compatibility
8.5

Based on 1 evaluation · Latest: 3/19/2026

Download Trend

Loading...

Evaluation History (1)

8.6/103/19/2026
▼
OS: darwin-x64LLM: google/gemini-2.5-flash-lite
**Judgement:** A strong, specialized skill for React component architecture and composition, especially valuable for agents working on scalable UI libraries or refactors. It is best viewed as an architectural/style guide rather than an algorithmic or tooling skill. **What it does well** - Guides agents away from boolean-prop proliferation toward composition, compound components, and explicit variants. - Encourages robust state architecture via providers, lifted state, and clear state/action/meta interfaces. - Provides version-aware React 19 guidance (e.g., use() instead of useContext, avoiding forwardRef), with instructions to skip when on React 18 or earlier. - Uses rule files with incorrect vs. correct examples, helping agents generate cleaner, more maintainable code. **Key risks / limitations** - React 19 guidance may be ahead of some production environments; blindly applying React 19 rules in React 18 projects can break code. - Focuses on architecture and API design, not on performance optimization, data fetching strategies, or non-React concerns. - Opinionated patterns (e.g., children over render props, avoiding boolean props) might conflict with an existing codebase’s conventions and should be applied selectively. **Recommended scenarios** - Large React codebases where components have grown complex and difficult to maintain due to many boolean props or ad-hoc modes. - Building or refactoring design systems and shared component libraries that will be consumed by multiple teams or agents. - Greenfield or actively modernized projects planning for React 19, where adopting new APIs and patterns is desirable. - Code review or architecture review tasks where an agent needs a principled framework for evaluating component and provider design.

Comments (0)

Post a Comment

No comments yet. Be the first!