React Component Refactor
Developmentreact-component-refactorReact 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/dataelement/bisheng/blob/HEAD/src/frontend/client/.agents/skills/react-component-refactor/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/react-component-refactor, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
- Read the Guidelines: Read
resources/GUIDELINES.mdfor the complete refactoring checklist and rules. - Read the Examples: Read
resources/EXAMPLES.mdfor concrete before/after patterns from real refactoring work. - Execute: Follow the guidelines to refactor the target module.