component-organization
CommunityScalable React TS via barrel exports.
System Documentation
What problem does it solve?
Maintaining a scalable React TypeScript codebase becomes unwieldy without a consistent structure. This Skill provides a standardized layout that promotes reuse, clean separation of concerns, and predictable imports across UI bases, composed components, and routing.
Core Features & Use Cases
- Standard Directory Layout: Enforces src/ with components/ui, components/shared, pages, layouts, and optional assets/references/scripts.
- Barrel Exports Policy: Encourages index.ts barrels to simplify imports and enable safe refactors.
- Guided Component Organization: Distinguishes base UI components (ui), composed components (shared), and page-level routing (pages).
- Use Case: You are adding a new button component used by multiple features; place it under components/ui and export via barrel; then reuse across pages.
Quick Start
Follow the component-organization guide to lay out your src/ folders and create barrel exports. Start by creating an index.ts barrel in each directory, add base and composed components under the correct folders, and use the recommended naming conventions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: component-organization Download link: https://github.com/JewelsHovan/pain-plus-site/archive/main.zip#component-organization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.