/semantic-okf:consult-semantic-okf-harbor-embeddingsfrom semantic-okf
Consults an immutable embedding-enabled Semantic OKF snapshot with facet-wise hybrid chunk retrieval, authoritative parent-record resolution, and a closed answer compiler that emits exact hash-bound evidence. Use for paraphrase-heavy or multi-clause grounded JSON answers evaluated through Harbor. Do not use to build, repair, download models for, refresh, or modify a snapshot.
Ships in semantic-okf. 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.
Discover with the declared embedding projection, but answer only from immutable ledger parents.
harbor_answer.py prepare once with the final parameters and --mode auto.effective_mode; disclose fallback when the response contract permits it.support_id values in the draft evidence array in order of first use.harbor_answer.py finalize with the identical question, mode, and parameters.The finalizer reloads and validates the complete embedding snapshot, reruns the same facet searches, and rejects duplicate JSON keys, parameter drift, stale packs, unknown supports, invalid indices, unused evidence, and evidence not ordered by first use.
Run from this skill directory, or prefix paths with its root:
python -B scripts/harbor_answer.py BUNDLE prepare \
--question-id QUESTION_ID \
--question "EXACT QUESTION" \
--mode auto > support-pack.json
The compiler decomposes the request into at most eight ordered facets and runs this package's existing hybrid chunk search for each facet. It round-robins results, deduplicates exact source-record identities, resolves chunks to authoritative ledger parents, and exposes at most sixteen bounded parent excerpts. Every opaque support ID hashes the complete public evidence identity.
Read harbor-answer-contract.md before drafting. Read retrieval-format.md when diagnosing integrity. Read querying.md before changing retrieval mode or interpreting fallback.
Copy draft_template from the support pack. Replace the summary, add claim objects with exactly
statement and evidence_indices, and list only known support IDs in evidence.
python -B scripts/harbor_answer.py BUNDLE finalize \
--question-id QUESTION_ID \
--question "EXACT QUESTION" \
--mode auto \
--draft answer-draft.json
Use identical --facet-limit, --per-facet, --max-supports, --excerpt-chars, and --mode values
on both commands when overriding defaults. auto is the normal hybrid route and may degrade only
for an allowed provider-availability condition. Never reconstruct source IDs, paths, hashes, or
locators manually.
The copied query_semantic_okf_embeddings.py and _embedding_snapshot.py remain byte-identical to
the embedding baseline. Use inspect for diagnostics or search for exploratory retrieval, but pass
the public answer through harbor_answer.py finalize.
agents/openai.yaml (opens in a new tab)references/harbor-answer-contract.md (opens in a new tab)references/querying.md (opens in a new tab)references/retrieval-format.md (opens in a new tab)scripts/_embedding_snapshot.py (opens in a new tab)scripts/harbor_answer.py (opens in a new tab)scripts/query_semantic_okf_embeddings.py (opens in a new tab)scripts/requirements-embeddings.in (opens in a new tab)scripts/requirements-embeddings.txt (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-okf16 skills in this plugin
/build-semantic-okfBuilds and maintains a Semantic OKF source definition and its generated knowledge folder with deterministic Python adapters for Markdown, CSV, JSON or JSONL, and RDF. Use when Codex needs to create or change a manifest, source topology, mapping, ontology, validation rule, generated snapshot, refresh, promotion, rollback, or recovery. This skill owns construction and maintenance only; it does not answer questions from the generated knowledge./build-semantic-okf-adaptiveBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a deterministic adaptive retrieval projection for arbitrary declared sources. Use when Codex needs a standalone offline builder that combines Bag of Words, BM25, topic communities, a PPMI term graph, query-aspect routing, diversified reranking, and exact evidence bindings without changing authoritative records or requiring embeddings. This skill owns construction only and never answers from a published snapshot./build-semantic-okf-classicalBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a deterministic, non-authoritative classical text-retrieval projection. Use when Codex needs Bag of Words, Okapi BM25, corpus lexical statistics, co-occurrence topic communities, PPMI query expansion, or diversity-aware retrieval without embeddings or model downloads. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-embeddingsBuilds and independently validates an atomic Semantic OKF/RDF v1 snapshot plus a hash-bound, non-authoritative retrieval projection with record or semantic chunks and local embeddings. Use when Codex needs to materialize Markdown, CSV, JSON/JSONL, or RDF sources for semantic discovery, compare native and LlamaIndex splitting, use deterministic hashing or a pinned offline SentenceTransformers model, or reproduce an embedding-enabled corpus build. This skill owns construction only and does not answer questions from the snapshot./build-semantic-okf-ensembleBuilds and independently validates a new Semantic OKF bundle with one authoritative Markdown/RDF/SHACL core plus deterministic adaptive lexical, source-generic entity-section graph, embedding, exact identity-crosswalk, and quality-gated ensemble projections. Use when Codex must publish a standalone, reproducible multi-signal knowledge snapshot from a closed local manifest and plan without modifying an existing bundle or treating retrieval artifacts as authoritative./consult-semantic-okfProvides an agent with the general read-only context and local tools needed to navigate and consult an existing Semantic OKF knowledge folder efficiently. Use when Codex needs to discover records, read concepts, choose an authoritative semantic layer, run safe local SELECT or ASK queries, trace provenance, compare sources, or return grounded evidence. This skill never creates, repairs, refreshes, or modifies knowledge.