/semantic-okf:build-semantic-okf-classicalfrom semantic-okf
Builds 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.
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.
Build one authoritative Semantic OKF core and one model-free classical discovery projection as a single validated release. Keep passages, term statistics, topic communities, and association edges outside the ledger and RDF graphs.
classical/ as non-authoritative discovery data. Keep concepts/, semantic/records.jsonl, and purpose-selected RDF graphs authoritative.For an unchanged reviewed manifest and plan, load no reference. Otherwise:
scripts/requirements.txt and run python -B scripts/runtime_smoke.py. The classical layer needs no model or network access.Never accept unknown plan members, implicit defaults, partial source selection, stale hashes, unsafe paths, approximate locators, non-deterministic output, or topics presented as ontology truth.
Run from this skill directory, or prefix scripts with the copied skill root:
python -B scripts/build_semantic_okf_classical.py manifest.json classical-plan.json semantic-okf-classical --concept-layout source-packed-v1 --output-format json
python -B scripts/validate_semantic_okf_classical.py semantic-okf-classical --output-format json
The destination must not exist. A successful release contains the complete core and exactly six classical files:
semantic-okf-classical/
index.md
concepts/
semantic/
classical/
index.json
documents.jsonl
lexicon.json
associations.jsonl
topics.json
build-report.json
documents.jsonl uses exact full-record or character-range locators. lexicon.json persists Bag-of-Words, document-frequency, corpus-frequency, inverse-document-frequency, and BM25 length statistics. associations.jsonl persists bounded positive-PMI neighbors. topics.json persists deterministic seeded weighted-label-propagation communities. The index binds all four artifacts to the authoritative tree, selected inputs, and complete plan.
Before delivery, confirm:
agents/openai.yaml (opens in a new tab)references/classical-plan.md (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/manifest.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/_classical_retrieval.py (opens in a new tab)scripts/_semantic_okf.py (opens in a new tab)scripts/build_semantic_okf_classical.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_classical.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-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.