/semantic-search:build-semantic-okf-tursofrom semantic-search
Builds and maintains a validated Semantic OKF snapshot whose required indexed consultation projection is stored in local Turso Database. Use when Codex needs to create, migrate, validate, refresh, promote, recover, or inspect the construction of Turso-backed semantic knowledge from reviewed Markdown, CSV, JSON or JSONL, and RDF sources. This skill owns mutation and lifecycle operations only; it does not answer domain questions from the database.
Ships in semantic-search. 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 complete Semantic OKF release and its local semantic/knowledge.db projection with the Rust-based Turso Database engine.
SKILL.md, references/, scripts/, and declared Python requirements.knowledge.db as one release unit.knowledge.db as the required indexed consultation projection of that exact release.Turso Database is the ground-up Rust rewrite of SQLite. libSQL is the older SQLite fork. This package intentionally uses the pyturso distribution and turso Python module, not sqlite3 or the legacy libsql client. Read turso-storage.md before changing the schema, engine, database lifecycle, or cloud boundary.
knowledge.db, and validate both surfaces.Do not infer classes, identity matches, source precedence, mappings, or validation rules from names alone. Require review when a choice changes domain meaning.
Run from this skill directory, or prefix every path with the skill root.
python -m venv .venv
source .venv/bin/activate
python -m pip install -r scripts/requirements.txt
python scripts/runtime_smoke.py
On Windows PowerShell, activate with .\./.venv/Scripts/Activate.ps1. A platform without a compatible pyturso wheel may compile the Rust extension and therefore needs a working Rust and native build toolchain. Stop with the runtime diagnostic if runtime_smoke.py fails; never substitute sqlite3 silently.
python scripts/build_semantic_okf.py manifest.json semantic-okf-turso-output \
--concept-layout source-packed-v1
python scripts/validate_okf_bundle.py semantic-okf-turso-output
python scripts/validate_semantic_okf.py semantic-okf-turso-output --output-format json
python scripts/validate_turso_store.py \
semantic-okf-turso-output/semantic/knowledge.db \
--bundle semantic-okf-turso-output --output-format json
The output must not exist before the build. A passing release contains:
semantic-okf-turso-output/
index.md
concepts/
semantic/
ontology.ttl
data.ttl
shapes.ttl
provenance.ttl
records.jsonl
semantic-plan.json
source-manifest.json
validation-report.ttl
build-report.json
knowledge.db
To add Turso Database to an already validated compatible Semantic OKF bundle, use the package-local migration entry point:
python scripts/materialize_turso_store.py EXISTING_BUNDLE --output-format json
python scripts/validate_turso_store.py \
EXISTING_BUNDLE/semantic/knowledge.db --bundle EXISTING_BUNDLE
The migration command is create-only. It never overwrites an existing database.
Preview a complete rebuild:
python scripts/refresh_semantic_okf.py update manifest.json semantic-okf-turso-output \
--check --output-format json
Promote only the reviewed candidate:
python scripts/refresh_semantic_okf.py update manifest.json semantic-okf-turso-output \
--expected-current-tree-sha256 CURRENT_SHA256 \
--expected-candidate-tree-sha256 CANDIDATE_SHA256 \
--allow-plan-change \
--allow-record-removals
Omit approval flags for change classes that are not intended. Recover an interrupted journaled promotion with:
python scripts/refresh_semantic_okf.py recover semantic-okf-turso-output
markdown: preserve one readable concept per file; mapped frontmatter values must be scalar.csv: require exact case-sensitive headers independently of order and strict scalar conversion.json: accept JSON Lines unless multiLine=true; reject malformed, duplicate, non-object, ambiguous, or lossy values.rdf: require stable URI subjects and explicit local formats; reject blank source nodes.(source_id, record_id) and keep RDF subject IRIs global.Before delivery, confirm:
pyturso and Turso Database;PRAGMA integrity_check, schema, row counts, logical digest, artifact parity, and concept parity pass;concepts table;agents/openai.yaml (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/manifest.md (opens in a new tab)references/python-runtime.md (opens in a new tab)references/refreshing.md (opens in a new tab)references/source-combination.md (opens in a new tab)references/turso-storage.md (opens in a new tab)scripts/_semantic_okf.py (opens in a new tab)scripts/_turso_store.py (opens in a new tab)scripts/build_semantic_okf.py (opens in a new tab)scripts/materialize_turso_store.py (opens in a new tab)scripts/refresh_semantic_okf.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.py (opens in a new tab)scripts/validate_turso_store.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/build-semantic-okf-rust-malletBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-rust-mallet-evolvedBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-tantivyBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus the deterministic, non-authoritative classical projection consumed by the frozen Tantivy BM25 consultant. Use when Codex must construct, reproduce, diagnose, or optimize a snapshot specifically for consult-semantic-okf-tantivy without modifying the frozen consultation skill. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-tika-malletBuilds and independently validates an atomic Semantic OKF snapshot from local PDF, Office, archive, media, or other files extracted by Apache Tika 4.0.0-beta-1, then add a non-authoritative Java MALLET 2.1.0 topic, BM25, PPMI, and fusion retrieval projection. Use when Codex needs to experiment with Tika's new default Markdown output, test heterogeneous document ingestion, or compare fixed-seed MALLET topics while preserving OKF authority and provenance. This standalone experimental skill builds only; it never consults or answers from published knowledge./consult-semantic-okf-rust-malletConsults an existing RustMallet Semantic OKF snapshot through BM25, sparse-Gibbs LDA topic expansion, PPMI association, or reciprocal-rank-fusion retrieval with diversity-aware reranking and exact evidence locators. Use when Codex needs probabilistic-topic discovery, multi-paper evidence diversity, RustMallet index inspection, or grounded follow-up reading. This standalone skill is read-only and never builds, repairs, refreshes, or modifies knowledge./consult-semantic-okf-rust-mallet-evolvedConsults an immutable reference-dictionary RustMallet Semantic OKF snapshot through compact multi-focus retrieval and reference-ID evidence. Use for multi-paper synthesis, probabilistic-topic discovery, and evidence JSON whose identities must remain byte-exact. This standalone skill is read-only and never builds, repairs, refreshes, or modifies knowledge.Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin semantic-search