Skip to content

CLI Reference

ontoskills is the product entrypoint. It installs and manages the runtime, compiler, store skills, and local state under ~/.ontoskills/.


Quickstart

Terminal window
# First-time setup
npx ontoskills install mcp
# After bootstrap, use directly
ontoskills --help

Installation commands

install mcp

Install the MCP runtime, or install it and bootstrap one or more MCP clients in one command.

Terminal window
ontoskills install mcp
ontoskills install mcp --claude
ontoskills install mcp --codex --cursor
ontoskills install mcp --cursor --vscode --project

Creates:

  • ~/.ontoskills/bin/ontomcp — the MCP server binary
  • ~/.ontoskills/ontologies/core.ttl — core ontology (downloaded from ontoskills.sh)
  • ~/.ontoskills/state/ — lockfiles and metadata

Supported flags:

FlagMeaning
--globalConfigure user-wide MCP settings (default)
--projectConfigure only the current repository/workspace
--all-clientsBootstrap every supported MCP client
--codexConfigure Codex
--claudeConfigure Claude Code
--qwenConfigure Qwen Code
--cursorConfigure Cursor
--vscodeConfigure VS Code
--windsurfConfigure Windsurf
--antigravityConfigure Antigravity (best effort/manual fallback)
--opencodeConfigure OpenCode

When a client cannot be configured fully, ontoskills still installs ontomcp and prints exact manual steps.

install core

Install the OntoCore compiler (optional).

Terminal window
ontoskills install core

Requires Python 3.10+. Creates ~/.ontoskills/core/ with the compiler runtime.


Store commands

search <query>

Search for skills in OntoStore.

Terminal window
ontoskills search hello
ontoskills search pdf
ontoskills search "office document"

install <package-id>

Install a skill from OntoStore.

Terminal window
ontoskills install mareasw/greeting/hello
ontoskills install mareasw/office/xlsx

The package ID format is: owner/repo/skill

enable <package-id>

Re-enable a disabled skill for the MCP runtime.

Terminal window
ontoskills enable mareasw/greeting/hello

Skills are enabled by default on install. Use this to re-enable a previously disabled skill.

disable <package-id>

Disable a skill without removing it.

Terminal window
ontoskills disable mareasw/greeting/hello

remove <package-id>

Remove an installed skill.

Terminal window
ontoskills remove mareasw/greeting/hello

list-installed

List all installed skills.

Terminal window
ontoskills list-installed

Store source commands

store list

List configured skill stores.

Terminal window
ontoskills store list

store add-source <name> <url>

Add a third-party skill store.

Terminal window
ontoskills store add-source acme https://example.com/skills/index.json

Import commands

import-source <url>

Import a raw Git repository containing SKILL.md files.

Terminal window
ontoskills import-source https://github.com/user/skill-repo

Imported skills are stored under ~/.ontoskills/skills/vendor/ and compiled to ~/.ontoskills/ontologies/vendor/.


Compiler commands

These commands require ontocore to be installed.

init-core

Initialize the core ontology.

Terminal window
ontoskills init-core

Creates core.ttl with base classes and properties.

compile [skill]

Compile skills to ontology modules.

Terminal window
# Compile all skills
ontoskills compile
# Compile specific skill
ontoskills compile my-skill
# With options
ontoskills compile --force # Bypass cache
ontoskills compile --dry-run # Preview only
ontoskills compile --skip-security # Skip LLM security review
ontoskills compile -v # Verbose output
OptionDescription
-i, --inputInput directory (default: skills/)
-o, --outputOutput directory (default: ontoskills/)
--dry-runPreview without saving
--skip-securitySkip LLM security review
-f, --forceForce recompilation
-y, --yesSkip confirmation prompts
-v, --verboseDebug logging
-q, --quietSuppress progress output

query <sparql>

Run a SPARQL query against compiled ontologies.

Terminal window
ontoskills query "SELECT ?s WHERE { ?s a oc:Skill }"
ontoskills query "SELECT ?intent WHERE { ?skill oc:resolvesIntent ?intent }"

list-skills

List all compiled skills.

Terminal window
ontoskills list-skills

security-audit

Run security audit on all skills.

Terminal window
ontoskills security-audit

Management commands

update [target]

Update a component or skill.

Terminal window
ontoskills update mcp
ontoskills update core
ontoskills update mareasw/office/xlsx

rebuild-index

Rebuild the ontology index.

Terminal window
ontoskills rebuild-index

doctor

Diagnose installation issues.

Terminal window
ontoskills doctor

Checks:

  • MCP binary exists and is executable
  • Core ontology is valid
  • Environment variables are set
  • Index is consistent

Uninstall

uninstall --all

Remove the entire managed home.

Terminal window
ontoskills uninstall --all

Warning: This deletes everything under ~/.ontoskills/.


Managed home structure

~/.ontoskills/
├── bin/
│ └── ontomcp # MCP server binary
├── core/ # Compiler runtime (if installed)
├── ontologies/ # Compiled ontology packages
│ ├── core.ttl
│ ├── index.ttl
│ ├── system/ # System-level files
│ │ └── index.enabled.ttl # Enabled skills manifest
│ └── */ontoskill.ttl
├── skills/ # Source skills
│ └── vendor/ # Imported repositories
└── state/ # Lockfiles and metadata
├── registry.sources.json
└── registry.lock.json

Environment variables

VariableDescriptionDefault
ANTHROPIC_API_KEYAPI key for compilationRequired for compiler
ANTHROPIC_BASE_URLAPI base URLhttps://api.anthropic.com
ONTOSKILLS_HOMEManaged home directory~/.ontoskills

Exit codes

CodeMeaning
0Success
1General error
2Invalid arguments
3Skill not found
4Security error
5Validation error
6Network error

See also