CtrlK
BlogDocsLog inGet started
Tessl Logo

dry-refactoring

Guided workflow to eliminate copy-paste duplication detected by jscpd. Refactor clones using extract function, module, constant, or base class strategies.

67

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

92%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 content is lean, well-structured, and provides an executable workflow with a validation feedback loop. Its only real gap is that the refactoring-strategy code blocks are illustrative comments rather than runnable examples.

DimensionReasoningScore

Conciseness

The body is lean and executable: real jscpd commands with flags and a tight 8-step workflow, with no padding explaining what code duplication is or how libraries work.

5 / 5

Actionability

jscpd invocations are concrete and copy-paste ready, but the refactoring-strategy "examples" are just // Before / // After comments rather than executable code, leaving minor gaps.

4 / 5

Workflow Clarity

The 8-step sequence is explicit and includes a verify-then-retry feedback loop (step 7 "Re-run jscpd to confirm the clone is eliminated"), with impact-prioritization guidance.

5 / 5

Progressive Disclosure

A short, single-purpose skill with well-organized sections and no bundle files; cross-links to the jscpd skill are one level deep and clearly signaled, so the simple-skill exception applies.

5 / 5

Total

19

/

20

Passed

Description

71%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 is specific and distinct, naming concrete refactoring strategies and a clear tool (jscpd). Its main weakness is the absence of an explicit "Use when..." trigger clause, which caps completeness at 3.

Suggestions

Add an explicit trigger clause, e.g. "Use when jscpd reports duplicate code blocks or the user asks to remove copy-paste duplication / make code DRY."

Include common synonyms such as "DRY" or "duplicate code" so the description matches more of the phrasings users naturally say.

Consider naming a second concrete outcome (e.g. "and re-runs jscpd to confirm elimination") to round out the action list.

DimensionReasoningScore

Specificity

Names the domain ("copy-paste duplication") and lists multiple concrete strategies ("extract function, module, constant, or base class"), matching the comprehensive-coverage anchor.

5 / 5

Completeness

It has a clear "what" but no explicit "Use when..." trigger clause ("detected by jscpd" only weakly implies when), so per the guideline completeness is capped at 3.

3 / 5

Trigger Term Quality

Natural terms like "copy-paste duplication", "clones", "refactor", and "jscpd" are present, but common synonyms such as "DRY" or "duplicate code" are missing, so it sits at good-not-comprehensive.

4 / 5

Distinctiveness Conflict Risk

Tying the skill to jscpd-detected clones gives it a clear niche with only minor overlap risk against general refactoring skills, fitting the "mostly distinct" anchor.

4 / 5

Total

16

/

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.

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

relative_links

Relative link issues: 2 suspicious

Warning

Total

15

/

16

Passed

Repository
kucherenko/jscpd
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.