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

54%

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 skill body is well-sectioned and safety-conscious, but its guidance is abstract: no concrete refactor technique, command, or example is given, and the single referenced file for detailed patterns is missing from the bundle. The out-of-context "Behavior preservation and evidence" caveats and the verbatim-duplicated intro add tokens without adding actionable instruction.

Suggestions

Inline one or two concrete, executable patterns (e.g., a specific duplication-detection approach or the exact test/regression command to run) since the referenced `resources/implementation-playbook.md` does not exist in the bundle — currently no concrete technique is available anywhere.

Fix or remove the dangling reference: both the Instructions and Resources sections point to `resources/implementation-playbook.md`, but no such file (or references/ directory) is present.

Delete the verbatim repeat of the frontmatter description at the top of the body and trim the "Behavior preservation and evidence" section, which discusses missing examples (EmailService, Logger, CodeQL, discount logic) that appear nowhere in the skill.

DimensionReasoningScore

Conciseness

The body opens by duplicating the frontmatter description verbatim ("You are a code refactoring expert specializing in clean code principles, SOLID design patterns...") and the Context section ("The user needs help refactoring code to make it cleaner, more maintainable...") restates the same purpose, while "Behavior preservation and evidence" inlines dense caveats about material ("EmailService and Logger are missing", "generic execute($QUERY)") that exists nowhere in the skill. The remaining sections are lean, so it is mostly efficient but has several padded or out-of-context passages that could be trimmed — matching anchor 3 rather than 2 because the bulk of the body is not explanatory filler.

3 / 5

Actionability

Instructions are high-level directives only — "Identify high-impact refactor candidates and risks", "Break work into small, testable steps", "Validate with tests and targeted regression checks" — with no concrete technique, command, or worked example of a refactor, which matches anchor 2's "high-level hints but missing the specific steps to execute". This is not a 3 because there is no pseudocode or partially complete concrete guidance either, and the promised detailed patterns live in `resources/implementation-playbook.md`, a file that does not exist in the bundle.

2 / 5

Workflow Clarity

A rough sequence exists (identify candidates → break into steps → apply → validate with tests → produce a plan per the Output Format section), but validation checkpoints are implicit — no test command, no "only proceed when tests pass" gate, and no fix-and-retry loop for a skill that makes batch code changes. This matches anchor 3 ("steps listed but validation gaps; sequence present but checkpoints missing or implicit") and falls short of anchor 4's "most checkpoints present".

3 / 5

Progressive Disclosure

Section structure is good (Use/Do-not-use, Instructions, Safety, Output Format, Resources) and the external reference is clearly signaled in both Instructions ("If detailed patterns are required, open `resources/implementation-playbook.md`") and a dedicated Resources section — but that referenced file does not exist in the bundle (no references/, scripts/, assets/, or resources/ directory), and the "Behavior preservation and evidence" section inlines commentary that clearly belongs in the missing playbook. This sits between anchors 2 and 3: better organized than "minimal structure", but the dangling reference and misplaced inline content keep it below 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 communicates a recognizable domain (refactoring, clean code, SOLID) but is written in second person, lists only generic actions, and provides no "use when" trigger guidance. It would benefit from a third-person rewrite with concrete capability verbs and an explicit trigger clause.

Suggestions

Rewrite in third person with concrete capabilities, e.g., "Analyzes and refactors code to remove duplication, simplify modules, and align implementations with clean-code standards."

Add an explicit trigger clause, e.g., "Use when the user asks to clean up, refactor, simplify, or de-duplicate a codebase, or to reduce technical debt before feature work."

Include natural trigger synonyms users actually say — "clean up code", "code smells", "technical debt" — rather than only "refactoring" and "clean code".

DimensionReasoningScore

Specificity

The description names the domain and a pair of generic actions — "Analyze and refactor the provided code to improve its quality, maintainability, and performance" — which lands at anchor 3 (domain + 1-2 actions, not comprehensive), but the second-person opener "You are a code refactoring expert" incurs the rubric's 1-point voice penalty, bringing it to 2. Phrases like "modern software engineering best practices" are domain labels, not concrete actions, so it does not reach anchor 4.

2 / 5

Completeness

The "what" is stated clearly ("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 per the judging guidelines caps completeness at 3 — matching anchor 3's "clear 'what' but 'when' is missing or only weakly implied".

3 / 5

Trigger Term Quality

"code refactoring", "refactor", and "clean code" are natural terms users would say, but common variations and synonyms are missing — "clean up code", "simplify", "code smells", "technical debt" — matching anchor 3 ("Some relevant keywords but missing common variations or synonyms"). It is above anchor 2 because the keywords present are genuinely natural rather than generic, but below anchor 4 because coverage stops at the two most obvious terms.

3 / 5

Distinctiveness Conflict Risk

"clean code principles, SOLID design patterns" carves out a recognizable niche, but the description gives no trigger phrases that would separate it from adjacent code-quality skills (code review, code simplification, tech-debt cleanup), so it "could still overlap with similar skills" — anchor 3. It is more specific than anchor 2's very broad "helps with document files" framing but lacks the distinct triggers needed for anchor 4.

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