/semantic-search:consult-semantic-okf-rust-mallet-evolvedfrom semantic-search
Consults an immutable reference-dictionary RustMallet Semantic OKF snapshot through compact multi-focus retrieval and reference-ID evidence. Use for multi-paper synthesis, probabilistic-topic discovery, and evidence JSON whose identities must remain byte-exact. This standalone skill is read-only and never builds, repairs, refreshes, or modifies knowledge.
Ships in semantic-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Retrieve compact claim references, read only selected evidence, and return the snapshot-owned IDs without copying long identity fields through model text.
source_id, paths, locators, or hashes manually.When the request requires evidence JSON, follow only this bounded protocol:
search with the complete question. Do not select a mode.
The helper always uses BM25 and deterministically adds operational expansions
for mechanisms named by the question: seed/spreading signals for diffusion,
resource/reliability for paths, prizes/cost for connected subgraphs,
decomposition/reflection for adaptive traversal, and filtering/integration
controls for external-versus-parametric knowledge. Optional focus queries are
only for a named question dimension not covered by those expansions.recommended array unchanged. It assigns one source per
operational mechanism when possible, then adds a two-source breadth buffer
for incomplete relevance judgments and related evidence. The recommendation
therefore contains the required count plus at most two independent papers.
Do not substitute alternatives or run a second search when recommended
covers every named part.show call containing every recommended ID. Do not search again
after show.question_id, summary, and claims.
Each claim contains exactly statement and reference_ids. Ground every claim
in shown text, use every selected reference, and introduce no unshown fact.finalize once with the task's minimum source count and without
--output. Its stdout is one canonical JSON line whose evidence rows contain
exactly reference_id. Use that exact line as the terminal response: do not
expand IDs, open a file, pretty-print, retype, normalize, or reconstruct any
character. The task verifier resolves the IDs from the mounted snapshot before
applying the legacy exact-evidence checks. If finalization rejects the draft,
correct only the draft; do not resume discovery.Set SKILL_DIR to the absolute directory containing this loaded SKILL.md.
Keep temporary files outside the snapshot.
python -B "$SKILL_DIR/scripts/reference_consult.py" search BUNDLE \
--query "FULL QUESTION" --minimum-sources 5
python -B "$SKILL_DIR/scripts/reference_consult.py" show BUNDLE \
--reference-id ref-0123456789abcdef01234567 \
--reference-id ref-89abcdef0123456789abcdef
python -B "$SKILL_DIR/scripts/reference_consult.py" finalize BUNDLE \
/tmp/reference-draft.json --minimum-sources 5
The search output contains compact IDs and interpretations, not long identity
fields. show returns authoritative text. finalize validates every ID against
the current classical/references.json, enforces independent-source breadth and
first-use order, and emits only those IDs. The verifier, not the model, resolves
the seven exact evidence fields from the same dictionary.
The snapshot validator accepts both record-per-file and source-packed physical
Markdown layouts; reference IDs and all logical evidence identities remain
byte-exact in either layout.
Use the same compact search and show commands for ordinary read-only discovery.
Use scripts/query_semantic_okf_rust_mallet.py only when the user explicitly asks
for index diagnostics, topic activations, associations, or an integrity audit.
Deep validation is restricted to an explicitly requested integrity audit.
Before returning evidence JSON, confirm that:
finalize succeeded against the current dictionary; andFor diagnostic work outside the bounded answer protocol, read querying and the RustMallet format.
agents/openai.yaml (opens in a new tab)references/querying.md (opens in a new tab)references/rust-mallet-format.md (opens in a new tab)scripts/_reference_dictionary.py (opens in a new tab)scripts/_rust_mallet_snapshot.py (opens in a new tab)scripts/query_semantic_okf_rust_mallet.py (opens in a new tab)scripts/reference_consult.py (opens in a new tab)scripts/requirements.in (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/runtime_smoke.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin semantic-search12 skills in this plugin
/build-semantic-okf-rust-malletBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-rust-mallet-evolvedBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-tantivyBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus the deterministic, non-authoritative classical projection consumed by the frozen Tantivy BM25 consultant. Use when Codex must construct, reproduce, diagnose, or optimize a snapshot specifically for consult-semantic-okf-tantivy without modifying the frozen consultation skill. This standalone skill owns construction only and never answers from a published snapshot.