CtrlK
BlogDocsLog inGet started
Tessl Logo

codebase-cleanup-refactor-clean

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.

32

Quality

26%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./plugins/antigravity-awesome-skills/skills/codebase-cleanup-refactor-clean/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

20%Scale 1-3

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This skill is essentially a collection of generic software engineering platitudes with no concrete, actionable content. It tells Claude to do things Claude already knows how to do (apply clean code principles, break work into steps) without providing any novel knowledge, specific patterns, executable examples, or decision frameworks. The referenced implementation playbook could potentially redeem it, but it doesn't exist in the bundle.

Suggestions

Add concrete before/after code examples demonstrating specific refactoring patterns (e.g., Extract Method, Replace Conditional with Polymorphism) rather than abstract instructions.

Remove the 'Context' section and 'when to use/not use' boilerplate — these waste tokens on information Claude can infer. Replace with specific decision criteria or heuristics for prioritizing refactors.

Include a concrete workflow with validation checkpoints, e.g., 'Run existing tests before any change → make one refactor → run tests again → commit if green → proceed to next refactor'.

Either provide the referenced `resources/implementation-playbook.md` bundle file with actual patterns and examples, or inline the most critical patterns directly in the skill.

DimensionReasoningScore

Conciseness

The content is verbose and padded with information Claude already knows. It repeats the system prompt description, includes 'when to use / not use' sections that are meta-guidance rather than actionable instruction, explains obvious context ('The user needs help refactoring code'), and the instructions are generic platitudes ('focus on readability and stability') rather than novel knowledge.

1 / 3

Actionability

The skill provides entirely vague, abstract guidance with no concrete code examples, specific commands, or executable steps. Instructions like 'Identify high-impact refactor candidates' and 'Apply changes with a focus on readability' describe rather than instruct. There are no concrete refactoring patterns, no before/after code examples, and no specific techniques demonstrated.

1 / 3

Workflow Clarity

There is a rough sequence implied (identify → break into steps → apply → validate), and the output format provides some structure. However, the steps are vague with no explicit validation checkpoints, no feedback loops for error recovery, and no concrete criteria for when to proceed or stop. The mention of 'validate with tests' is implicit rather than a clear checkpoint.

2 / 3

Progressive Disclosure

The skill references `resources/implementation-playbook.md` for detailed patterns, which is a reasonable one-level-deep reference. However, no bundle files are provided, so the referenced file doesn't actually exist, and the main content itself lacks enough substance to serve as a useful overview — it's mostly boilerplate rather than a meaningful entry point.

2 / 3

Total

6

/

12

Passed

Description

32%Scale 1-3

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description uses first/second person framing ('You are...') which violates the third-person voice requirement. It provides a general sense of the domain (code refactoring) but lacks concrete actions, explicit trigger guidance, and natural user keywords. The description reads more like a system prompt persona definition than a skill description optimized for skill selection.

Suggestions

Add an explicit 'Use when...' clause with trigger terms like 'refactor', 'clean up code', 'code smell', 'technical debt', 'simplify', 'reduce complexity'.

Replace vague outcomes ('improve quality, maintainability, and performance') with specific concrete actions like 'extract methods, decompose large classes, apply SOLID principles, remove code duplication, simplify conditional logic'.

Rewrite in third person voice (e.g., 'Analyzes and refactors code to apply clean code principles...') instead of the current second person 'You are...' framing.

DimensionReasoningScore

Specificity

Names the domain (code refactoring) and some actions ('analyze and refactor'), but the specific capabilities are vague — 'improve quality, maintainability, and performance' are abstract outcomes rather than concrete actions like 'extract methods, rename variables, decompose classes.'

2 / 3

Completeness

Describes what it does (analyze and refactor code) but has no 'Use when...' clause or equivalent explicit trigger guidance. Per the rubric, a missing 'Use when...' clause caps completeness at 2, and the 'what' portion is also weak and vague, placing this at a 1.

1 / 3

Trigger Term Quality

Includes some relevant keywords like 'refactoring', 'clean code', 'SOLID', and 'design patterns', but misses common user terms like 'simplify code', 'reduce complexity', 'code smell', 'technical debt', or 'DRY'. The terms lean more toward textbook jargon than natural user language.

2 / 3

Distinctiveness Conflict Risk

The focus on refactoring and SOLID principles provides some distinction, but it could easily overlap with general code review skills, code optimization skills, or code quality analysis skills. The broad scope of 'modern software engineering best practices' increases conflict risk.

2 / 3

Total

7

/

12

Passed

Validation

90%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

10

/

11

Passed

Repository
popey/claude-code-skills
Reviewed

Table of Contents

Is this your skill?

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.