Skip to content

Getting Started

OntoSkills is currently in Phase 4 development. OntoCore (compiler) and OntoMCP (server) are ready. OntoStore marketplace is in progress.

Prerequisites

  • Python 3.10+
  • pip or uv package manager

Installation

Terminal window
# Clone the repository
git clone https://github.com/mareasoftware/ontoskills.git
cd ontoskills
# Install core
cd core
pip install -e ".[dev]"

CLI Commands

Terminal window
# Initialize core ontology with predefined states
ontoskills init-core
# Compile all skills to ontology
ontoskills compile
# Compile specific skill
ontoskills compile my-skill
# Query ontology with SPARQL
ontoskills query "SELECT ?s WHERE { ?s a oc:Skill }"
# List all skills
ontoskills list-skills
# Run security audit
ontoskills security-audit

Command Options

OptionDescription
-i, --inputInput directory (default: ./skills/)
-o, --outputOutput file (default: ./ontoskills/skills.ttl)
--dry-runPreview without saving
--skip-securitySkip security checks (not recommended)
-f, --forceForce recompilation (bypass hash-based cache)
--reason/--no-reasonApply OWL reasoning
-v, --verboseDebug logging

MCP Server (Phase 3 — Ready)

OntoMCP exposes ontologies via the Model Context Protocol. Built in Rust for sub-millisecond SPARQL queries.

Terminal window
# Run the MCP server
cargo run --manifest-path mcp/Cargo.toml

Available MCP Tools

ToolPurpose
list_skillsList all available skills
find_skills_by_intentFind skills matching a user intent
get_skillGet full skill details by ID
get_skill_requirementsGet skill dependencies
get_skill_transitionsGet state transitions (requires/yields/handles)
get_skill_dependenciesGet skills this one depends on
get_skill_conflictsGet skills that contradict this one
find_skills_yielding_stateFind skills that produce a state
find_skills_requiring_stateFind skills that need a state
check_skill_applicabilityCheck if skill can run
plan_from_intentGenerate execution plan from intent
get_skill_payloadGet execution code for a skill

Claude Code Integration

Register the MCP server with Claude Code:

Terminal window
claude mcp add ontoskills -- \
cargo run --manifest-path /absolute/path/to/ontoskills/mcp/Cargo.toml

What’s Next?