/semantic-okf:consult-semantic-okf-harbor-ensemblefrom semantic-okf
Consults a published definitive Semantic OKF ensemble with unchanged quality or fast retrieval, a bounded full-question plus focused-facet candidate union, compact authoritative parent-record excerpts, and a strict recomputed JSON finalizer. Use for read-only, evidence-grounded multi-document synthesis—especially Harbor evaluations—where exact source-record identities, locators, hashes, exclusions, and response-contract compliance matter.
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.
Use the ensemble's unchanged retrieval policies for discovery, then close the answer through the packaged parent-record compiler. Never hand-author evidence metadata.
semantic/, concepts/, and accepted RDF as authoritative. Treat adaptive/,
entity-graph/, retrieval/, and ensemble/ as derived discovery projections.harbor_answer.py prepare once with the final parameters. Use quality when the pinned
offline embedding runtime is available; choose fast explicitly when its latency/provider
tradeoff is required.draft_template. Replace the summary, add atomic claims, and list only emitted support_id
values in evidence, in first-use order.harbor_answer.py finalize with the identical question, policy, and numeric parameters.The compiler preserves each underlying search policy. It searches the unchanged full question and
at most seven bounded clauses, then forms a capped round-robin union across those independently
ranked sets. This deliberately allows a focused facet to add an exact source-record candidate that
the full-query protected set omitted. Every hit is checked against its exact crosswalk identity and
authoritative record.body, deduplicated by (source_id, record_id), and projected to a full-record
public locator.
python -B scripts/harbor_answer.py /knowledge prepare \
--question-id QUESTION_ID \
--question "EXACT QUESTION" \
--policy quality > /tmp/support-pack.json
Read harbor-answer-contract.md before drafting. Read querying.md when interpreting policy availability or lower-level output. Read adaptive-format.md, entity-graph-format.md, or retrieval-format.md only when diagnosing that projection.
Use this exact draft shape:
{
"question_id": "q000",
"question_sha256": "COPY_FROM_PACK",
"parameters": {"COPY": "FROM_PACK"},
"support_pack_sha256": "COPY_FROM_PACK",
"answer": {
"summary": "A bounded synthesis.",
"claims": [
{"statement": "One atomic claim.", "evidence_indices": [0]}
]
},
"evidence": ["support-..."]
}
python -B scripts/harbor_answer.py /knowledge finalize \
--question-id QUESTION_ID \
--question "EXACT QUESTION" \
--policy quality \
--draft /tmp/answer-draft.json
Repeat --facet-limit, --per-facet, --max-supports, and --excerpt-chars identically when
overriding defaults. The finalizer recomputes the same candidate union and rejects duplicate JSON
members, changed parameters, changed questions, stale packs, unknown or tampered supports, duplicate
supports, out-of-range indices, unused evidence, and evidence not ordered by first use.
The copied ensemble scripts remain byte-identical to consult-semantic-okf-ensemble. Use
query_semantic_okf_ensemble.py for read-only inspection, direct quality or fast search, or
legacy reviewed-claim operations, then still emit a source-generic contracted answer through
harbor_answer.py finalize.
agents/openai.yaml (opens in a new tab)references/adaptive-format.md (opens in a new tab)references/entity-graph-format.md (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/_adaptive_snapshot.py (opens in a new tab)scripts/_embedding_snapshot.py (opens in a new tab)scripts/_ensemble_snapshot.py (opens in a new tab)scripts/_entity_graph_model.py (opens in a new tab)scripts/_entity_graph_snapshot.py (opens in a new tab)scripts/harbor_answer.py (opens in a new tab)scripts/query_semantic_okf_ensemble.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/run_query.ps1 (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
16 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.Other plugins' skills for the same job
/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.npx claudepluginhub gvillarroel/plugins --plugin semantic-okf