/semantic-okf:consult-semantic-okf-harbor-adaptivefrom semantic-okf
Consults an immutable adaptive Semantic OKF snapshot with its unchanged adaptive full-query and per-facet retrieval, then build a bounded deficit-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 adaptive algorithm, close explicit 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 adaptive 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_adaptive.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_adaptive.py /knowledge search \
--query "exact identifier or mechanism" --mode adaptive --top-k 10
Do not stream its unbounded full-record result into the answer context when the compact Harbor pack suffices. The original _adaptive_snapshot.py and query_semantic_okf_adaptive.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 adaptive; 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/adaptive-format.md (opens in a new tab)references/querying.md (opens in a new tab)scripts/_adaptive_snapshot.py (opens in a new tab)scripts/harbor_answer.py (opens in a new tab)scripts/query_semantic_okf_adaptive.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
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./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.npx claudepluginhub gvillarroel/plugins --plugin semantic-okf