/evoontology:build-ontologyfrom evoontology
Constructs an initial ontology layer from data and analytical goals, following a structured workflow with schema, interaction protocol, and data boundary constraints.
Ships in evoontology. 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.
Construct the first version of an ontology layer for a target workload.
The goal is to discover reusable, evidence-grounded analytical knowledge from questions and data-environment exploration.
The semantic schema defines the structure of the ontology layer. The Builder Agent discovers and populates semantic content under this schema.
Read:
The generated ontology layer MUST follow ontology-schema.md.
The semantic interaction assumptions MUST follow ontology-interaction-protocol.md.
Do not create alternative semantic object structures.
All dataset access, split usage, freezing, and evaluation boundaries MUST follow ontology-layer-data-boundary.md.
Before construction, establish the project context and data boundary.
If an active semantic version already exists, do not rebuild or overwrite it. Direct the user to evolution unless they explicitly request a new workspace or destructive reinitialization.
If .evoontology/project.json exists, load and reuse the persisted project
context. Do not re-infer or overwrite it unless the user explicitly requests
reconfiguration.
Otherwise, determine the project mode:
Resolve the target data source and analytical goal. Use the workload preparation workflow in references/workload-experience.md: supplied questions, relevant project history, then evidence-grounded generated questions to fill coverage gaps. A user-provided question file is optional. Resolve the workload source and Evaluator. When Ground Truth exists, register its location for Evaluator use only; Builder and Evolver must not read it.
For Fixed-Split Mode:
references/ontology-layer-data-boundary.md;For Rolling-Trajectory Mode:
Present a concise summary of the data source, analytical scope and evaluation boundary. Reuse explicit authorization already in the request; ask only when a material source or business-definition ambiguity remains. Persist context using configure_ontology_project. Do not require users to choose internal mode names. Later evolution runs must reuse this context rather than infer it again.
Stage Output: A resolved and persisted project context and data boundary.
Read only the workload permitted by the persisted project boundary: the frozen construction split in Fixed-Split Mode, or the seed workload in Rolling-Trajectory Mode.
Identify:
Create a workload coverage map.
The coverage map is a construction artifact, not part of the semantic layer. Its purpose is to ensure important analytical requirements are not lost during ontology layer construction.
Start semantic construction from analytical requirements. In a cold start, metadata inspection may first help propose grounded analytical questions; it must not turn physical table structure into unsupported business semantics.
Translate workload requirements into semantic objects defined by ontology-schema.md.
Determine:
relation_type values
defined in ontology-schema.md: association / hierarchy / composition /
equivalence / derivation;For each Relation, classify the relationship type using the decision
priority defined in ontology-schema.md. Do not use free-text types such as
affects or belongs_to.
Keep the ontology layer minimal and reusable. Do not create objects without a clear workload purpose.
Use available read-only tools to inspect the target data environment, including databases, structured files, documents, metadata, and other supported data sources.
For each semantic requirement:
Semantic objects must be grounded in reproducible observations from the target data environment. Do not infer unsupported concepts from external knowledge.
When multiple data sources or elements are plausible groundings for the same analytical concept, document their distinct semantic roles, granularity, scope, and applicability conditions.
Use Mapping to connect analytical concepts to concrete data sources, structures, or elements. Use Constraint to record data-grounded applicability conditions, value interpretations, and business rules. Use Relation to record semantic connections between Terms. Use Evidence to record the reproducible observations supporting these semantic claims.
Stage Output: Candidate semantic objects and their data-grounded evidence.
Create semantic objects according to ontology-schema.md:
Every active semantic object must be traceable to:
The ontology layer should preserve the workload coverage map while storing only validated semantic knowledge.
Semantic objects MUST contain only the fields defined in ontology-schema.md. Do not add query-generation instructions, SQL templates, procedural reasoning steps, or task-specific solution strategies. Do not encode such prohibited content inside schema-defined free-text fields as a workaround.
Relation objects MUST use one of the five controlled relation_type values.
Describe the connection semantically rather than as a query template.
Constraint objects MUST include suitable trigger_keywords so that relevant
constraints can be discovered at runtime.
Validate that:
Coverage validation confirms semantic availability and grounding; it does not by itself guarantee successful task execution.
If no valid grounding exists, record a coverage gap or known limitation. Do not fabricate semantic objects.
Revise unsupported, ambiguous, incomplete, or schema-invalid objects.
Publish the initial ontology-layer version with:
Complete publication through the evo-semantic MCP tools (pass the absolute
.evoontology/ path as workspace; do not run python -m evoontology...) in
this order:
save_version — write ontology_v0's five record files;annotate_ontology_version — save a summary, limitations and question-to-object links;publish_ontology_build — validate, activate, initialize evolution state and
automatically render/open the Results & questions explorer.If the user requests task demonstrations, run representative public questions through the task recording tools and refresh visualize_ontology afterward. Do not present structural validation as proof of task accuracy. On presentation failure, report the successful publication and retry rendering; do not rebuild the ontology.
Initial build is not an evolution run. Evolution-history fields such as
last_evolution_trajectory and last_evolution_time must remain unset until
the first evolution run completes.
Stage Output: An activated initial ontology layer with initialized evolution-trigger state.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/evolve-ontologyImprove an existing ontology using real project tasks and grounded exploration, run missing baselines, validate candidates and automatically show the outcome. This skill is triggered when the user requests to "self-evolve the current ontology layer system". Autonomously evolve an ontology-layer system through a four-step loop of diagnosis, attribution, patching, and Parent/Candidate evaluation until a reproducibly better version is obtained, or external conditions prevent trustworthy continuation./explore-ontologyExplore ontology questions, grounded concepts, evidence, actual task results and evolution outcomes in a read-only interactive version explorer.npx claudepluginhub ruc-datalab/evoontology --plugin evoontologyOther plugins' skills for the same job