# React Component Refactor

> React Component Refactor is an Agent Skill for development published in the dataelement/bisheng repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.

- Skill name: `react-component-refactor`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/dataelement/bisheng/blob/HEAD/src/frontend/client/.agents/skills/react-component-refactor/SKILL.md
- Repository: dataelement/bisheng (11,521 GitHub stars when collected)

## SKILL.md

# 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.

---

Source: https://www.openparable.com/skill/development/react-component-refactor (OpenParable). Cite the canonical URL above.
