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.

41

Quality

41%

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

Quality

Content

38%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 brief and reasonably structured but provides only vague, non-executable instructions and points to references that do not exist. The workflow lacks validation checkpoints appropriate for code-modifying operations.

Suggestions

Add concrete, executable guidance — example refactor patterns, specific commands, or code snippets — instead of abstract directives.

Fix the broken and inconsistent playbook references: create the referenced file under one consistent path and use a single markdown link.

Insert explicit validation checkpoints into the workflow (e.g., run tests after each slice, re-validate before moving on) and remove the redundant restatement of the description.

DimensionReasoningScore

Conciseness

The body is mostly terse, but it redundantly restates the frontmatter description verbatim in the opening paragraph, which is unnecessary padding; otherwise efficient.

3 / 5

Actionability

Instructions are high-level directives ("Assess code smells", "Propose a refactor plan", "Apply changes in small slices") with no concrete code, commands, or specific refactor techniques — minimal concrete executable guidance.

2 / 5

Workflow Clarity

A rough sequence is present (assess, plan, apply, test) but there are no explicit validation checkpoints or feedback loops; because refactoring modifies code, missing validation caps this at 3.

3 / 5

Progressive Disclosure

The body references two paths for the playbook ("resources/implementation-playbook.md" and "./sub-skills/implementation-playbook.md") but neither file exists in the bundle, and the inconsistent dual references are confusing rather than clearly signaled.

2 / 5

Total

10

/

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 clear purpose and domain but lacks an explicit "Use when" trigger clause and uses second-person voice. It is adequate but not exemplary, with moderate overlap risk against sibling code-quality skills.

Suggestions

Add an explicit "Use when..." trigger clause naming concrete user phrases (e.g., refactoring tangled code, reducing duplication, fixing code smells).

Switch to third-person voice ("Refactors and cleans tangled code..." instead of "You are a code refactoring expert").

List more specific concrete actions (extract methods, remove duplication, apply SOLID patterns) to raise specificity and distinctiveness.

DimensionReasoningScore

Specificity

Names the domain ("code refactoring expert") and a couple of generic actions ("Analyze and refactor the provided code"), but the actions are not a comprehensive list of concrete refactor techniques; per guideline the second-person voice ("You are a code refactoring expert") reduces the specificity score by 1, bringing 3 to 2.

2 / 5

Completeness

Has a clear "what" (analyze and refactor code to improve quality, maintainability, performance) but no "Use when..." clause or equivalent explicit trigger guidance, which caps completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

Contains relevant natural terms ("refactoring", "clean code principles", "SOLID design patterns") but misses common variations a user would say like "code smells", "tangled code", or "reduce duplication".

3 / 5

Distinctiveness Conflict Risk

"Code refactoring" is a recognizable niche but overlaps broadly with general code-review, simplify, and cleanup skills, so conflict risk remains moderate.

3 / 5

Total

11

/

20

Passed

Validation

87%

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

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

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

Warning

relative_links

Relative link issues: 1 missing

Warning

Total

14

/

16

Passed

Repository
Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI
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.