/knowledge-authoring:build-classical-knowledge-skillfrom knowledge-authoring
Builds 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.
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 one portable expert skill whose references/knowledge/ contains a
deeply validated classical Semantic OKF snapshot and whose local query helper is
already bound to that exact snapshot.
For unchanged reviewed inputs, load only the expert contract. Otherwise read:
Define source authority, competency questions, evidence identities, intended users, and supported decisions.
Review the closed Semantic OKF manifest and classical plan. Select every intended source explicitly; keep exclusions explicit.
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
constructs references/knowledge/, independently rederives the classical
artifacts, verifies every physical concept and packed-record anchor, writes
the consultation runtime, and publishes the complete skill with one rename.
Run the package validator, repeat the complete build with --check, run the
generated runtime smoke, and perform one deep generated-skill verification.
Query representative exact, paraphrased, thematic, and synthesis requests. Require the generated rankings to match the same classical modes over the same snapshot and require every returned physical citation to resolve.
Run from this skill directory or prefix scripts with the copied skill root:
python -B scripts/build_classical_knowledge_skill.py \
MANIFEST.json CLASSICAL_PLAN.json OUTPUT_SKILL \
--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 default physical layout is source-packed-v1. It preserves every logical
record while avoiding repeated small Markdown files for structured sources.
python -B scripts/validate_classical_knowledge_skill.py \
OUTPUT_SKILL --deep-validation
python -B scripts/build_classical_knowledge_skill.py \
MANIFEST.json CLASSICAL_PLAN.json OUTPUT_SKILL \
--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 helper exposes verify, inspect, search, and get. Search
supports bm25, topic, association, and fusion; fusion is the default.
Every hit retains the classical identity and ranking fields and additionally
returns:
logical_concept_path for stable record identity;physical_concept_path and evidence_path for the existing Markdown file;evidence_anchor for a record inside a packed collection; andcitation for direct local use.Do not accept a generated skill merely because it builds. On each claimed test dataset, compare identical queries, modes, filters, and cutoffs against the standalone classical consultation contract. Require identical ranked document IDs, 100% exact physical evidence, no query errors, a passing deep validator, and a deterministic rebuild. Keep grounded-answer quality separate from direct retrieval parity.
agents/openai.yaml (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/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/_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_knowledge_skill.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_classical_knowledge_skill.py (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-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.Other plugins' skills for the same job