horusgoul/eslint-plugin-react-render-types/react-render-types-composition
Claude Code and agent skill by horusgoul/eslint-plugin-react-render-types
- community
Checking that the SKILL.md file is still in the repository.
Composition patterns for building React components with @renders type annotations from eslint-plugin-react-render-types. Use when: (1) writing React components that need @renders JSDoc annotations, (2) building a design system with enforced component composition (e.g., Menu only accepts MenuItem), (3) deciding which @renders modifier to use (required, optional, many, unchecked), (4) creating wrapper or transparent components, (5) annotating slot props like children/header/footer, (6) using render chains, union types, or type aliases with @renders, or (7) building app layouts that consume a @renders-annotated design system.
Install
npx vskill@latest install horusgoul/eslint-plugin-react-render-types/react-render-types-compositionSKILL.md
React Render Types — Composition Patterns
Patterns for building React components with @renders type annotations. Covers design system primitives, app-level composition, and advanced techniques.
Annotation Syntax Quick Reference
Pattern Categories
| Priority | Category | When to read | |
|---|---|---|---|
| 1 | Design System Patterns | Building constrained component APIs | |
| 2 | Wrapper Patterns | Creating transparent or conditional wrappers | |
| 3 | App Composition Patterns | Consuming a design system in app layouts | |
| 4 | Advanced Patterns | Unions, chains, dynamic rendering, expressions |
Design System Patterns
Core patterns for building component libraries with enforced composition.
constrained-children— Restrict children to specific component types (Menu → MenuItem)typed-slot-props— Enforce types on named slot props (header, footer, sidebar)component-variants— Create specialized variants that satisfy a base render type
Read detailed examples: references/patterns/design-system.md
Wrapper Patterns
Patterns for components that wrap other content without breaking composition.
transparent-wrappers— Mark layout/styling wrappers with@transparentconditional-rendering— Use@renders?and@renders*for optional/repeated content
Read detailed examples: references/patterns/wrappers.md
App Composition Patterns
Patterns for building app-level layouts that consume design system components.
page-layouts— Compose pages with typed header/content/footer slotsdashboard-composition— Build dashboards with constrained card/widget areasnavigation-structure— Typed sidebar/nav with enforced nav item types
Read detailed examples: references/patterns/app-composition.md
Advanced Patterns
Techniques for complex scenarios.
union-types— Accept multiple component types in a single slottype-aliases— Define reusable type unions for@rendersannotationsrender-chains— Satisfy render types transitively through intermediate componentsunchecked-escape-hatch— Use@renders!for dynamic rendering the plugin can't analyzeexpression-analysis— Ternary, logical AND, and.map()in annotated returns
Read detailed examples: references/patterns/advanced.md
Choosing the Right Modifier
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react-render-types-composition/SKILL.md
Popularity
- Repository stars
- 104
- Repository npm downloads, 7 days
- 536
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/horusgoul/eslint-plugin-react-render-types/react-render-types-composition)