Skip to content

Flag skills whose descriptions are near-identical to a sibling's - #625

Merged
chrisknvidia merged 6 commits into
mainfrom
devin/1794813679-lookalike-skills
Nov 16, 2026
Merged

chrisknvidia merged 6 commits into
mainfrom
devin/1794813679-lookalike-skills

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

If two installed skills have nearly the same description, the model can't tell which one a request is for. With two Claude Code 2.1.316 skills that had identical descriptions, an HR headcount request went to the right skill 3/6 times, to the wrong skill alone 2/6 times, and to both 1/6 times. With distinct descriptions it went to the right skill 6/6 times. Today the only check for this is Tier 2 similarity, which needs an embedding key.

This change adds a keyless check, with no model and no network. The harness catalog, meaning the skills installed in the same folder, already collects each skill's name. Now it also keeps each description:

  • Catalog.lookalikes compares lowercase content words, ignoring a short stop-word list, by Jaccard overlap. Skills with fewer than 4 content words are skipped, and so are same-named copies, which *-DUP-NAME already covers.
  • The new lookalike_names fact feeds an advisory *-LOOKALIKE rule in all six profiles: "<name> in the same folder has a near-identical description, so the model may pick the wrong skill."

The threshold is 0.95, chosen against 15,925 public skills in multi-skill folders:

overlap ≥ skills flagged
0.75 326
0.85 187
0.90 102
0.95 88 (all of them identical, 1.0)

From 0.75 to 0.9 the check also catches templated pairs that differ in one key word (dbos-golang vs dbos-typescript, MySQL vs PostgreSQL SDKs). The canary doesn't show those being confused, so they aren't flagged. At 0.95 it flags copies published under two names, such as testing-patterns / code-showcase-testing-patterns, and brand-guidelines-anthropic / brand-guidelines-community.

The rule's confidence is medium because the routing evidence comes from one harness and one model.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests: test_lookalike_descriptions_are_flagged (an identical pair is flagged, a distinct HR/sales pair isn't)
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test (tests/harness: 122 passed)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia force-pushed the devin/1794813679-lookalike-skills branch from 957590f to 5c7ee14 Compare November 16, 2026 07:56
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia

Copy link
Copy Markdown
Collaborator Author

Review follow-up on 876b6ade9b5a.

The existing Unicode-tokenization finding is still reproducible: real harness-check runs across all six profiles miss identical Russian descriptions and flag descriptions distinguished by Japanese department names. Please preserve Unicode distinctions in _description_words and add multilingual cases. The initial 122-test harness suite passed on the pre-merge head, but did not cover these failures.

The commits since the initial review merge main only; the feature range-diff is unchanged. I rechecked the delta and repeated the current-head CLI cases plus the changed Hermes test (1 passed). CI was still pending at the refreshed snapshot.

The lookalike check only kept ASCII letters and digits, so identical
non-Latin descriptions had no words and were never flagged, and mixed
descriptions lost the non-Latin words that told them apart.

Tokenize on Unicode letters, digits and combining marks after NFKC and
casefold, and compare Han, kana, Thai and Lao runs as character pairs
since those scripts have no spaces between words. ASCII input tokenizes
the same as before.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia merged commit b007048 into main Nov 16, 2026
41 of 42 checks passed
@chrisknvidia
chrisknvidia deleted the devin/1794813679-lookalike-skills branch November 16, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant