CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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.

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 ./plugins/AI-Agents-Safe-Coding-Skills-claude/skills/codebase-cleanup-refactor-clean/SKILL.md

The canonical home for this skill is codebase-cleanup-refactor-clean in rmyndharis/antigravity-skills

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 is well-structured with sensible use/don't-use, safety, and output-format sections, but it delivers almost no executable guidance: instructions are abstract imperatives, the detail-bearing playbook file it twice points to is missing from the bundle, and the opening paragraph redundantly restates the description. As written, an agent following it would stall at 'open the playbook'.

Suggestions

Either create 'resources/implementation-playbook.md' with the detailed patterns or remove both references to it; a dangling path is worse than no reference.

Make the Instructions concrete: how to spot refactor candidates (e.g., duplication thresholds, long functions, SOLID violations), how to run the test suite, and a validate-fix-retry loop for each refactor step.

Delete the duplicated role paragraph — the frontmatter description already establishes the persona, so those tokens are pure overhead.

DimensionReasoningScore

Conciseness

The body is short and sectioned, but it opens by duplicating the frontmatter description verbatim ('You are a code refactoring expert specializing in clean code principles, SOLID design patterns...') and repeats the same playbook pointer in both Instructions and Resources; it could be tightened.

3 / 5

Actionability

The instructions are high-level hints with no concrete guidance: 'Identify high-impact refactor candidates and risks', 'Break work into small, testable steps', 'Validate with tests and targeted regression checks' give no commands, criteria, examples, or specific steps to execute — and the file that would hold the details ('resources/implementation-playbook.md') does not exist.

2 / 5

Workflow Clarity

A rough sequence exists (identify candidates → break into steps → apply → validate), but checkpoints are implicit and vague: 'Validate with tests and targeted regression checks' names no test command or regression procedure, and for codebase-wide cleanup of accumulated debt there is no validate-fix-retry feedback loop.

3 / 5

Progressive Disclosure

Sections are well organized and the single reference is clearly signaled in two places, but scoring against the actual bundle (which is empty) shows the referenced 'resources/implementation-playbook.md' does not exist — a dangling pointer that breaks navigation rather than aiding it.

3 / 5

Total

11

/

20

Passed

Description

52%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 names a clear domain and reasonable keywords, but it is written in second person, its actions are generic verbs rather than concrete capabilities, and it entirely lacks a 'use when' trigger clause. It reads as a persona statement more than a triggerable skill description.

Suggestions

Rewrite in third person and list concrete actions, e.g., 'Analyzes code for SOLID violations, code smells, and duplication; refactors modules into smaller testable units; aligns codebases with clean-code standards.'

Append an explicit trigger clause: 'Use when the user asks to refactor, clean up, or simplify code, reduce technical debt or duplication, or prepare a codebase for new feature work.'

Add natural synonyms users would say ('code smells', 'technical debt', 'improve readability') to strengthen trigger term coverage and distinctiveness.

DimensionReasoningScore

Specificity

The description names the domain ('code refactoring', 'clean code principles', 'SOLID design patterns') but the only actions are the generic verbs 'Analyze and refactor the provided code to improve its quality, maintainability, and performance' — matching the anchor for domain named with minimal/generic actions (3), then reduced by 1 per the rubric's voice penalty because it opens with second person: 'You are a code refactoring expert'.

2 / 5

Completeness

The 'what' is present ('Analyze and refactor the provided code to improve its quality, maintainability, and performance') but there is no 'Use when...' clause or equivalent trigger guidance, which caps completeness at 3 per the rubric guidelines.

3 / 5

Trigger Term Quality

Includes natural terms users would actually say such as 'code refactoring', 'clean code', 'code quality', and 'maintainability', giving good keyword coverage; a few common variations are missing (e.g., 'simplify', 'reduce duplication', 'technical debt', 'code smells').

4 / 5

Distinctiveness Conflict Risk

The clean-code/SOLID framing carves out a niche, but 'code refactoring' and 'best practices' are broad enough to overlap with general coding, code-review, and simplification skills; it is somewhat specific but could still trigger for the wrong skill.

3 / 5

Total

12

/

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

administrakt0r/AI-Agents-Safe-Coding-Skills

Path

plugins/AI-Agents-Safe-Coding-Skills-claude/skills/codebase-cleanup-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.