refactor
SolidSuggest and apply code refactoring
AI & Automation 148 stars
60 forks Updated today Apache-2.0
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Refactor
Analyze code for refactoring opportunities, apply improvements, and verify correctness.
## Instructions
1. Read the target code and its surrounding context (callers, tests, related modules).
2. Identify refactoring opportunities in these categories:
- **Duplication**: Repeated logic that can be extracted into shared functions or utilities.
- **Complexity**: Long functions, deep nesting, or convoluted conditionals that can be flattened or decomposed.
- **Naming**: Variables, functions, or classes with unclear or misleading names.
- **Structure**: Misplaced responsibilities, god objects, or tight coupling that can be reorganized.
- **Modernization**: Outdated patterns that can use newer language features or idioms.
3. Propose each refactoring with:
- What to change and where
- Why it improves the code (readability, maintainability, testability)
- Any risks or trade-offs
4. Apply the refactorings using edit_file, making one logical change at a time.
5. After each change, run the existing test suite to confirm nothing broke.
6. If tests fail, revert the change and try an alternative approach or skip that refactoring.
7. Summarize what was changed, why, and the test results.
Details
- Author
- prapaa-ai
- Repository
- prapaa-ai/agav
- Created
- 1 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
refactor
Safe, behavior-preserving refactoring of code structure. Use when the user asks to clean up, simplify, deduplicate, or restructure code.
6 Updated yesterday
D-engahmed Code & Development Listed
refactoring
Identify and apply targeted refactoring improvements to existing code without changing behavior
0 Updated 2 weeks ago
singleton-sd AI & Automation Listed
refactoring
Improve code structure in small, always-green steps without changing behavior. Use when asked to clean up, simplify, restructure, or de-duplicate working code.
8 Updated 2 weeks ago
Amey-Thakur