code-refactoring
SolidWhen the user says 'refactor this', 'rename class', or 'move method'. Safely refactors code in any language — finds all callers, updates downstream dependencies, verifies via quality tools.
AI & Automation 10 stars
1 forks Updated today MIT
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# refactorer
## When to use
Use this skill when renaming, moving, extracting, or restructuring code — any change that
may have downstream effects on callers, interfaces, tests, documentation, or API contracts.
Do NOT use when:
- New feature development (use `feature-planning` skill)
- Bug fixes that don't involve restructuring (use `bug-analyzer` skill)
## Before refactoring
1. **Read the agent docs** — check `agents/reference/docs/` and `agents/settings/contexts/` for the area you're refactoring.
For modules, also read the project's module-docs directory (path varies by stack — Laravel: `app/Modules/{Module}/agents/`; Nx: `apps/{app}/docs/`; mono-repo: per-package `docs/`). See the `project-docs` skill for the mapping.
2. **Understand the scope** — what exactly needs to change and why?
3. **Find ALL references** — use `codebase-retrieval` and `view` with `search_query_regex` to find every
caller, implementation, test, and configuration that references the code being changed.
**If the change is to a closed set** — an enum, union, literal type, state
machine, role or permission set — identifier search is not enough: the
consumers that break are the ones that never name the type. Search by shape as
well (`switch` / `match` / if-chains over it, lookup tables keyed by it,
validators, serializers, schemas, fixtures, translation keys) and classify each
as exhaustive, deliberate fallback, or missing case. Procedure:
[`downstream-changes-mechanics`](....
Details
- Author
- event4u-app
- Repository
- event4u-app/agent-config
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
refactoring
Improve code quality and maintainability through systematic identification of code smells and application of proven refactoring patterns. Use when the user requests refactoring or provides relevant inputs for this workflow.
179 Updated 1 months ago
seb1n Code & Development Listed
refactor
Identifies code quality issues and suggests refactoring. Triggers on requests to clean up, improve, or refactor code.
3 Updated yesterday
dagonet Code & Development Listed
safe-refactoring
Restructure code without changing behavior, verified by tests at every step.
2 Updated 1 months ago
varunk130