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.

44

Quality

43%

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 ./docs/v19.7/configuration/agent/skills_external/antigravity-awesome-skills-main/skills/codebase-cleanup-refactor-clean/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

42%Weight 40%Scale 1-5

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

The skill body is well-sectioned (use/do-not-use guidance, safety constraints, and an output format are all present) but offers almost no executable substance — instructions are abstract directives, and the one file that would carry the detailed patterns (resources/implementation-playbook.md) is missing from the bundle entirely. It also pads token budget by repeating the frontmatter persona and restating obvious context.

Suggestions

Either add the referenced `resources/implementation-playbook.md` with the detailed refactor patterns, or remove both references to it — a dangling path in Instructions and Resources makes the guidance unactionable.

Add one concrete anchor to the Instructions, e.g. a short example of a prioritized refactor step (before/after snippet) or a specific technique checklist (extract method, inline variable, guard clauses), so the guidance is executable rather than descriptive.

Make validation an explicit gate with a feedback loop ('run tests after each step; if failing, revert that step before proceeding') and delete the duplicated persona paragraph and Context section, which restate the frontmatter description.

DimensionReasoningScore

Conciseness

The body is short and mostly efficient, but it duplicates the frontmatter description verbatim ("You are a code refactoring expert specializing in clean code principles, SOLID design patterns...") and the Context section restates what is already evident from the title and description ("The user needs help refactoring code to make it cleaner, more maintainable..."). This matches anchor 3 ('mostly efficient but includes some unnecessary explanation or could be tightened') rather than anchor 4, since two whole sections add little.

3 / 5

Actionability

The Instructions are high-level directives ("Identify high-impact refactor candidates and risks", "Break work into small, testable steps", "Apply changes with a focus on readability and stability") with no concrete commands, tooling, techniques, or examples of what a refactor step looks like. This fits anchor 2 ('minimal concrete guidance; high-level hints but missing the specific steps to execute'); it is not score 1 because the output format and safety constraints do add some concrete structure, and it is not score 3 because nothing here is executable — even the promised detailed patterns live in a referenced file that does not exist in the bundle.

2 / 5

Workflow Clarity

A rough sequence is present (identify candidates -> break into steps -> apply changes -> "Validate with tests and targeted regression checks"), and validation is at least mentioned, so this clears anchor 2. But there are no explicit checkpoints or feedback loops (validate -> fix -> re-validate) for an operation class the rubric flags as needing them (batch changes to a codebase), leaving implicit what should be an explicit gate, which matches anchor 3.

3 / 5

Progressive Disclosure

Section structure is clean and the reference is clearly signaled in a dedicated Resources section, but the body twice points to `resources/implementation-playbook.md` and no such file (or any bundle directory) exists in the skill, so the promised detailed patterns are unreachable. Per the guideline to score against the actual bundle structure rather than references alone, this dangling reference prevents a 4-5: navigation is advertised but broken.

3 / 5

Total

11

/

20

Passed

Description

45%Weight 40%Scale 1-5

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 communicates a clear capability (analyze and refactor code for quality, maintainability, performance) but is written in second-person persona voice, omits any 'use when' trigger guidance, and relies on generic professional phrasing rather than the natural terms a user would actually say. It reads more like a system-prompt persona than a skill description, which limits its triggerability and distinctiveness.

Suggestions

Rewrite in third person and lead with the concrete actions, e.g. 'Refactors and cleans up codebases: removes duplication, applies SOLID and clean-code principles, improves maintainability.'

Add an explicit trigger clause, e.g. 'Use when the user asks to refactor, clean up, tidy, or pay down tech debt in code, or wants code aligned with clean-code standards.'

Include natural user phrasings and synonyms ('clean up this code', 'code smells', 'tech debt') to improve trigger-term coverage and reduce overlap with code-review skills.

DimensionReasoningScore

Specificity

The description names the domain ("code refactoring", "clean code principles, SOLID design patterns") and two actions ("Analyze and refactor the provided code"), which sits at the anchor-3 level, but it opens in second person ("You are a code refactoring expert"), which the judging guidelines penalize by reducing specificity by 1. It is not score 1 because concrete actions and a concrete domain are present.

2 / 5

Completeness

The 'what' is clear ("Analyze and refactor the provided code to improve its quality, maintainability, and performance"), but there is no 'Use when...' clause or equivalent trigger guidance anywhere in the description, which caps completeness at 3 per the judging guidelines. It is not score 2 because the 'what' is specific rather than vague.

3 / 5

Trigger Term Quality

It contains some genuinely natural keywords users would say ("refactoring", "clean code", "code quality", "maintainability"), but misses common variations and synonyms like "clean up code", "tidy up", "tech debt", "code smells", or "improve code quality" as explicit triggers. It fits anchor 3 ('some relevant keywords but missing common variations') better than anchor 4, whose example shows tighter natural-phrase coverage.

3 / 5

Distinctiveness Conflict Risk

"Code refactoring" and "clean code" carve out a recognizable niche, but the phrasing broadly overlaps with code-review, linting, and general code-improvement skills, so it could still trigger for the wrong skill. It lacks the distinct, concrete trigger phrases of anchor 4-5 examples like 'Extract text and tables from PDF files'.

3 / 5

Total

11

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
duclm1x1/Dive-Ai
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.