code-refactoring

Solid

When 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

View on GitHub

Quality Score: 82/100

Stars 20%
35
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

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