CtrlK
BlogDocsLog inGet started
Tessl Logo

refactor

Safely refactor code while preserving behavior

59

1.00x
Quality

40%

Does it follow best practices?

Impact

91%

1.00x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./music-analytics-api-with-db-routed/.claude/skills/refactor/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

Order Processing Refactor

Refactor untested code — write tests first

Criteria
Without context
With context

Tests written first

100%

100%

Tests run before changes

100%

100%

Tests run after changes

100%

100%

Test file present

100%

100%

Docstrings on new functions

100%

100%

Behavior preserved

100%

100%

Helpers extracted

100%

100%

Coverage gaps noted

100%

100%

No behavior changes described

100%

100%

99%

-1%

Text Pipeline Cleanup

Refactor with existing tests — preserve behavior

Criteria
Without context
With context

Tests run before

100%

100%

Tests run after

100%

100%

Docstrings on new functions

100%

100%

Behavior preserved

100%

100%

Duplication removed

100%

100%

Diff review noted

100%

100%

Coverage gaps identified

100%

100%

No logic changes

100%

100%

Incremental approach described

100%

80%

75%

Sales Report Module Refactoring

Extract helpers from complex function with docstrings

Criteria
Without context
With context

Tests written before refactoring

0%

0%

Tests run before changes

0%

30%

Tests run after changes

100%

100%

Helpers extracted

100%

100%

Docstrings on extracted functions

100%

100%

Behavior preserved

100%

93%

Test file present

100%

100%

Coverage gaps identified

100%

100%

Incremental approach

100%

60%

Repository
datacamp/files-software-development-claude-code
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

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.