refactor
Improve the shape of existing code without changing behavior.
Works with
--- name: refactor description: Improve the shape of existing code without changing behavior. license: MIT --- # Refactor 1. Identify the target from `$ARGUMENTS`, the current diff, latest commit, or recently touched files. 2. Read the code and tests. Understand what behavior must not change. For risky refactors, run focused tests first. 3. Make small behavior-preserving edits: delete, deduplicate, rename, simplify, extract or inline. 4. Don't change public interfaces, data shapes, errors, or user-visible output unless the user asks. 5. Run relevant checks, wider ones when shared behavior was touched. 6. Report what changed, what stayed the same, and checks run. ## Rules - Refactoring is not feature work. Don't expand into unrelated cleanup. - Don't change behavior to make the refactor easier. - Keep an abstraction only when it reduces complexity or duplication.
More Refactoring skills
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
analyze-project
lllllllama/rigorpilot-skills
Rigor Analyze / Rigor Audit read-only skill for deep learning research repositories. Use when the user wants to read and understand a repository, inspect model structure and training or inference entrypoints, review configs and insertion points, or flag suspicious implementation patterns without modifying code or running heavy jobs. Do not use for active command execution, broad refactoring, speculative code adaptation, or automatic bug fixing.
request-refactor-plan
mattpocock/skills
Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

