/knowledge-authoring:build-semantic-okf-knowledge-skillfrom knowledge-authoring
Builds a ready-to-use, standalone knowledge skill directly from a closed Semantic OKF source manifest, reviewed application guidance, and one exact canonical retrieval family. Use when Codex must generate both the embedded knowledge folder and its read-only consultation skill atomically for legacy, embeddings, classical, adaptive, entity-graph, ensemble, Graphify, or Turso; preserve the matched native builder and consultant behavior; add exact physical citations; validate every artifact; and avoid sibling-skill runtime dependencies.
Ships in knowledge-authoring. 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.
Generate one portable expert whose references/knowledge/ is built with the
selected canonical Semantic OKF family and whose matched native consultant is
already bound to that immutable snapshot.
assets/families/ and digest-tested against
their canonical sources.Read family-contracts.md before choosing a family. Read expert-contract.md before every build, validation, comparison, or release.
For family-specific plan or consultation details, read only the relevant vendored references under:
assets/families/FAMILY/builder/references/
assets/families/FAMILY/consultant/references/
Freeze intended questions, authority boundaries, evidence identities, runtime constraints, and acceptance gates.
Select one family from the matrix in family-contracts.md. Use its exact
source manifest and, when required, its closed plan. For structured sources,
explicitly map the fields that must become knowledge; a field's schema
declaration alone does not retain its content. JSON/CSV schemas with fields
beyond identity/title require an explicit fields object. A partial map
deliberately omits the remaining fields; fields: {} deliberately selects
titles only. The generator rejects an absent decision before construction.
Author UTF-8 reviewed guidance with exactly one H1 and these headings:
## Scope## Application workflow## Decision rules## Evidence and limitsInstall the selected builder lock from
assets/families/FAMILY/builder/scripts/requirements.txt. For an embedding
or ensemble plan that declares sentence-transformers or LlamaIndex, also
install the matching optional builder locks and provide the pinned model
revision in a local cache.
Run scripts/runtime_smoke.py --family FAMILY, then build into a new
directory whose basename equals --name.
Run the independent validator, deterministic --check rebuild, generated
runtime smoke, deep generated verification, and representative search/get
operations. Review the bound references/source-coverage.json for omitted
fields, source scope, normalized value counts, and body character counts.
Its raw_source_fidelity_verified: false is deliberate: this receipt audits
declarations and normalized records. Compare intended source text with normalized records and retrieval
text using the adapter's documented rendering rules. Record counts alone can
pass even when a long document has been reduced to its title. Complete storage
also does not imply that a bounded embedding encoder processed every token.
On every claimed dataset, compare the generated expert against the exact separate builder/consultant pair with identical input, plan, question, route, filters, and cutoff. Require byte-identical knowledge, identical native payloads and ranks before citation enrichment, 100% resolvable physical evidence, and zero query errors.
Planless family:
python -B scripts/build_semantic_okf_knowledge_skill.py \
MANIFEST.json OUTPUT_SKILL \
--family legacy \
--name domain-knowledge-expert \
--description "Applies bundled domain knowledge with exact evidence. Use for domain questions." \
--guidance REVIEWED_GUIDANCE.md \
--concept-layout source-packed-v1 \
--output-format json
Plan-based family:
python -B scripts/build_semantic_okf_knowledge_skill.py \
MANIFEST.json OUTPUT_SKILL \
--family adaptive --plan ADAPTIVE_PLAN.json \
--name domain-knowledge-expert \
--description "Applies bundled domain knowledge with exact evidence. Use for domain questions." \
--guidance REVIEWED_GUIDANCE.md \
--concept-layout source-packed-v1 \
--output-format json
The supported family IDs are legacy, embeddings, classical, adaptive,
entity-graph, ensemble, graphify, and turso. The default physical
layout is source-packed-v1.
python -B scripts/validate_semantic_okf_knowledge_skill.py \
OUTPUT_SKILL --deep-validation
python -B scripts/build_semantic_okf_knowledge_skill.py \
MANIFEST.json OUTPUT_SKILL \
--family FAMILY [--plan FAMILY_PLAN.json] \
--name domain-knowledge-expert \
--description "Applies bundled domain knowledge with exact evidence. Use for domain questions." \
--guidance REVIEWED_GUIDANCE.md \
--concept-layout source-packed-v1 \
--output-format json --check
python -B OUTPUT_SKILL/scripts/runtime_smoke.py
python -B OUTPUT_SKILL/scripts/query_expert_knowledge.py \
verify --deep-validation
The generated stable helper exposes verify, inspect, search, and get.
Its search mode defaults to the selected family's native default and may be
overridden with --mode. It preserves the native JSON payload and adds exact
physical evidence fields to authoritative hits:
logical_concept_path;physical_concept_path;evidence_path;evidence_anchor for packed structured records; andcitation.Advanced matched-family commands remain available in scripts/native/ and
their exact instructions remain under references/consultation/. Generated
experts contain no builder implementation and never reach back into this
generator.
agents/openai.yaml (opens in a new tab)assets/expert-template/query_expert_knowledge.py (opens in a new tab)assets/expert-template/runtime_smoke.py (opens in a new tab)assets/families/adaptive/builder/agents/openai.yaml (opens in a new tab)assets/families/adaptive/builder/references/adaptive-format.md (opens in a new tab)assets/families/adaptive/builder/references/adaptive-plan.md (opens in a new tab)assets/families/adaptive/builder/references/coherence-contract.md (opens in a new tab)assets/families/adaptive/builder/references/manifest.md (opens in a new tab)assets/families/adaptive/builder/references/python-runtime.md (opens in a new tab)assets/families/adaptive/builder/references/source-combination.md (opens in a new tab)assets/families/adaptive/builder/scripts/_adaptive_retrieval.py (opens in a new tab)assets/families/adaptive/builder/scripts/_build_semantic_okf_core.py (opens in a new tab)assets/families/adaptive/builder/scripts/_semantic_okf.py (opens in a new tab)assets/families/adaptive/builder/scripts/build_semantic_okf_adaptive.py (opens in a new tab)assets/families/adaptive/builder/scripts/requirements.in (opens in a new tab)assets/families/adaptive/builder/scripts/requirements.txt (opens in a new tab)assets/families/adaptive/builder/scripts/runtime_smoke.py (opens in a new tab)assets/families/adaptive/builder/scripts/validate_okf_bundle.py (opens in a new tab)assets/families/adaptive/builder/scripts/validate_semantic_okf_adaptive.py (opens in a new tab)assets/families/adaptive/consultant/agents/openai.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin knowledge-authoring8 skills in this plugin
/build-classical-chunked-knowledge-skillBuilds a new standalone classical Semantic OKF expert that preserves the complete immutable knowledge and accepted BM25, topic, PPMI association, and fusion retrieval while adding exact structure-aware chunks, linked-neighbor metadata, and query-budgeted nonredundant context selection. Use when papers or other large files make a generated knowledge skill send excessive evidence tokens to an answering model and the original build-classical-knowledge-skill must remain unchanged./build-classical-knowledge-skillBuilds a ready-to-use, standalone knowledge skill directly from a closed Semantic OKF source manifest, a classical retrieval plan, and reviewed application guidance. Use when Codex must generate both the embedded knowledge folder and its read-only expert consultation skill in one atomic operation, with deterministic BM25, topic, PPMI association, and fusion retrieval, exact physical citations, deep validation, and no model downloads or sibling-skill dependency.Other plugins' skills for the same job
/build-specialized-skillBuilds a standalone expert skill from one validated Semantic OKF knowledge folder and reviewed domain-application guidance. Use when Codex needs to add a distinct specialization stage after knowledge construction, bind the exact knowledge bytes into a portable skill, or validate and reproduce a generated expert skill before read-only consultation. This skill packages knowledge; it does not acquire sources, rebuild Semantic OKF, answer the final domain question, or mutate an existing expert skill.