CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

code-refactoring-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.

Quality

56%

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 ./skills/code-refactoring-refactor-clean/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

50%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 body is well-structured with sensible use/skip guidance, safety constraints, and a coherent instruction arc, but it stays at a high level of abstraction — no concrete refactor techniques or examples — and its only path to depth points to a file absent from the bundle. The duplicated persona sentence and the orphaned 'Behavior preservation and evidence' caveats further reduce token efficiency and clarity.

Suggestions

Ship resources/implementation-playbook.md or remove both references to it plus the 'Behavior preservation and evidence' section that summarizes its contents — the skill's only depth path is currently broken.

Embed an explicit validation loop in the workflow, e.g. 'After each slice, run the test suite; if regressions appear, revert the slice before proceeding to the next step.'

Delete the opening persona paragraph (it duplicates the frontmatter description verbatim) and replace one abstract bullet with a small concrete before/after refactor example.

DimensionReasoningScore

Conciseness

Mostly efficient — sections are short, and it does not explain concepts Claude already knows (no SOLID primer, no tool tutorials). However, the first body paragraph repeats the frontmatter description verbatim ('You are a code refactoring expert specializing in clean code principles...'), and the two dense 'Behavior preservation and evidence' paragraphs restate caveats about a playbook that is not in the bundle — both could be trimmed. This fits 'mostly efficient but includes some unnecessary explanation or could be tightened' rather than the efficient anchor.

3 / 5

Actionability

The Instructions give a concrete arc — 'Assess code smells, dependencies, and risky hotspots', 'Propose a refactor plan with incremental steps', 'Apply changes in small slices and keep behavior stable', 'Update tests and verify regressions' — but no specific techniques, commands, or before/after examples, and the one pointer to detail ('open resources/implementation-playbook.md') is a dead path since that file does not exist. This matches 'some concrete guidance but incomplete' rather than 'mostly executable guidance with minor gaps'.

3 / 5

Workflow Clarity

A clear sequence is present (assess → plan → apply in small slices → update tests), and validation is mentioned ('Update tests and verify regressions', 'ensure tests pass'), but the checkpoints are scattered across Instructions and Safety bullets rather than embedded as explicit steps with feedback loops (e.g., run tests after each slice, revert on regression). This fits 'steps listed but validation gaps; checkpoints missing or implicit' rather than the anchor with most checkpoints explicitly in the flow.

3 / 5

Progressive Disclosure

The body is well organized into clear sections and the reference is prominently signaled ('## Resources — resources/implementation-playbook.md for detailed patterns and examples'), one level deep. However, that referenced file does not exist anywhere in the bundle, and the 'Behavior preservation and evidence' section inlines dense caveat material (repository find_by_id, EmailService, execute($QUERY), CodeQL) that evidently belongs in that missing file. Structure is present but organization is undermined by the broken reference, matching 'some structure but could be better organized' rather than 'most content appropriately placed'.

3 / 5

Total

12

/

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 clearly states what the skill does (analyze and refactor code) but omits any 'use when' trigger guidance and opens with a second-person persona sentence that weakens specificity. It lands in the middle of the scale: recognizable domain and a couple of natural terms, but generic breadth around 'best practices' and missing trigger phrases limit its discoverability and distinctiveness.

Suggestions

Add an explicit trigger clause, e.g. 'Use when the user asks to refactor, clean up, or simplify code, reduce duplication or complexity, or fix code smells.'

Rewrite in third person ('Refactors code by applying clean code principles and SOLID design patterns...') instead of the second-person 'You are a code refactoring expert' persona opening.

Replace the vague 'modern software engineering best practices' with concrete capabilities such as 'reduce duplication, extract functions, simplify conditionals, and preserve existing behavior' to sharpen specificity and distinctiveness.

DimensionReasoningScore

Specificity

The description names the domain ('clean code principles, SOLID design patterns') and offers two generic actions — 'Analyze and refactor the provided code to improve its quality, maintainability, and performance' — which fits the anchor for naming the domain with minimal/generic actions (base 3). The opening 'You are a code refactoring expert' is second-person voice, so the rubric's 1-point voice penalty applies, reducing the score to 2.

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 explicit trigger guidance anywhere in the description, which caps completeness at 3 per the judging guidelines. It is not a 2 because the 'what' is concrete rather than vague, and not a 4 because 'when' is entirely absent rather than merely imprecise.

3 / 5

Trigger Term Quality

It includes strong natural terms users would say — 'code refactoring', 'refactor', 'clean code' — but misses common variations and synonyms like 'clean up code', 'simplify', 'code smells', 'reduce duplication', or 'technical debt'. This matches 'some relevant keywords but missing common variations' rather than the good-coverage anchor, which would require a fuller spread of natural phrasings.

3 / 5

Distinctiveness Conflict Risk

Refactoring is a recognizable niche, but the framing 'modern software engineering best practices' and the goals 'quality, maintainability, and performance' are generic enough to overlap with general coding, code-review, and simplify-type skills, and no distinct trigger phrases differentiate it. This fits 'somewhat specific but could still overlap with similar skills' rather than 'mostly distinct', which would require tighter scoping.

3 / 5

Total

11

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

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

Warning

Total

15

/

16

Passed

Repository

sickn33/agentic-awesome-skills

Path

skills/code-refactoring-refactor-clean/SKILL.md

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.