content-similarity-checker
Compare document similarity using TF-IDF, cosine similarity, and Jaccard index. Use for plagiarism detection, duplicate finding, or content matching.
npx skills add majiayu000/claude-skill-registry --skill content-similarity-checker --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Content Similarity Checker Compare documents and text for similarity using multiple algorithms. ## Features - **Cosine Similarity**: TF-IDF based comparison - **Jaccard Similarity**: Set-based comparison - **Levenshtein Distance**: Edit distance for short texts - **Batch Comparison**: Compare multiple documents - **Similarity Matrix**: Pairwise comparison of all documents - **Reports**: Detailed similarity reports ## Quick Start ```python from similarity_checker import SimilarityChecker checker = SimilarityChecker() # Compare two texts score = checker.compare( "The quick brown fox jumps over the lazy dog", "A fast brown fox leaps over a sleepy dog" ) print(f"Similarity: {score:.2%}") # Compare documents score = checker.compare_files("doc1.txt", "doc2.txt") ``` ## CLI Usage ```bash # Compare two texts python similarity_checker.py --text1 "Hello world" --text2 "Hello there world" # Compare two files python similarity_checker.py --file1 doc1.txt --file2 doc2.txt # Compare all files in folder python similarity_checker.py --folder ./documents/ --output matrix.csv # Use specific algorithm python similarity_checker.py --file1 doc1.txt --file2 doc2.txt --method jaccard # Find similar doc
- Features
- Quick Start
- CLI Usage
- API Reference
- SimilarityChecker Class
- Similarity Methods
- Cosine Similarity (Default)
- Jaccard Similarity
- Levenshtein (Edit Distance)
- TF-IDF + Cosine
- Batch Comparison
- Compare to Corpus
- Similarity Matrix
- Find Duplicates
Compare two texts python similarity_checker.py --text1 "Hello world" --text2 "Hello there world" Compare two files python similarity_checker.py --file1 doc1.txt --file2 doc2.txt Compare all files in folder python similarity_checker.py --folder ./documents/ --output matrix.csv Use specific algorithm python similarity_checker.py --file1 doc1.txt --file2 doc2.txt --method jaccard Find similar documents (threshold) python similarity_checker.py --folder ./documents/ --threshold 0.7
What does the content-similarity-checker skill do?
Compare document similarity using TF-IDF, cosine similarity, and Jaccard index. Use for plagiarism detection, duplicate finding, or content matching.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill content-similarity-checker --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
