agentsclimarketplace

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

Install
npx -y skills add sergesha/claude-openproject-ops --skill semantic-search

Assembled 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)

ElementValue
Semantic entrymem_save(text, label=<title>, tags="<ns>-index,wp-index", ttl_days=0) → memId
Tagscorpus tag <ns>-index and umbrella wp-index (both, every entry)
textdedup_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)
hashdedup_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.
    1. list_work_packages (corpus, all statuses — pass active_only=false; raw APIv3 needs a status filter with operator *, since the default returns open only) → wpId + lockVersion.
    2. kv_list("wpidx:<ns>:") → wpId → {memId, lockVersion, hash}.
    3. per item, dedup_decide: missing → index (mem_save+kv_set); fresh → skip; changed → reindex (mem_delete old + mem_save + kv_set); nontext → update stored lockVersion only. lockVersion is the cheap gate — recompute hash only when it moved.
    4. orphan (in KV, not in corpus = deleted) → prune (mem_delete + kv_delete).
  • similar(query, scope, [top_k=5]) — scope = a corpus tag <ns>-index or wp-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) and reindex.
  • upsert(ns, wp) — write-through on create/edit: compute text/hash, mem_save + kv_set.
  • reindex(ns) — kv_list("wpidx:<ns>:") → mem_delete each + 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/hash instead of sourcing index.sh → incompatible entries across sessions.
  • Omitting the wp-index umbrella tag → cross-corpus /op-similar can't see the entry.
  • Indexing the full description / secrets / host specifics → keep it to title + ≤200-char neutral summary.
  • Re-embedding on every lockVersion bump → gate on hash; non-text edits don't re-embed.
  • Treating the index as the source of truth → it's a rebuildable cache; OpenProject wins.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.