React Composition Patterns
vercel-labs/openreview
Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.
Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.
$ npx skills add dataelement/bisheng --skill react-component-refactor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install dataelement/bisheng react-component-refactor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/react-component-refactor .claude/skills/react-component-refactor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .claude/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add dataelement/bisheng --skill react-component-refactor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install dataelement/bisheng react-component-refactor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/react-component-refactor .agents/skills/react-component-refactor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .agents/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dataelement/bisheng --skill react-component-refactor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install dataelement/bisheng react-component-refactor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/react-component-refactor .cursor/skills/react-component-refactor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .cursor/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/dataelement/bisheng.git --path .claude/skills/react-component-refactor--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add dataelement/bisheng --skill react-component-refactor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install dataelement/bisheng react-component-refactor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/react-component-refactor .gemini/skills/react-component-refactor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .gemini/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install dataelement/bisheng react-component-refactorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add dataelement/bisheng --skill react-component-refactor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/react-component-refactor .github/skills/react-component-refactor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .github/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dataelement/bisheng --skill react-component-refactor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install dataelement/bisheng react-component-refactor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dataelement/bisheng.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/react-component-refactor .opencode/skills/react-component-refactor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-component-refactor" agent skill from https://github.com/dataelement/bisheng/tree/main/.claude/skills/react-component-refactor into .opencode/skills/react-component-refactor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-component-refactor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-component-refactorRefactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.
React Component Refactor is an agent skill from dataelement/bisheng. Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.
Its SKILL.md is about 180 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `resources/EXAMPLES.md` and `resources/GUIDELINES.md`).
It sits in Frontend & Design, covering React components and Refactoring. The repository describes itself as: BISHENG is an open LLM devops platform for next generation Enterprise AI applications. Powerful and comprehensive features include: GenAI workflow, RAG, Agent, Unified model… The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit cb9b77a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React Component Refactor loads about 179 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 67 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from dataelement/bisheng at commit cb9b77a, republished under its Apache-2.0 licence (© dataelement). 67 words, ~179 tokens.
.claude/skills/react-component-refactor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.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.
resources/GUIDELINES.md for the complete refactoring checklist and rules.resources/EXAMPLES.md for concrete before/after patterns from real refactoring work.© dataelement, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in .claude/skills/react-component-refactor of dataelement/bisheng.
Open the folder on GitHubat commit cb9b77a
React Component Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React Component Refactor this skilldataelement/bisheng | 12k | — | ~179 | Automated safety check: Pass | Apache-2.0 | |
| React Composition Patternsvercel-labs/openreview | 1.7k | 58 repos | ~721 | Automated safety check: Pass | MIT | |
| Vercel React Best Practicessanity-io/sanity | 6.4k | 130 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Dify Component Writing Guidelanggenius/dify | 158k | — | ~626 | Automated safety check: Pass | Custom licence | |
| React Best Practicesmastra-ai/mastra | 29k | — | ~1.9k | Automated safety check: Pass | Custom licence | |
| No Use Effectfastrepl/anarlog | 9.4k | — | ~825 | Automated safety check: Pass | MIT |
vercel-labs/openreview
Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.
sanity-io/sanity
React and Next.js performance optimization guidelines from Vercel Engineering.
langgenius/dify
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…
mastra-ai/mastra
React performance optimization guidelines from Mastra Engineering.
fastrepl/anarlog
Avoid direct React useEffect usage when writing or reviewing React components and hooks.
JNTMTMTM/eIsland
Refactor a monolithic React component file into a standardized module structure with components/, hooks/, utils/, and config/ subdirectories.
dataelement/bisheng
Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.
dataelement/bisheng
Builds PowerPoint decks in BiSheng's code executor with python-pptx, from scratch, from a supplied template or by rewriting an existing file, with Chinese layout rules.
dataelement/bisheng
Builds, edits and cleans Excel workbooks inside BiSheng's code executor using openpyxl, with LibreOffice recalculation and a pre-delivery check.
dataelement/bisheng
Reviews BiSheng spec, design and tasks documents with checklists for PRD gaps, handover readiness and acceptance traceability, producing a report or an LGTM.
dataelement/bisheng
Runs a light convention check on one finished spec-driven task, choosing checks by task type and ending in pass, pass-with-notes or needs-fix.
dataelement/bisheng
Maps BiSheng's approval-center architecture to exact service files and methods, so a change to approval logic can be located without searching the whole repo.
Categories
Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns. React Component Refactor is an agent skill from dataelement/bisheng. Refactor large React components by extracting hooks, splitting sub-components, and organizing directory structure following established patterns.
React Component Refactor fits situations like: tasks that involve React components; tasks that involve Refactoring.
Run `npx skills add dataelement/bisheng --skill react-component-refactor -a claude-code`. Or copy the skill folder (.claude/skills/react-component-refactor in dataelement/bisheng) into .claude/skills/react-component-refactor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add dataelement/bisheng --skill react-component-refactor -a codex`. Or copy the skill folder (.claude/skills/react-component-refactor in dataelement/bisheng) into .agents/skills/react-component-refactor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dataelement/bisheng --skill react-component-refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-component-refactor, .gemini/skills/react-component-refactor, .github/skills/react-component-refactor and .opencode/skills/react-component-refactor in your project.
SKILL.md names no scripts, command-line tools or credentials: React Component Refactor is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
React Component Refactor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 179 tokens (SKILL.md is roughly 716 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with React Component Refactor: React Composition Patterns (vercel-labs/openreview, 1.7k stars), Vercel React Best Practices (sanity-io/sanity, 6.4k stars), Dify Component Writing Guide (langgenius/dify, 158k stars) and React Best Practices (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
dataelement (a GitHub organization) maintains it in dataelement/bisheng, which has 12,027 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 30, 2026.
Source: dataelement/bisheng on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.