/semantic-okf:build-semantic-okf-ensemblefrom semantic-okf
Builds 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.
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.
Create a new immutable bundle in one atomic publication. Preserve the Semantic OKF core as the only authority; use every ensemble component only for discovery and later evidence selection.
adaptive, entity_graph, and embedding child plans plus the three policies and mandatory quality gates. Prefer schema 2.0 for arbitrary declared records. Use schema 1.0 only to reproduce the legacy paper/claim contract.2.0, keep all three child source_ids selections identical, use graph schema 2.0, keep adaptive PDF-page sources empty, and declare intentional cross-source identity joins only through sorted identity.overrides. Empty adaptive paper mappings are valid. In schema 1.0, retain the complete paper mappings, paper-plus-claim selection, auxiliary vocabulary, and PDF-page list.scripts/requirements.txt in an isolated environment. Install an optional lock only when the embedding child plan declares its corresponding offline backend.python scripts/runtime_smoke.py
python scripts/build_semantic_okf_ensemble.py MANIFEST.json ENSEMBLE-PLAN.json OUTPUT --concept-layout source-packed-v1 --output-format json
python scripts/validate_semantic_okf_ensemble.py OUTPUT --output-format json
semantic/, concepts/, and their exact authoritative bindings as knowledge authority.adaptive/, entity-graph/, retrieval/, and ensemble/ as closed, hash-bound, non-authoritative projections.2.0, require child-plan digest parity, a total canonical identity crosswalk, exact cross-component record-set parity, and record-body passage evidence. Never infer a join from a path, prefix, title, filename, or paper-like token.The entrypoint validates the entire plan before building the core, creates every layer inside one private sibling candidate, independently rederives all component artifacts, writes the ensemble binding last, and publishes once with an atomic rename. A failure must leave neither the requested output nor a private candidate.
The output directory must be new. Updating a source, plan, dependency lock, model revision, or algorithm identity creates a new bundle generation; it never alters an existing one.
Before handing off a bundle, confirm that:
valid: true and status: pass;2.0 selected record appears exactly once in identity-crosswalk.jsonl, all component record sets match it, and every locator/text hash resolves to authoritative record.body;For component-specific coherence, read the adaptive projection contract and the entity graph contract.
agents/openai.yaml (opens in a new tab)references/adaptive-format.md (opens in a new tab)references/adaptive-plan.md (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/ensemble-format.md (opens in a new tab)references/ensemble-plan.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/retrieval-plan.md (opens in a new tab)references/source-combination.md (opens in a new tab)scripts/_adaptive_retrieval.py (opens in a new tab)scripts/_build_semantic_okf_core.py (opens in a new tab)scripts/_embedding_retrieval.py (opens in a new tab)scripts/_ensemble_build.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_ensemble.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./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./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./consult-semantic-okf-adaptiveConsults an existing adaptive Semantic OKF snapshot read-only through BM25, topic, PPMI term-graph, fusion, query-aspect retrieval, or facet-separated claim coverage and finalize contract-ready evidence from authoritative bindings. Use when Codex must discover diverse evidence across arbitrary declared sources, answer multi-source questions, preserve exact IDs and locators, or inspect retrieval integrity without building, repairing, or modifying knowledge.