CLI Reference
ontoskills is the product entrypoint. It installs and manages the runtime, compiler, store skills, and local state under ~/.ontoskills/.
Quickstart
# First-time setupnpx ontoskills install mcp
# After bootstrap, use directlyontoskills --helpInstallation commands
install mcp
Install the MCP runtime, or install it and bootstrap one or more MCP clients in one command.
ontoskills install mcpontoskills install mcp --claudeontoskills install mcp --codex --cursorontoskills install mcp --cursor --vscode --projectCreates:
~/.ontoskills/bin/ontomcp— the MCP server binary~/.ontoskills/ontologies/core.ttl— core ontology (downloaded fromontoskills.sh)~/.ontoskills/state/— lockfiles and metadata
Supported flags:
| Flag | Meaning |
|---|---|
--global | Configure user-wide MCP settings (default) |
--project | Configure only the current repository/workspace |
--all-clients | Bootstrap every supported MCP client |
--codex | Configure Codex |
--claude | Configure Claude Code |
--qwen | Configure Qwen Code |
--cursor | Configure Cursor |
--vscode | Configure VS Code |
--windsurf | Configure Windsurf |
--antigravity | Configure Antigravity (best effort/manual fallback) |
--opencode | Configure OpenCode |
When a client cannot be configured fully, ontoskills still installs ontomcp and prints exact manual steps.
install core
Install the OntoCore compiler (optional).
ontoskills install coreRequires Python 3.10+. Creates ~/.ontoskills/core/ with the compiler runtime.
Store commands
search <query>
Search for skills in OntoStore.
ontoskills search helloontoskills search pdfontoskills search "office document"install <package-id>
Install a skill from OntoStore.
ontoskills install mareasw/greeting/helloontoskills install mareasw/office/xlsxThe package ID format is: owner/repo/skill
enable <package-id>
Re-enable a disabled skill for the MCP runtime.
ontoskills enable mareasw/greeting/helloSkills are enabled by default on install. Use this to re-enable a previously disabled skill.
disable <package-id>
Disable a skill without removing it.
ontoskills disable mareasw/greeting/helloremove <package-id>
Remove an installed skill.
ontoskills remove mareasw/greeting/hellolist-installed
List all installed skills.
ontoskills list-installedStore source commands
store list
List configured skill stores.
ontoskills store liststore add-source <name> <url>
Add a third-party skill store.
ontoskills store add-source acme https://example.com/skills/index.jsonImport commands
import-source <url>
Import a raw Git repository containing SKILL.md files.
ontoskills import-source https://github.com/user/skill-repoImported 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.
ontoskills init-coreCreates core.ttl with base classes and properties.
compile [skill]
Compile skills to ontology modules.
# Compile all skillsontoskills compile
# Compile specific skillontoskills compile my-skill
# With optionsontoskills compile --force # Bypass cacheontoskills compile --dry-run # Preview onlyontoskills compile --skip-security # Skip LLM security reviewontoskills compile -v # Verbose output| Option | Description |
|---|---|
-i, --input | Input directory (default: skills/) |
-o, --output | Output directory (default: ontoskills/) |
--dry-run | Preview without saving |
--skip-security | Skip LLM security review |
-f, --force | Force recompilation |
-y, --yes | Skip confirmation prompts |
-v, --verbose | Debug logging |
-q, --quiet | Suppress progress output |
query <sparql>
Run a SPARQL query against compiled ontologies.
ontoskills query "SELECT ?s WHERE { ?s a oc:Skill }"ontoskills query "SELECT ?intent WHERE { ?skill oc:resolvesIntent ?intent }"list-skills
List all compiled skills.
ontoskills list-skillssecurity-audit
Run security audit on all skills.
ontoskills security-auditManagement commands
update [target]
Update a component or skill.
ontoskills update mcpontoskills update coreontoskills update mareasw/office/xlsxrebuild-index
Rebuild the ontology index.
ontoskills rebuild-indexdoctor
Diagnose installation issues.
ontoskills doctorChecks:
- 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.
ontoskills uninstall --allWarning: 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.jsonEnvironment variables
| Variable | Description | Default |
|---|---|---|
ANTHROPIC_API_KEY | API key for compilation | Required for compiler |
ANTHROPIC_BASE_URL | API base URL | https://api.anthropic.com |
ONTOSKILLS_HOME | Managed home directory | ~/.ontoskills |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Skill not found |
| 4 | Security error |
| 5 | Validation error |
| 6 | Network error |
See also
- Getting Started — First-time setup tutorial
- OntoCore — Compiler reference
- Store — Package management details
- Troubleshooting — Common issues