/semantic-graphs:consult-semantic-okf-harbor-entity-graphfrom semantic-graphs
Consults a published Semantic OKF entity-section graph with bounded full-question and focused-facet fusion, compact authoritative parent-record excerpts, and a strict recomputed JSON finalizer. Use for read-only, evidence-grounded multi-document questions—especially Harbor evaluations—where exact source-record identities, locators, and hashes must be preserved without exposing graph edges as factual support.
Ships in semantic-graphs. 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 unchanged graph fusion ranker for discovery, then close the answer through the packaged parent-record compiler. Never hand-author evidence metadata.
semantic/ and concepts/ as authoritative and entity-graph/ as derived discovery data.harbor_answer.py prepare once with the final parameters.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 and parameters.The compiler uses only graph fusion searches. It keeps the unchanged full question, derives at
most eight bounded clauses, round-robins their section rankings, and deduplicates exact
(source_id, record_id) parents. It validates every selected section against record.body, emits a
short hash-bound excerpt, and projects public evidence to the authoritative full record. Graph edge
IDs are never support IDs and never appear in the public answer.
python -B scripts/harbor_answer.py /knowledge prepare \
--question-id QUESTION_ID \
--question "EXACT QUESTION" > /tmp/support-pack.json
Read harbor-answer-contract.md before drafting. Read querying.md only when diagnosing graph ranking or opening additional authoritative context. Read entity-graph-format.md when checking the discovery projection's authority boundary.
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" \
--draft /tmp/answer-draft.json
Repeat --facet-limit, --per-facet, --max-supports, and --excerpt-chars identically when
overriding defaults. The finalizer recomputes retrieval 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 graph query scripts remain byte-identical to consult-semantic-okf-entity-graph. Use
query_semantic_okf_entity_graph.py for read-only inspection or exploratory lexical, entity,
traversal, and fusion searches, then still emit any contracted answer through
harbor_answer.py finalize.
agents/openai.yaml (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)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_entity_graph.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
npx claudepluginhub gvillarroel/plugins --plugin semantic-graphs9 skills in this plugin
/build-semantic-okf-entity-graphBuilds and independently validates an atomic Semantic OKF snapshot plus a deterministic, non-authoritative document, entity, mention, co-mention, and exact-section graph over arbitrary declared sources. Use when Codex must extract candidate entities from Markdown, CSV, JSON, or RDF records, connect source-scoped records to precise evidence sections, preserve a legacy reviewed-claim graph, or reproduce offline entity-first retrieval. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-graphifyBuilds and maintains a validated Semantic OKF snapshot with a hash-bound deterministic Graphify projection whose record roots are connected by reciprocal ledger-derived lexical similarity. Use for reviewed Markdown, CSV, JSON, JSONL, or RDF sources when construction, migration, validation, complete rebuild, promotion, or recovery of a Graphify-backed Semantic OKF release is requested. This skill owns mutation only and never answers domain questions./build-semantic-okf-graphify-nextBuilds and validates an experimental Semantic OKF Graphify projection with reciprocal content-similarity and documentation-reference bridges. Use when evaluating whether deterministic ledger-derived cross-references improve consultation retrieval beyond the official builder without changing authoritative records or the consultation skill. This candidate owns mutation only and never answers domain questions./build-semantic-okf-harbor-graphifyBuilds and maintains a validated Semantic OKF snapshot with a hash-bound deterministic Graphify projection whose record roots are connected by ledger-derived lexical similarity. Use when Harbor consultation traces show that disconnected record subgraphs limit multi-document discovery and construction, migration, validation, complete rebuild, promotion, or recovery is requested. This skill owns mutation only and never answers domain questions./consult-semantic-okf-entity-graphConsults an existing Semantic OKF entity-section graph through lexical section ranking, direct entity resolution, bounded document/association traversal, or reciprocal-rank fusion. Use when Codex must find entities extracted from arbitrary sources, follow graph paths to exact source-record sections, retrieve multi-document evidence, inspect source-scoped provenance, or reproduce a legacy reviewed-claim query. This standalone skill is read-only and never builds, repairs, refreshes, or modifies knowledge./consult-semantic-okf-graphifyProvides an agent with read-only local tools and context to verify, search, traverse, compare, and cite an existing Graphify-backed Semantic OKF release. Use for exact record lookup, Graphify lexical discovery and BFS traversal, authoritative concept reading, grouped ledger counts, or grounded cross-source synthesis. This skill never builds, repairs, refreshes, or modifies knowledge.