rmc-semantic-overlaps

Detects duplicate Rust logic via semantic similarity across repositories.

29|5|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/molaco/rust-code-mcp --skill rmc-semantic-overlaps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rmc-semantic-overlaps
Source: https://github.com/molaco/rust-code-mcp/tree/main/skills/rmc-semantic-overlaps
Command: npx skills add https://github.com/molaco/rust-code-mcp --skill rmc-semantic-overlaps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you find duplicate or near-duplicate Rust logic even when the code is renamed, moved across crates, or appears in multiple variants of the same idea.

Core Features & Use Cases

  • Chunk-level semantic search: Use free-text queries to locate similar code fragments via vector similarity.
  • Single-item neighbor discovery: Find semantic neighbors for one known qualified item name, returning ranked matches.
  • Workspace-wide overlap auditing: Cluster or pair up similar items across a directory, using cached embeddings to support refactor planning and deduplication efforts.

Quick Start

Run semantic_overlaps on your workspace directory to generate similarity pairs or clusters, then verify the top candidates with who_uses_summary and read_file_content.

Frequently Asked Questions about rmc-semantic-overlaps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find duplicate Rust functions across a workspace using semantic similarity?

Semantic similarity detects duplicate or near-duplicate Rust logic across a workspace by building a hypergraph, indexing item-level vector embeddings, and returning ranked pairs or clusters for refactor planning and deduplication.

Can I locate similar Rust code fragments using a free-text query?

Chunk-level semantic search supports free-text queries to locate similar Rust code fragments via vector similarity, returning ranked matches for single-item neighbor discovery and workspace-wide overlap audits.

What's the best way to identify extraction candidates for Rust refactor planning?

Workspace-wide overlap auditing clusters similar Rust items using cached vector embeddings, identifying extraction candidates and deduplication targets while supporting verification via call-site checks.

Does semantic code similarity work on Rust logic that has been renamed or moved across crates?

Semantic similarity identifies duplicate Rust logic even when code is renamed, moved across crates, or exists in multiple variants, relying on item-level vector embeddings rather than exact text matching.

How do I verify deduplication candidates found through vector-backed code search?

Vector-backed search returns ranked pairs or clusters of similar items, and you verify the top deduplication candidates by performing call-site checks using call-graph verification.

What are the limitations of semantic overlap detection for Rust codebases?

Semantic overlap detection requires hypergraph building and indexing for item resolution before performing vector-backed search, meaning it depends on thresholded matching and may require call-site verification to confirm true duplicates.