mizchimizchiCommunityยท5 Agent Skills Included

similarity

Find duplicate code across languages and plan refactoring with AI

Detects duplicate and near-identical functions, types, and classes across TypeScript, Python, Rust, MoonBit, and more using AST-based analysis. Eliminates manual code review for copy-pasted logic by ranking duplicates by similarity score and impact. Feeds structured reports directly to your AI agent so it can propose concrete before-and-after refactoring plans.
npx skills add mizchi/similarity --all -g -y
Available:

Explains the multi-language crate architecture and instructs the AI agent to always use the shared calculate_tsed function when computing code similarity to avoid false positives.

All Skills in This Repository (5)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’