Skip to content

What is OntoSkills?

OntoSkills is a neuro-symbolic skill platform for deterministic agents. It turns SKILL.md sources into validated OWL 2 ontologies, serves compiled skills through a local MCP runtime, and distributes published packages through the official registry.


Why OntoSkills?

The Determinism Problem

LLMs read skills probabilistically. Same query, different results. Long skill files are expensive for large models and confusing for small ones.

  • Non-deterministic reading — LLMs interpret text differently each time
  • Token waste — Large models burn tokens parsing long documentation
  • Small model limits — Complex skills are unreadable by edge models
  • No verifiable structure — Relationships between skills are implicit

The Ontological Solution

OntoSkills transforms skills into formal ontologies with Description Logics (OWL 2):

  • Deterministic queries — SPARQL returns exact answers, every time
  • Entailment reasoning — Infer dependencies, conflicts, capabilities
  • Democratized intelligence — Small models query what large models read
  • Formal semantics — No ambiguity in skill relationships

Performance Comparison

OperationReading FilesOntology Query
Find skill by intentO(n) text scanO(1) indexed lookup
Check dependenciesParse each fileFollow dependsOn edges
Detect conflictsCompare all pairsSingle SPARQL query

For 100 skills: ~500KB text scan → ~1KB query


How It Works

OntoCore Architecture

The Compilation Pipeline

  1. Extract — Claude reads SKILL.md and extracts structured knowledge
  2. Validate — Security pipeline checks for malicious content
  3. Serialize — Pydantic models → RDF triples
  4. Verify — SHACL gatekeeper ensures logical validity
  5. Write — Compiled .ttl files to ontoskills/

The Runtime

  • OntoMCP loads compiled .ttl files from ontoskills/
  • Agents query via SPARQL through the MCP protocol
  • The official registry is built in by default
  • Third-party registries can be added explicitly with registry add-source

Key Capabilities

CapabilityDescription
LLM ExtractionClaude extracts structured knowledge from SKILL.md files
Knowledge ArchitectureFollows the “A is a B that C” definition pattern (genus + differentia)
Knowledge Nodes10-dimensional epistemic taxonomy (Heuristic, AntiPattern, PreFlightCheck, etc.)
OWL 2 SerializationOutputs valid OWL 2 ontologies in RDF/Turtle format
SHACL ValidationConstitutional gatekeeper ensures logical validity before write
State MachinesSkills can define preconditions, postconditions, and failure handlers
Security PipelineDefense-in-depth: regex patterns + LLM review for malicious content
Static LintingDetects dead states, circular deps, duplicate intents
Drift DetectionSemantic diff between ontology versions

What Gets Compiled

Every skill is extracted with:

  • Identity: nature, genus, differentia (Knowledge Architecture)
  • Intents: What user intentions this skill resolves
  • Requirements: Dependencies (EnvVar, Tool, Hardware, API, Knowledge)
  • Knowledge Nodes: Epistemic knowledge (8-12 nodes per skill)
  • Execution Payload: Optional code to execute
  • State Transitions: requiresState, yieldsState, handlesFailure
  • Provenance: generatedBy attestation (LLM model used)

Components

ComponentLanguageStatusDescription
ontoskillsCLI✅ ReadyUser-facing installer and manager
OntoCorePython✅ ReadySkill compiler for SKILL.md sources
OntoMCPRust✅ ReadyMCP server with 4 consolidated semantic tools
OntoSkills RegistryGitHub repo✅ ReadyOfficial compiled skill registry
skills/MarkdownInputHuman-authored source skills
ontoskills/TurtleOutputCompiled ontology artifacts
specs/TurtleConstitutionSHACL shapes for validation

Use Cases

Use CaseHow OntoSkills Helps
Enterprise AI AgentsDeterministic skill selection via SPARQL queries
Edge DeploymentSmaller models query large skill ecosystems
Multi-Agent SystemsShared ontology as coordination layer
Compliance & AuditEvery skill carries attestation and content hash
Skill MarketplacesThe official registry and third-party registries enable plug-and-play distribution

Next Steps