/semantic-okf:consult-semantic-okf-harbor-legacyfrom semantic-okf
Consults a validated Semantic OKF snapshot with deterministic ledger TF-IDF, bounded facet coverage, and a closed answer compiler that emits exact hash-bound evidence. Use for read-only questions that require a compact grounded JSON answer, especially multi-clause synthesis evaluated through Harbor. Do not use to build, repair, 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.
Answer from one immutable Semantic OKF snapshot without hand-transcribing evidence metadata.
harbor_answer.py prepare once with the exact final parameters.draft_template and replace its placeholder summary. Add atomic claims.support_id values in the draft evidence array, in order of first use.harbor_answer.py finalize with the same question and parameters.The finalizer recomputes retrieval and rejects duplicate JSON keys, changed parameters, a changed question, stale packs, unknown or duplicate supports, out-of-range indices, unused evidence, and evidence not ordered by first use.
Run from this skill directory, or prefix the paths with its root:
python -B scripts/harbor_answer.py BUNDLE prepare \
--question-id QUESTION_ID \
--question "EXACT QUESTION" > support-pack.json
The dependency-free compiler decomposes the full question into at most eight ordered facets, ranks
the authoritative ledger with deterministic TF-IDF, round-robins facet hits, and deduplicates exact
source_id plus record_id identities. Support IDs bind the complete public evidence identity by
hash. Excerpts are discovery context only.
Read harbor-answer-contract.md before drafting. Read querying.md only when the question requires direct ledger or RDF inspection beyond the compact support pack. Read source-boundaries.md when authorities or partitions differ.
Start with the emitted draft_template. A draft has exactly these fields:
{
"question_id": "q000",
"question_sha256": "COPY_FROM_PACK",
"parameters": {"COPY": "FROM_PACK"},
"support_pack_sha256": "COPY_FROM_PACK",
"answer": {
"summary": "Concise synthesis.",
"claims": [
{"statement": "One atomic claim.", "evidence_indices": [0]}
]
},
"evidence": ["support-..." ]
}
Finalize from a file:
python -B scripts/harbor_answer.py BUNDLE finalize \
--question-id QUESTION_ID \
--question "EXACT QUESTION" \
--draft answer-draft.json
Use identical --facet-limit, --per-facet, --max-supports, and --excerpt-chars values on both
commands if overriding defaults. Never reconstruct source IDs, paths, hashes, or locators manually.
The copied query_semantic_okf.py remains byte-identical to the legacy package and is available for
exact ledger filters and read-only SELECT or ASK queries. Use it only when needed to understand the
support, then still pass the public answer through harbor_answer.py finalize.
For synthesis outside the bounded answer protocol, read cross-source synthesis.
agents/openai.yaml (opens in a new tab)references/cross-source-synthesis.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/source-boundaries.md (opens in a new tab)scripts/_consult_semantic_okf.py (opens in a new tab)scripts/_cross_source.py (opens in a new tab)scripts/harbor_answer.py (opens in a new tab)scripts/prepare_cross_source_evidence.py (opens in a new tab)scripts/query_semantic_okf.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)scripts/validate_cross_source_answer.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.