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.

43

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 ./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 body has a sensible skeleton (trigger scoping, instructions, safety, output format) at a lean length, but it delivers almost no executable guidance — the concrete patterns are promised in a reference file that does not exist in the bundle, validation is a bare mention with no checkpoint, and the description is restated twice. It reads as a template shell rather than operational instructions.

Suggestions

Fix the dangling reference: 'resources/implementation-playbook.md' is referenced twice but no such file (or resources/ directory) exists in the bundle — either ship the playbook or remove the pointer.

Add one concrete anchor to the Instructions, e.g. a short example of a refactor step (extract duplicated logic into a named helper, run the affected test file, commit only if green) so the guidance is executable rather than aspirational.

Insert an explicit validation checkpoint into the workflow ('after each step, run the affected tests; if failing, revert before proceeding') and delete the duplicate persona/Context paragraphs that restate the description.

DimensionReasoningScore

Conciseness

The body is short and mostly lean, but the opening paragraph repeats the frontmatter description verbatim, the 'Context' section restates it again ('The user needs help refactoring code to make it cleaner, more maintainable...'), and the 'Limitations' section is generic boilerplate ('Use this skill only when the task clearly matches the scope described above'). This is 'mostly efficient but includes some unnecessary explanation or could be tightened' rather than the minor-trim profile of anchor 4.

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 criteria, commands, patterns, or examples of what a refactor step looks like. The Output Format section names deliverables but not their content, matching 'minimal concrete guidance; high-level hints but missing the specific steps to execute'. Not 3 because there is no partially-complete executable detail anywhere — the concrete material is deferred to a reference file.

2 / 5

Workflow Clarity

A rough sequence exists (identify candidates → break into steps → apply changes → 'Validate with tests and targeted regression checks'), so validation is named but as a terminal step with no checkpoints, no feedback loop for failures, and no guidance on when to stop or re-validate. This matches 'steps listed but validation gaps; sequence present but checkpoints missing or implicit'. Not 4 because there is no explicit validation checkpoint between steps and no error-recovery guidance for a workflow that modifies code in increments.

3 / 5

Progressive Disclosure

The body is under 50 lines and cleanly sectioned (Use when / Do not use / Instructions / Safety / Output Format), and it defers detail via 'If detailed patterns are required, open resources/implementation-playbook.md' — but no resources/, references/, scripts/, or assets/ directories exist in the bundle, so this reference is a dangling path that would fail when followed. Scored against the actual bundle structure, structure is present but navigation breaks, matching anchor 3 rather than 4.

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 states a recognizable domain (refactoring, clean code) and one generic action, but is padded with persona language in second person, lacks any 'use when' trigger clause, and misses the natural phrases a user would say. It reads like a system-prompt persona rather than a skill description optimized for triggering.

Suggestions

Rewrite in third person and lead with concrete capabilities, e.g. 'Refactors code to reduce duplication and complexity, applies SOLID and clean-code principles, and produces a prioritized cleanup plan.'

Append an explicit trigger clause: 'Use when the user asks to refactor, clean up, simplify, or pay down technical debt in a codebase.'

Replace the persona sentence ('You are a code refactoring expert...') — it adds no capability information and consumes the description's most valuable tokens.

DimensionReasoningScore

Specificity

The only concrete actions are 'Analyze and refactor the provided code to improve its quality, maintainability, and performance'; the rest is persona filler ('You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices') with no concrete techniques or deliverables. This sits between anchor 3 (names domain and 1-2 actions) and anchor 2 (generic actions), and the second-person 'You are' opening incurs the mandated -1 penalty, landing it at 2.

2 / 5

Completeness

A 'what' is present ('Analyze and refactor the provided code to improve its quality, maintainability, and performance') but there is no 'Use when...' clause or any trigger guidance, which caps completeness at 3 per the judging guidelines. Not 4 because the 'when' is entirely missing rather than merely vague, and the 'what' itself leans generic ('improve its quality').

3 / 5

Trigger Term Quality

Relevant keywords users would say are present ('refactor', 'code', 'clean code'), but common natural phrases like 'clean up code', 'technical debt', 'code smells', 'tidy up', or 'improve code quality' are absent, matching 'some relevant keywords but missing common variations or synonyms'. Not 4 because a user asking to 'clean up this mess' or 'reduce duplication' would not naturally match this wording; not 2 because 'refactor' is a genuinely natural, domain-specific term.

3 / 5

Distinctiveness Conflict Risk

The refactoring/clean-code framing ('specializing in clean code principles, SOLID design patterns') is somewhat specific, but it would overlap with code-review, testing, and general coding-assistant skills since no distinct triggers separate it. Matches 'somewhat specific but could still overlap with similar skills'; not 4 because nothing in the description distinguishes it from adjacent skills like code review or bug fixing.

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