Semantic search
Skill sergesha/claude-openproject-ops/skills/semantic-search
Use when checking whether OpenProject already has a similar work package ("do we already have anything like this?", "find duplicates by meaning", "/op-similar"), when keyword search misses paraphrases, or when maintaining a reusable semantic index over a work-package corpus (intake ideas, a delivery backlog) for dedup or near-duplicate detection. Triggers — "anything like X already", "similar items", "near-duplicate by meaning", "semantic dedup index", "search across everything by meaning".From its SKILL.md
npx -y skills add sergesha/claude-openproject-ops --skill semantic-searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.7 KB, as published. Nobody here has run it
semantic-search — reusable semantic index over OpenProject work packages
Maintain a redis-memory semantic index over a set of OpenProject work packages and query it
by meaning (catches paraphrases keyword search misses). OpenProject stays the system of record;
the index is a rebuildable cache. The names below are fixed conventions — use them verbatim
so every session and every consumer reads/writes one compatible index. Deterministic helpers (source
them, never reinvent the text/hash): skills/semantic-search/index.sh (dedup_text, dedup_hash,
dedup_decide, dedup_keyword_search).
Parametrized by a namespace ns (a corpus) + a corpus selector (project + types).
Conventions (the compatibility contract)
| Element | Value |
|---|---|
| Semantic entry | mem_save(text, label=<title>, tags="<ns>-index,wp-index", ttl_days=0) → memId |
| Tags | corpus tag <ns>-index and umbrella wp-index (both, every entry) |
text | dedup_text "<title>" "<≤200-char neutral summary>" — no secrets, host specifics, or full description |
| Bookkeeping (KV) | kv_set("wpidx:<ns>:<wpId>", "{memId, lockVersion, hash}", ttl_days=0) |
hash | dedup_hash "<title>" "<summary>" (sha256 of normalized text, first 16 hex) |
Namespaces: idea (intake: project Intake, types Idea + Use case) · backlog (refinement:
the delivery project, its epic/story/bug types). Corpus tags: idea-index, backlog-index.
Index API (agent runs these via MCP; helpers pin the deterministic parts)
lazy_heal(ns, corpus)— reconcile index ⇄ corpus; run before any search; best-effort.list_work_packages(corpus, all statuses — passactive_only=false; raw APIv3 needs astatusfilter with operator*, since the default returns open only) →wpId+lockVersion.kv_list("wpidx:<ns>:")→wpId → {memId, lockVersion, hash}.- per item,
dedup_decide:missing→ index (mem_save+kv_set);fresh→ skip;changed→ reindex (mem_deleteold +mem_save+kv_set);nontext→ update storedlockVersiononly.lockVersionis the cheap gate — recomputehashonly when it moved. orphan(in KV, not in corpus = deleted) → prune (mem_delete+kv_delete).
similar(query, scope, [top_k=5])—scope= a corpus tag<ns>-indexorwp-index(cross-corpus).mem_search(query, tags=scope, top_k)→ ranked with similarity %. Bands (calibrated for the current redis-memory embedder — it scores low): ≥50% strong (likely duplicate), 30–50% related/overlap, <30% none (pure noise tops out ~25%). Concept-level duplicates land ~45–55% on this embedder, so in unattended/automated runs escalate a dense 45–60% cluster to a human rather than auto-creating. The score is a pre-filter; always confirm the top candidates by reading them. If the embedder model changes, recalibrate (run a few known dup/non-dup probes) andreindex.upsert(ns, wp)— write-through on create/edit: computetext/hash,mem_save+kv_set.reindex(ns)—kv_list("wpidx:<ns>:")→mem_deleteeach +kv_delete→ rebuild. Escape hatch.
Fallback (best-effort — never blocks the caller)
redis down → keyword dedup_keyword_search / search_work_packages (expand the query with
synonyms) → if unavailable, skip and note "semantic search unavailable". Never stall.
/op-similar "<text>" [scope]
Ad-hoc "do we already have something like this?". Default scope=wp-index (across all corpora) or a
corpus tag. Runs lazy_heal for the scope (best-effort) then similar; prints ranked
#id · title · % · type/status. Better than keyword for paraphrases.
Common mistakes
- Hand-writing the
text/hashinstead of sourcingindex.sh→ incompatible entries across sessions. - Omitting the
wp-indexumbrella tag → cross-corpus/op-similarcan't see the entry. - Indexing the full description / secrets / host specifics → keep it to title + ≤200-char neutral summary.
- Re-embedding on every
lockVersionbump → gate onhash; non-text edits don't re-embed. - Treating the index as the source of truth → it's a rebuildable cache; OpenProject wins.