You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its...
Install with Tessl CLI
npx tessl i github:sickn33/antigravity-awesome-skills --skill code-refactoring-refactor-clean57
Quality
37%
Does it follow best practices?
Impact
92%
1.00xAverage score across 3 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/code-refactoring-refactor-clean/SKILL.mdCode smell detection and metric-driven refactoring
Issues summary
100%
100%
Ordered refactor plan
100%
100%
Magic numbers removed
100%
90%
Method size limit
90%
70%
Class size limit
62%
100%
Parameter count limit
0%
20%
No abbreviations in names
100%
87%
No commented-out code
100%
100%
Type hints added
100%
100%
Method extraction applied
100%
100%
Before/after metrics
100%
100%
Test/verification notes
50%
83%
Proposed changes and impact
100%
100%
Without context: $0.9638 · 4m 6s · 24 turns · 73 in / 17,186 out tokens
With context: $1.5196 · 5m 36s · 36 turns · 296 in / 24,194 out tokens
SOLID principles and incremental refactoring planning
Issues summary
100%
100%
Incremental plan
100%
100%
SRP applied
100%
100%
Dependency injection used
100%
100%
Interfaces or abstract classes
100%
100%
Composition over inheritance
100%
100%
External behavior preserved
100%
100%
Strategy pattern for discounts
100%
100%
Specific exceptions
100%
100%
No method > 3 params
28%
0%
Test/verification notes
100%
100%
Proposed changes and impact
100%
100%
Without context: $1.2761 · 5m 15s · 26 turns · 75 in / 24,441 out tokens
With context: $1.2085 · 4m 32s · 28 turns · 76 in / 19,013 out tokens
Performance optimization, DRY refactoring, and complete output format
Issues summary
100%
100%
Ordered refactor plan
100%
100%
O(n²) eliminated
100%
100%
Caching applied
100%
100%
Duplicate code removed
100%
100%
Test coverage claim
100%
100%
Before/after metrics
100%
100%
Refactored code output
100%
100%
No hardcoded secrets
100%
100%
Dead code removed
100%
100%
Technical debt prioritization
100%
100%
Test/verification notes
100%
83%
Proposed changes and impact
100%
100%
Without context: $0.7351 · 3m 4s · 22 turns · 71 in / 12,514 out tokens
With context: $1.4040 · 4m 36s · 39 turns · 86 in / 17,259 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.