/semantic-okf:consult-semantic-okf-harbor-classicalfrom semantic-okf
Consults an immutable classical Semantic OKF snapshot with unchanged BM25/topic/PPMI reciprocal-rank fusion, then build a bounded facet-aware support union and compile strict source-generic Harbor answers. Use for hard multi-source questions that require compact authoritative support, exact hashes and locators, deterministic first-use evidence ordering, or lower-context evaluation. This standalone skill is read-only and never builds, repairs, or modifies knowledge.
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.
Retrieve with the published classical fusion algorithm, close lexical facet deficits, and compile the final answer only from a compact hash-bound support pack.
--deep-validation once for a new, evaluation-critical, or release-candidate snapshot.harbor_answer.py prepare. It runs the original fusion route for the full question and every bounded lexical facet, protects the leading full-query evidence, fills uncovered facets, deduplicates exact source-record identities, projects hits to authoritative parent records, and emits only bounded snippets plus exact hashes.support_id only when the authoritative excerpt directly supports an atomic statement. Qualify unsupported facets; do not fill gaps from memory.question_id, parameters_sha256, summary, and claims. Each claim must contain exactly statement and support_ids.harbor_answer.py finalize. Return its JSON unchanged. The finalizer independently reruns retrieval, rejects stale or altered packs, resolves support IDs to authoritative records, deduplicates exact identities, and emits evidence in deterministic first-use order with no unused row.python scripts/runtime_smoke.py
python scripts/query_semantic_okf_classical.py /knowledge inspect --deep-validation
python scripts/harbor_answer.py /knowledge prepare \
--question-id q031 \
--question "A hard multi-part question" > /tmp/support-pack.json
python scripts/harbor_answer.py /knowledge finalize \
--pack /tmp/support-pack.json \
--draft /tmp/answer-draft.json
Use /tmp or another path outside the snapshot for ephemeral files. Use --draft - to read the draft from standard input. The scripts never write to the bundle.
{
"question_id": "q031",
"parameters_sha256": "copy from the support pack",
"summary": "A concise synthesis grounded only in selected supports.",
"claims": [
{
"statement": "One atomic statement.",
"support_ids": ["support-copy-exactly"]
}
]
}
Keep claims atomic. Use two supports only for a real join or contrast. Preserve explicit negatives. It is valid to leave a candidate support unused; it is not valid to cite an unknown support or manually add an evidence row. The compiler includes only selected supports and proves every emitted evidence row is used.
Use the copied original CLI only to diagnose ranking behavior:
python scripts/query_semantic_okf_classical.py /knowledge search \
--query "exact identifier or mechanism" --mode fusion --top-k 10
Do not stream its unbounded full-record result into the answer context when the compact Harbor pack suffices. The original _classical_snapshot.py and query_semantic_okf_classical.py behavior is retained unchanged in this package.
Before returning an answer, confirm that inspection passed; the snapshot remained unchanged; full-query and per-facet retrieval used fusion; every factual statement maps to a directly supporting selected snippet; the pack and draft parameter hashes agree; finalization succeeded; top-level and nested keys are exact; evidence hashes and paths came from authoritative parent records; evidence is in first-use order; every emitted evidence row is referenced; unsupported facets are qualified; and no retrieval score, web result, or model memory is presented as ground truth.
agents/openai.yaml (opens in a new tab)references/classical-format.md (opens in a new tab)references/querying.md (opens in a new tab)scripts/_classical_snapshot.py (opens in a new tab)scripts/harbor_answer.py (opens in a new tab)scripts/query_semantic_okf_classical.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
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.Other plugins' skills for the same job