/semantic-graphs:build-semantic-okf-entity-graphfrom semantic-graphs
Builds 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.
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.
Build the authoritative Semantic OKF core unchanged, then derive an entity-first graph that points every usable relation or mention to exact source sections. Keep automatic phrases, mention matches, co-mentions, traversal weights, and scores outside the authoritative ledger and RDF graphs.
2.0 with explicit source_ids; use legacy schema 1.0 only to reproduce the pinned paper/claim/vocabulary graph.scripts/requirements.txt; the graph derivation is deterministic, offline, and model-free.record.body slices, source-record identities, and graph joins. For legacy plans, also confirm reviewed claim paths.Never accept unknown plan members, partial source selection, source/record identity collisions, approximate locators, symlinks, stale hashes, or an existing destination. In legacy mode, also reject unreviewed claims and missing evidence sections.
Run from this skill directory, or prefix scripts with the copied skill root:
python scripts/runtime_smoke.py
python scripts/build_semantic_okf_entity_graph.py manifest.json entity-graph-plan.json semantic-okf-entity-graph --concept-layout source-packed-v1 --output-format json
python scripts/validate_semantic_okf_entity_graph.py semantic-okf-entity-graph --output-format json
A successful release contains the complete core and exactly seven graph files:
semantic-okf-entity-graph/
index.md
concepts/
semantic/
entity-graph/
index.json
entities.jsonl
sections.jsonl
mentions.jsonl
edges.jsonl
lexicon.json
build-report.json
In schema 2.0, every selected ledger record becomes a collision-safe document node keyed by (source_id, record_id). Heading-aware sections are bounded exact character ranges over authoritative record.body; headerless records use the same bounded fallback. partOfDocument is an authoritative structural binding, while phrase mentions and co-mentions remain candidates. Schema 1.0 retains the original reviewed method, dimension, paper, claim, and PDF-page projection unchanged.
Before delivery, confirm:
record.body slice and text hash;2.0 section preserves source, record, source-content, record, concept, and locator bindings;1.0 reviewed claim resolves every declared locator, including multi-page evidence;consult-semantic-okf-entity-graph package can run representative entity, traversal, and fusion queries that return verifiable file and section locators. The build package itself does not query the published snapshot.agents/openai.yaml (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/entity-graph-format.md (opens in a new tab)references/entity-graph-plan.md (opens in a new tab)references/manifest.md (opens in a new tab)references/python-runtime.md (opens in a new tab)references/source-combination.md (opens in a new tab)scripts/_build_semantic_okf_core.py (opens in a new tab)scripts/_entity_graph_build.py (opens in a new tab)scripts/_entity_graph_model.py (opens in a new tab)scripts/_semantic_okf.py (opens in a new tab)scripts/build_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)scripts/validate_okf_bundle.py (opens in a new tab)scripts/validate_semantic_okf_entity_graph.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/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.Other plugins' skills for the same job
/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.npx claudepluginhub gvillarroel/plugins --plugin semantic-graphs