CtrlK
BlogDocsLog inGet started
Tessl Logo

code-pattern-extractor

Analyze codebases to identify reusable code patterns, duplications, and implementation patterns for future development. Use when refactoring code, identifying technical debt, finding opportunities for abstraction, or documenting common patterns in a directory or module. Outputs pattern catalogs, refactoring suggestions, and reusable template code.

76

1.40x
Quality

71%

Does it follow best practices?

Impact

76%

1.40x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/code-pattern-extractor/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

71%

37%

Pattern Catalog for a Python Web Service

Pattern catalog format and categorization

Criteria
Without context
With context

Pattern name heading

25%

62%

Type field present

0%

75%

Frequency field present

100%

100%

Impact field present

0%

100%

Description field present

100%

100%

File:line references

60%

0%

Common variations listed

0%

100%

High/Medium/Low categorization

40%

20%

Pattern types used

0%

0%

Summary section

50%

100%

Pattern Catalog section

0%

100%

Refactoring Suggestions section

0%

100%

Next Steps section

0%

100%

High-frequency first

50%

75%

82%

4%

JavaScript API Layer Duplication Audit

Duplication thresholds and structural similarity analysis

Criteria
Without context
With context

3+ occurrences threshold

50%

16%

5+ lines threshold

100%

100%

Structural similarity focus

100%

91%

Variable name difference acknowledged

100%

90%

fetchOrderWithRetry excluded

100%

100%

Notifications pattern excluded or noted as different

100%

100%

File:line references

40%

100%

Methodology section

100%

100%

High-frequency patterns first

100%

50%

Impact categorization

0%

90%

75%

25%

Refactoring Plan for a React Data-Fetching Module

Refactoring suggestions and JSDoc template code generation

Criteria
Without context
With context

Refactoring heading format

0%

37%

Current state field

12%

75%

Proposed solution field

16%

100%

Benefits bullet list

33%

100%

Numbered implementation steps

62%

62%

utils/ target path in steps

50%

50%

Unit tests step

16%

50%

Estimated effort field

0%

83%

JSDoc template code

90%

100%

Template includes error handling

75%

75%

Trade-offs documented

100%

100%

Migration path included

100%

100%

Only high-value patterns templated

50%

50%

Repository
ArabelaTso/Skills-4-SE
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.