account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
\"Calculate text similarity using lexical and semantic methods for matching and deduplication. Use this skill when the user needs to find similar documents, detect near-duplicates, or measure semantic closeness between texts — even if they say 'how similar are these texts',
Claude Code
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity --agent claude-code
Codex
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a codex -y
Cursor
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a cursor -y
Gemini CLI
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a gemini-cli -y
GitHub Copilot
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a github-copilot -y
OpenCode
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a opencode -y
Windsurf
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-nlp-similarity -a windsurf -y
name: "\"algo-nlp-similarity\"" description: "\"Calculate text similarity using lexical and semantic methods for matching and deduplication. Use this skill when the user needs to find similar documents, detect near-duplicates, or measure semantic closeness between texts — even if they say 'how similar are these texts', 'find duplicates', or 'semantic matching'.\"." allowed-tools: Read, Glob, Grep
Text similarity measures how close two texts are in meaning or surface form. Lexical methods (Jaccard, cosine on TF-IDF) compare word overlap. Semantic methods (sentence embeddings) capture meaning even with different words. Choice depends on whether you need exact matching or meaning matching.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: Lexical Similarity ≠ Semantic Similarity "The car is fast" and "The automobile is speedy" have LOW lexical similarity (different words) but HIGH semantic similarity (same meaning). "Bank of the river" and "Bank account" have HIGH lexical similarity but LOW semantic similarity. Choose the method that matches your definition of "similar."
Determine: similarity type needed (lexical or semantic), text preprocessing requirements, scale (pairwise vs all-pairs vs query-to-corpus). **Gate:** Texts preprocessed, method selected.
**Lexical methods:**
**Semantic methods:**
Spot-check: highly similar pairs should be genuinely similar. Low-similarity pairs should be genuinely different. Check threshold calibration. **Gate:** Similarity scores align with human judgment on sample pairs.
Return similarity scores or nearest neighbors.
{
"similarities": [{"text_a": "doc1", "text_b": "doc5", "score": 0.92, "method": "semantic_cosine"}],
"metadata": {"method": "sentence-transformers", "model": "all-MiniLM-L6-v2", "pairs_computed": 500}
}**Input:** Text A: "How to reset my password", Text B: "I forgot my login credentials" **Expected:** Lexical (Jaccard) ≈ 0.07 (almost no word overlap). Semantic ≈ 0.82 (same intent).
| Input | Expected | Why | |-------|----------|-----| | Identical texts | Score = 1.0 | Exact match | | Empty text | Undefined or 0 | Handle gracefully | | Different languages | Lexical=0, semantic depends on model | Multilingual models can match cross-language |
Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.