/knowledge-authoring:build-classical-chunked-knowledge-skillfrom knowledge-authoring
Builds 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.
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; scripts run unread.
Generate a portable read-only expert with byte-preserved classical knowledge and a separate deterministic context projection. Keep the original generator and every authoritative record unchanged.
Read expert-skill-contract.md and context-projection.md before every build. For changed inputs also read:
Define authority, competency questions, evidence identities, intended decisions, answer-quality gates, and the comparable token unit.
Review the closed Semantic OKF manifest and classical plan. Keep every inclusion and exclusion explicit.
Review the context plan. Prefer Markdown structure, exact non-overlapping ranges, explicit neighbor links, and a bounded adaptive fallback. Do not use lossy summaries as evidence.
Author one UTF-8 guidance document with exactly one H1 and these headings:
## Scope## Application workflow## Decision rules## Evidence and limitsUse CPython 3.12 in an isolated environment. Install
scripts/requirements.txt and run the package-local smoke test.
Build into a new directory whose basename equals --name. The command
builds and deeply validates the complete classical snapshot, derives and
rederives every exact chunk, binds all metadata, and publishes once.
Run the generated validator, deterministic --check, runtime smoke, deep
verification, one full-search parity probe, and representative context
and neighbor-hydration probes.
Compare identical questions against the unchanged classical baseline. Require rank and evidence parity plus lower provider-visible context. Keep grounded answer quality and retrieval mechanics as separate gates.
python -B scripts/build_classical_chunked_knowledge_skill.py \
MANIFEST.json CLASSICAL_PLAN.json OUTPUT_SKILL \
--name domain-chunked-knowledge-expert \
--description "Applies bundled domain knowledge with bounded exact context. Use for domain questions." \
--guidance REVIEWED_GUIDANCE.md \
--concept-layout source-packed-v1 \
--output-format json
The bundled assets/default-context-plan.json is the default. Supply
--context-plan CONTEXT_PLAN.json only for a reviewed closed override.
python -B scripts/validate_classical_chunked_knowledge_skill.py \
OUTPUT_SKILL --deep-validation
python -B scripts/build_classical_chunked_knowledge_skill.py \
MANIFEST.json CLASSICAL_PLAN.json OUTPUT_SKILL \
--name domain-chunked-knowledge-expert \
--description "Applies bundled domain knowledge with bounded exact context. 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
python -B OUTPUT_SKILL/scripts/query_expert_knowledge.py \
context --query "COMPLETE QUESTION" --mode fusion --format markdown
Keep search byte-compatible with the matched classical runtime before
additive citations. Make context the normal answer path. Require it to:
Do not call a smaller payload a quality improvement. Before promotion require fresh independent semantic non-regression in addition to deterministic rank, evidence, robustness, and token gates.
Treat this additive builder as experimental. The latest frozen consultation treatment reduced mean agent tokens by 82.30% and produced valid evidence in all six independent validation cases, but blind review still found two of six semantic regressions. It was rejected for promotion. Do not replace the classical builder or describe this package as the default until a new study passes a fresh zero-regression semantic gate. See ADR 0108 for the durable decision and study boundary.
--check are byte-identical and the copied package is portable.agents/openai.yaml (opens in a new tab)assets/default-context-plan.json (opens in a new tab)assets/expert-template/query_expert_knowledge.py (opens in a new tab)assets/expert-template/requirements.txt (opens in a new tab)assets/expert-template/runtime_smoke.py (opens in a new tab)references/classical-plan.md (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/context-projection.md (opens in a new tab)references/expert-skill-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/_classical_snapshot.py (opens in a new tab)scripts/_context_projection.py (opens in a new tab)scripts/_knowledge_skill.py (opens in a new tab)scripts/_semantic_okf.py (opens in a new tab)scripts/_skill_authoring.py (opens in a new tab)scripts/build_classical_chunked_knowledge_skill.py (opens in a new tab)scripts/requirements.in (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-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./build-semantic-okf-knowledge-skillBuilds 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./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.Other plugins' skills for the same job