CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

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 ./skills/code-refactoring-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 reads as a generic template with abstract instructions that Claude already knows how to follow without guidance. It lacks any concrete code examples, specific refactoring patterns, or executable steps that would make it genuinely useful. The referenced implementation playbook is not provided, meaning the skill's only potential source of actionable content is missing.

Suggestions

Add concrete before/after code examples demonstrating at least 2-3 specific refactoring patterns (e.g., Extract Method, Replace Conditional with Polymorphism) so the skill provides actionable, executable guidance.

Remove the 'Context', 'Do not use this skill when', and 'Limitations' sections—these are boilerplate that Claude doesn't need and waste tokens.

Add explicit validation checkpoints to the workflow, e.g., 'Run tests after each refactoring step; if any fail, revert the last change before proceeding.'

Either provide the referenced `resources/implementation-playbook.md` bundle file or inline the key patterns and examples directly in the skill body.

DimensionReasoningScore

Conciseness

The content is verbose and explains things Claude already knows—what code smells are, when to use refactoring, generic 'clean code' context. The 'Do not use this skill when' and 'Limitations' sections add boilerplate without actionable value. The 'Context' section restates the description. Nearly every section could be cut or tightened significantly.

1 / 3

Actionability

The instructions are entirely abstract ('Assess code smells', 'Propose a refactor plan', 'Apply changes in small slices') with no concrete code examples, specific commands, patterns, or executable guidance. There is nothing copy-paste ready or specific enough to differentiate this from generic advice.

1 / 3

Workflow Clarity

There is a rough sequence implied (assess → plan → apply → test), but validation checkpoints are vague ('verify regressions', 'ensure tests pass') with no explicit feedback loops or concrete verification steps. For a refactoring skill involving potentially destructive changes, this lacks the rigor needed for a score of 3.

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 reference is unverifiable and potentially broken. The main content itself is thin enough that the split feels like it's hiding the actual substance rather than organizing it.

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.