Normalize Components

Community

Refactor large components.

Authorshynlee04
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This workflow addresses the issue of overly large and complex React components that hinder maintainability and readability by systematically breaking them down into smaller, more manageable modules.

Core Features & Use Cases

  • Component Decomposition: Splits components exceeding 300 lines into smaller, focused sub-components.
  • Hook Extraction: Identifies and extracts reusable stateful logic into custom hooks.
  • Concern Separation: Enforces separation of concerns by isolating UI, state, and business logic.
  • Use Case: Refactor a monolithic UserProfile component into smaller components like UserProfileHeader, UserProfileDetails, and custom hooks for useFetchUserData and useUpdateProfile.

Quick Start

Use the normalize-components workflow to split the component located at src/presentation/components/knowledge/KnowledgePage.tsx.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: Normalize Components
Download link: https://github.com/shynlee04/idumb-v2/archive/main.zip#normalize-components

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.