OpenParable
Skip to content
← Back to skills

React Component Refactor

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  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.