Skip to main content

OntoSkills — Neuro-symbolic skill compiler. Compiles SKILL.md into validated OWL 2 ontologies.

Project description

OntoSkills Core

The neuro-symbolic compiler for the OntoSkills platform.

PyPI version Python versions OWL 2 License


What is ontoskills?

ontoskills is the core Python engine of the OntoSkills platform. It acts as a neuro-symbolic compiler that transforms unstructured, human-readable AI skills (SKILL.md) into strictly validated, queryable OWL 2 ontologies.

By combining the natural language understanding of LLMs with the deterministic formal logic of RDF and SHACL validation, ontoskills ensures that AI agents operate on exact, verifiable knowledge graphs rather than probabilistic prompts.

Key Capabilities

  • LLM Knowledge Extraction: Extracts structured triples (Dependencies, Inputs, Intents, Operations) from markdown files.
  • SHACL Validation: Ensures the extracted semantic graph strictly adheres to the OntoSkills Core Ontology.
  • OWL 2 Compilation: Outputs self-contained .ttl (Turtle) graphs ready for deterministic SPARQL querying.
  • Local Registry Management: Handles the installation, enabling, and indexing of distributed skills packages.
  • Security Auditing: Analyzes the graph for conflicting intents, missing dependencies, or shadowed skills.

Installation

Install the compiler directly from PyPI (requires Python 3.10+):

pip install ontoskills

Quick Start

1. Initialize the Environment

Create the necessary folder structure (.ontoskills/) in your project:

ontoskills init-core

2. Configure the LLM

ontoskills needs an LLM to extract relationships. Create a .env file or export the keys:

export OPENAI_API_KEY="sk-..."

(Anthropic is also supported via ANTHROPIC_API_KEY)

3. Compile Skills

Assuming you have SKILL.md files in a skills/ directory, run the compiler:

ontoskills compile

This will read the markdown files, extract knowledge, validate it via SHACL, and generate .ttl ontology files in the .ontoskills/ output directory.

4. Query the Knowledge Graph

You can perform exact graph queries using SPARQL directly from the CLI:

ontoskills query "SELECT ?skill WHERE { ?skill oc:resolvesIntent 'create_pdf' }"

CLI Reference

The package provides the ontoskills command-line tool. Here are the main commands:

Core Commands

  • ontoskills compile: Compile local skills to validated OWL 2 ontologies.
  • ontoskills query <sparql_query>: Execute a SPARQL query against the compiled domain graph.
  • ontoskills security-audit: Run security checks against the knowledge graph to find issues.
  • ontoskills init-core: Initialize an empty OntoSkills registry in the current directory.
  • ontoskills list-skills: List all successfully compiled skills in the domain graph.

Registry & Packages

  • ontoskills install-package <path>: Install a .tar.gz skill package.
  • ontoskills import-source-repo <url>: Import skills directly from a remote Git repository.
  • ontoskills install: Download and install all dependencies declared in the lockfile.
  • ontoskills enable <skill_id>: Enable an installed skill.
  • ontoskills disable <skill_id>: Disable an installed skill.
  • ontoskills list-installed: Show all installed packages and their status.
  • ontoskills rebuild-index: Rebuild the registry index manually.

Run ontoskills --help or ontoskills <command> --help for detailed usage.


Documentation & Source

For the full documentation, architecture details, and to contribute to the project, please visit the main repository:

👉 mareasoftware/ontoskills GitHub Repository


© 2026 Marea Software

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ontoskills-0.7.2.tar.gz (76.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ontoskills-0.7.2-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

Details for the file ontoskills-0.7.2.tar.gz.

File metadata

  • Download URL: ontoskills-0.7.2.tar.gz
  • Upload date:
  • Size: 76.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ontoskills-0.7.2.tar.gz
Algorithm Hash digest
SHA256 98a78bf7eb7508f1b6fa2ea6a2fc3c4328e7b26fe5b63805f83d756925c423a4
MD5 79bcdc540433ea7acd978cbb7e8762ff
BLAKE2b-256 182955146dc1de2b98ae6c64609155d7cc8f37b4cc0d72fcbcbdb4b38b8be75c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontoskills-0.7.2.tar.gz:

Publisher: release-core.yml on mareasoftware/ontoskills

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ontoskills-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: ontoskills-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 57.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ontoskills-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ba1daae6cc89a765477e461dbac07f62cefc62644320ef70d4bf12b237d764a
MD5 9b7d37c68bf7accf7535daa163cbbbff
BLAKE2b-256 b6c0412f70bfbeec940affbd75b8c924777e58575d82def78a37d81d5e5260f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontoskills-0.7.2-py3-none-any.whl:

Publisher: release-core.yml on mareasoftware/ontoskills

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page