/knowledge-authoring:build-specialized-skillfrom knowledge-authoring
Builds 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.
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.
Package one immutable Semantic OKF snapshot with concise, reviewed instructions for applying that knowledge. The output is a standalone expert skill that can be installed and consulted without a separate knowledge mount or consultation skill.
--check, and then install or mount that generated skill for consultation.Use --query-template PATH only when an evaluation has selected a reviewed,
self-contained retrieval adapter. Keep the default helper for ordinary experts.
The selected template becomes the generated scripts/query_expert_knowledge.py
and is digest-bound like every other expert artifact.
When that adapter has local modules or a requirements file, pass every regular
file separately with repeatable --query-support PATH. The builder copies each
file directly below scripts/, binds it in the manifest, and rejects basename
collisions. Query support requires an explicit custom template.
For a fixed workload whose questions and qrels are all exposed, the builder can
instead create its own retrospective supervised n-gram routing profile. Use
--retrieval-profile retrospective-supervised-ngram only after freezing and
measuring the default expert. This mode owns its query helper and routing index,
so it cannot be combined with --query-template or --query-support.
The integrated profile mode is not a promotion path. It requires
--acknowledge-exposed-qrels, records that every supplied qrel is development
evidence, sets promotion_eligible: false, and declares that no holdout exists.
Register a genuinely untouched cohort before making any generalization or
promotion claim.
The existing two-stage Build and Consult path remains valid when a reusable generic consultant plus an external snapshot is preferred. Use this skill only when the desired artifact is a self-contained expert that combines the snapshot with instructions for applying it.
Read the ledger and representative concepts before writing guidance. Capture the decisions that are specific to applying this knowledge: scope, task decomposition, decision rules, evidence requirements, known negatives, and limits. Do not copy the corpus into the guidance or state unsupported facts from memory.
The guidance file must contain exactly useful content, no TODOs, and these second-level headings:
## Scope## Application workflow## Decision rules## Evidence and limitsRun commands from this skill directory, or prefix them with the skill root.
python scripts/build_specialized_skill.py KNOWLEDGE OUTPUT \
--name domain-expert \
--description "Applies release policy evidence. Use for approval and scheduling questions." \
--guidance PATH_TO_GUIDANCE.md
python scripts/validate_specialized_skill.py OUTPUT
python scripts/build_specialized_skill.py KNOWLEDGE OUTPUT \
--name domain-expert \
--description "Applies release policy evidence. Use for approval and scheduling questions." \
--guidance PATH_TO_GUIDANCE.md \
--check
OUTPUT must be a new directory whose basename exactly matches --name.
--check builds a temporary candidate and compares complete regular-file bytes;
it never updates the accepted output. When using a selected custom adapter, add
--query-template PATH_TO_FROZEN_QUERY_TEMPLATE.py and the identical
--query-support PATH arguments to both build and check commands.
For an explicitly retrospective fixed workload, build a separate treatment:
python scripts/build_specialized_skill.py KNOWLEDGE PROFILE_OUTPUT \
--name domain-expert-retrospective \
--description "Applies bundled knowledge with retrospective routing. Use for the exposed workload." \
--guidance PATH_TO_GUIDANCE.md \
--retrieval-profile retrospective-supervised-ngram \
--profile-dataset-id FROZEN_DATASET_ID \
--profile-questions FROZEN_QUESTIONS.jsonl \
--profile-qrel-key source_ids \
--profile-identity-mode source-id \
--acknowledge-exposed-qrels
Use source-id when qrels name exact ledger source_id values. Use arxiv-id
only when qrels and every authoritative record expose exactly one consistent
versioned arXiv identity. Repeat the identical arguments with --check.
The generated skill contains:
SKILL.md with the read-only expert workflow;references/guidance.md with the accepted application guidance;references/knowledge/ with the complete immutable Semantic OKF snapshot;scripts/query_expert_knowledge.py for verified local ledger search;scripts/expert_routing_index.json, schema
semantic-okf-supervised-profile-index/2.0, with question and ledger
digests, one-to-five-token features, identity grouping, and an explicit
no-holdout state;expert-manifest.json with knowledge tree, record, guidance, and runtime
bindings; andagents/openai.yaml with portable interface metadata.The generated query helper verifies the manifest and embedded knowledge tree before every search or exact-record lookup. It does not perform network requests, write indexes, cache data, or modify the skill.
The ordinary and custom-adapter packages retain manifest schema
semantic-okf-expert-skill/1.0. An integrated profile package uses
semantic-okf-expert-skill/1.1 and binds the profile artifact and its
development-evidence disclosure. The routing profile is discovery metadata;
only the embedded ledger and concept files are authoritative answer evidence.
Before returning the expert skill:
status: pass and valid: true;--check;agents/openai.yaml (opens in a new tab)assets/expert-template/query_expert_knowledge.py (opens in a new tab)assets/expert-template/query_expert_knowledge_supervised_profiles.py (opens in a new tab)assets/expert-template/query_expert_knowledge_trace_bm25.py (opens in a new tab)assets/expert-template/query_expert_knowledge_trace_classical_hybrid.py (opens in a new tab)references/evaluation-only-registry.json (opens in a new tab)references/expert-skill-contract.md (opens in a new tab)scripts/_skill_authoring.py (opens in a new tab)scripts/_specialized_skill.py (opens in a new tab)scripts/_supervised_profile.py (opens in a new tab)scripts/build_specialized_skill.py (opens in a new tab)scripts/validate_specialized_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-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.Other plugins' skills for the same job