react-component-design

Enforce strict prop-interface design and composition patterns for React and TypeScript components.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill react-component-design-shafibabar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-component-design
Source: https://github.com/shafibabar/SDLC-Artifact-Factory/tree/main/skills/react-component-design
Command: npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill react-component-design-shafibabar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates inconsistent component architecture and runtime prop errors by enforcing a strict, type-safe standard for React development that aligns with design specifications.

Core Features & Use Cases

  • Prop-Interface Enforcement: Uses discriminated unions to make invalid component states unrepresentable at compile time.
  • Composition Standards: Provides clear decision criteria for choosing between custom hooks, render props, and compound components.
  • Use Case: When building a complex UI library, use this skill to ensure all atoms and molecules follow the Atomic Design taxonomy and maintain strict separation between presentational logic and container hooks.

Quick Start

Use the react-component-design skill to generate a new component structure that implements the provided ui-component-spec while adhering to the atomic design taxonomy.

Frequently Asked Questions about react-component-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict prop typing in React components to prevent runtime errors?

Use discriminated unions in TypeScript to make invalid React component states unrepresentable at compile time. This strict prop-interface design eliminates inconsistent architecture and runtime prop errors by enforcing type safety before code execution.

When should I use custom hooks versus render props or compound components in React?

Choose custom hooks, render props, or compound components based on composition standards that provide clear decision criteria. Maintain strict separation of concerns between container hooks and presentational components to ensure testable React architecture.

How do I structure a React UI library using atomic design taxonomy in TypeScript?

Structure your React UI library by organizing atoms and molecules according to the atomic design taxonomy. Enforce clear separation between presentational logic and container hooks while implementing strict prop interfaces for each component level.

What is the best way to separate presentational logic from container hooks in React?

The best way to separate presentational logic from container hooks is by applying composition patterns that enforce strict separation of concerns. This ensures React components remain testable, accessible, and maintain high-quality UI standards.

Can I use this React component design approach for complex frontend workflows without external dependencies?

Yes, this React component design approach works without external dependencies. It standardizes component authoring by enforcing type-safe prop interfaces and composition patterns directly within your TypeScript frontend development workflow.