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 quality, maintainability, and performance.
SkillScore82Maintained
Automatic
◆Coding pack
Last verified 8/29/2026
What it changes
Passed 18 of 22 test cases with the skill, and 9 of 22 without it.
Without skill41%
With skill82%
Checks it passed that the model alone missed
Defines test verification using component render tests.
Includes test validation steps using mock HTTP requests.
Outlines a test verification plan to ensure pricing parity.
and 9 more in the full report
9 fixed9 passed either way4 still failing0 broke
Pass-rate lift
+41 pp
Tokens
+17%
Agent turns
0%
Response time
+8%
Model gemini-3.6-flashMeasured 8/29/2026v118 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 9
Prompt
Add comprehensive Javadoc documentation comments to all public methods in OrderProcessor.java without changing any implementation logic.
What was checked, without and with the skill
Checked
Without skill
With skill
Outputs Javadoc comments directly above the target method signatures.
Missed
Passed
case-02 · gemini-3.6-flash · 8/29/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md51 linessingle file
Refactor and Clean Code
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 quality, maintainability, and performance.
Use this skill when
Cleaning up large codebases with accumulated debt
Removing duplication and simplifying modules
Preparing a codebase for new feature work
Aligning implementation with clean code standards
Do not use this skill when
You only need a tiny targeted fix
Refactoring is blocked by policy or deadlines
The request is documentation-only
Context
The user needs help refactoring code to make it cleaner, more maintainable, and aligned with best practices. Focus on practical improvements that enhance code quality without over-engineering.
Requirements
$ARGUMENTS
Instructions
Identify high-impact refactor candidates and risks.
Break work into small, testable steps.
Apply changes with a focus on readability and stability.
Validate with tests and targeted regression checks.
If detailed patterns are required, open resources/implementation-playbook.md.