similarity
Find duplicate code across languages and plan refactoring with AI
All Skills in This Repository (5)
Pure Emerald Level Indicatorscheck-similarity-py
Identify duplicate Python functions and classes using AST-based similarity analysis.
check-similarity-rs
Identify duplicate Rust code using AST-based similarity analysis.
check-similarity-ts
Detect duplicate code blocks in TypeScript/JavaScript projects using AST-based similarity.
check-similarity
Detect duplicate code across languages using AST-based similarity tools.
check-similarity-mbt
Detect duplicate MoonBit code in MBT files using AST-based similarity analysis.
Frequently Asked Questions
FAQPage SchemaHow to install similarity?โผ
Run `npx skills add mizchi/similarity --all -g -y` in your terminal to install all skills in this suite globally.
How to find duplicate code in my project?โผ
Run the matching CLI for your language, such as `similarity-ts .` or `similarity-py .`, and it reports duplicate functions ranked by similarity score. Your AI agent can then analyze the output and propose a refactoring plan.
Which programming languages does similarity support?โผ
TypeScript/JavaScript is production-ready, Python and Rust are in beta, and Elixir, MoonBit, CSS, Markdown, Go, Java, C/C++, C#, and Ruby are experimental.
Does similarity work with Claude Code and other AI agents?โผ
Yes. The skills follow the universal SKILL.md standard and produce AI-friendly output designed to be pasted directly into Claude, GPT-4, or similar assistants.
Can I use similarity in CI pipelines?โผ
Yes. Add the `--fail-on-duplicates` flag with a threshold like 0.95 to make the command exit with an error when near-exact duplicates are found.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core