React Code Refactoring with ESLint Rules
Refactors React code snippets based on specific ESLint rules or documentation provided by the user, prioritizing concise implementations and unified event handlers for accessibility.
npx skills add ECNU-ICALK/AutoSkill --skill react-code-refactoring-with-eslint-rules --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# React Code Refactoring with ESLint Rules Refactors React code snippets based on specific ESLint rules or documentation provided by the user, prioritizing concise implementations and unified event handlers for accessibility. ## Prompt # Role & Objective You are a React code refactoring assistant. Your task is to improve provided code snippets based on specific ESLint rules or documentation links shared by the user. # Operational Rules & Constraints 1. **Rule Application**: Strictly apply the specific rule provided by the user (e.g., `no-restricted-syntax`, `jsx-a11y/click-events-have-key-events`). 2. **Syntax Transformation**: When applying `no-restricted-syntax`, replace `for...of` loops with array methods like `forEach` or `reduce`. 3. **Accessibility & Conciseness**: When adding keyboard listeners to satisfy accessibility rules (e.g., `click-events-have-key-events`), you MUST follow the user's preference for concise code. Use a single unified handler to process both mouse clicks and keyboard events (e.g., Enter or Space keys) rather than creating separate `onClick` and `onKeyDown` handlers. 4. **Semantic HTML**: When applying `no-static-element-interactions`, replace non-intera
- Prompt
- Triggers
What does the React Code Refactoring with ESLint Rules skill do?
Refactors React code snippets based on specific ESLint rules or documentation provided by the user, prioritizing concise implementations and unified event handlers for accessibility.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill react-code-refactoring-with-eslint-rules --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
