Skip to content

IncomeStreamSurfer/claude-react-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Claude React Generator Plugin

A Claude Code plugin that provides expert React component and custom hook generation with TypeScript support.

Overview

This plugin adds a specialized skill to Claude Code for generating production-ready React components and hooks following modern best practices and design patterns.

Features

  • Component Generation: Create functional components with TypeScript
  • Custom Hooks: Build reusable hooks following React conventions
  • TypeScript Integration: Full type safety with comprehensive type definitions
  • Best Practices: Follows React 18+ patterns and modern conventions
  • Performance Optimization: Implements memoization and optimization strategies
  • Accessibility: Includes ARIA attributes and semantic HTML
  • Multiple Patterns: Support for compound components, render props, HOCs
  • Popular Libraries: Integration guidance for Redux, React Hook Form, etc.

Installation

Using Claude Code CLI

# Install from GitHub
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator

# Or install to user scope
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator --scope user

# Or install to project scope
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator --scope project

Manual Installation

  1. Clone this repository to your Claude Code plugins directory
  2. The plugin will be automatically detected by Claude Code

Usage

Once installed, Claude Code will automatically use this skill when you ask for help with:

  • Creating React components
  • Building custom hooks
  • React architecture guidance
  • TypeScript integration with React
  • Component optimization
  • React patterns implementation

Examples

Generate a component:

Create a responsive Card component with TypeScript that accepts title, description, and image props

Create a custom hook:

Build a useLocalStorage hook that syncs state with localStorage

Build a form component:

Generate a LoginForm component using React Hook Form with email and password validation

Create a compound component:

Design a Tabs compound component with Tab and TabPanel sub-components

What This Skill Provides

Component Templates

  • Functional components with TypeScript
  • Components with state and effects
  • Compound components
  • Render prop components
  • Higher-order components

Custom Hook Templates

  • State management hooks
  • Effect hooks
  • Context hooks
  • Complex logic hooks

Best Practices

  • Code organization patterns
  • Performance optimization
  • Accessibility guidelines
  • Testing considerations
  • File structure recommendations

Integration Support

  • State management (Redux, Zustand, Recoil)
  • Form libraries (React Hook Form, Formik)
  • UI libraries (MUI, Chakra, shadcn/ui)
  • Styling solutions (Tailwind, styled-components, CSS Modules)

Skill Configuration

The skill is defined in skills/react-generator/SKILL.md and includes:

  • Comprehensive React component patterns
  • TypeScript integration best practices
  • Modern React 18+ features
  • Performance optimization strategies
  • Accessibility guidelines
  • File structure recommendations

Requirements

  • Claude Code CLI
  • Node.js and npm/yarn (for React projects)
  • TypeScript (recommended)

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE file for details

Resources

Support

For issues or questions:

Author

IncomeStreamSurfer

Version

1.0.0

About

React component and hook generation skill for Claude Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors