agentsclimarketplace

Vercel composition patterns

Skill kimtth/agent-skill-100-lines-or-less/skills/vercel-composition-patterns

Use when: design composable React component APIs that scale without boolean prop sprawl.From its SKILL.md

Install
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill vercel-composition-patterns

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.1 KB, 203 tokens by cl100k_base, as published. Nobody here has run it

Goal: component APIs that stay flexible as features grow.

Use for:

  • components accumulating many boolean and config props
  • shared UI that each consumer needs to customize differently
  • replacing rigid components with composable ones

Workflow:

  1. Identify the variation points consumers actually need.
  2. Prefer composition (children, slots) over configuration flags.
  3. Use compound components for related, coordinated parts.
  4. Share state via context, not prop drilling.
  5. Expose render props or slots for true customization.
  6. Keep the default usage simple; advanced control opt-in.

Patterns:

  • compound components for grouped UI (Tabs, Tabs.List, Tabs.Tab)
  • context to coordinate without prop drilling
  • render props / slots for caller-controlled rendering
  • polymorphic as prop where appropriate

Rules:

  • favor children over a growing prop list
  • do not leak internal structure through booleans
  • keep each part single-purpose and replaceable
  • common case stays trivial; complexity is opt-in

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 623,721. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.