React component refactor

From dataelement/bisheng · View interactive version

React component refactor is an AI agent skill from the GitHub repository dataelement/bisheng. Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.

How to use this skill

Skill file

React Component Refactor

This skill provides a systematic approach for refactoring complex React components. Use it when a module has overgrown files, tangled state, or unclear separation of concerns.

Instructions

  1. Read the Guidelines: Read resources/GUIDELINES.md for the complete refactoring checklist and rules.
  2. Read the Examples: Read resources/EXAMPLES.md for concrete before/after patterns from real refactoring work.
  3. Execute: Follow the guidelines to refactor the target module.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.