similarity

Community

Detect code duplication and guide refactoring.

Authorjey3dayo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Identify and analyze duplicated code across TypeScript/JavaScript projects to support safer, more maintainable refactoring.

Core Features & Use Cases

  • Detects function-level similarity using the similarity-ts tool (default threshold 0.87) to identify duplicates and guide consolidation.
  • Experimental type-definition similarity checks for interfaces and type aliases to surface cross-cut patterns.
  • Customizable filters (min lines, min tokens, function name/body filters) to narrow results for large codebases.
  • Prioritized guidance for refactoring based on similarity levels to improve maintainability.

Quick Start

Run similarity-ts on your TypeScript/JavaScript codebase to detect duplicated patterns, review the highest similarity pairs, and plan refactoring.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: similarity
Download link: https://github.com/jey3dayo/dotfiles/archive/main.zip#similarity

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.