MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
PDF & Documents
📄

ontology

Featured

Typed knowledge graph for structured agent memory — create, link, query, and validate entities across skills with enforced constraints.

oswalpalashv1.0.0
ProductivityAI PoweredOpen SourceAutomationDeveloper Tool
Connecting to VM...
Connecting to VM...
npx clawhub@latest install ontology
376Stars
128.0kDownloads
800Current Installs
📦
v1.0.0Version
📅
Mar 11, 2026Updated
View Source(ClawHub)

ontology Skill Overview

Ontology is a typed vocabulary and constraint system that lets agents represent knowledge as a verifiable graph. Every piece of information becomes an entity (Person, Project, Task, Event, Document, and more) with typed properties and validated relations to other entities. It serves as shared persistent memory across skills — any skill can read or write graph objects, enabling composable, stateful agent workflows without duplicating data.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install ontology
or

Click the Install button at the top of this page for one-click setup

When to Use ontology

Best Fit

  • You want an agent to remember structured information across sessions (e.g. "Remember that Alice owns Project X").
  • You need to link related objects and traverse those links later (e.g. "Show all tasks for project Z", "What depends on X?").
  • Multiple skills need to share state without passing raw text — one skill writes a Commitment, another reads it as a Task.
  • You are planning multi-step work and want each step modelled as a validated graph transformation with rollback on constraint violation.

When Not to Use

  • You only need ephemeral, single-turn context and have no need for persistence between agent runs.
  • Your data is purely unstructured (free-form prose) with no meaningful entity relationships to model.
  • You need a production-grade graph database with high concurrency — for large or complex graphs, the SKILL.md itself recommends migrating to SQLite.

Key Features

Rich Built-in Type System

Ships with a comprehensive set of pre-defined types covering agents (Person, Organization), work (Project, Task, Goal), time and place (Event, Location), information (Document, Message, Note), and resources (Account, Device, Credential). Each type carries typed properties and optional fields so you model the real world without inventing schemas from scratch.

Schema-Enforced Constraints

Every mutation is validated against rules defined in memory/ontology/schema.yaml before being committed. Constraints include required fields, enum values, forbidden properties (e.g. blocking raw secrets on Credential), relation type/cardinality rules, acyclicity checks, and temporal sanity checks like end >= start on Event.

Append-Only JSONL Graph Storage

The graph is stored as an append-only memory/ontology/graph.jsonl file — every create, update, and relate operation is a new line, preserving full history. For complex graphs the SKILL.md recommends migrating to SQLite, keeping the same interface.

CLI Workflow for Create / Query / Link / Validate

A scripts/ontology.py CLI provides commands for all core operations: create, query, get, related, relate, validate, and schema-append. This makes it scriptable from any shell step or agent action without writing custom graph code.

Cross-Skill Communication Contract

Skills can declare an ontology contract in their own SKILL.md specifying which types they reads and writes plus pre/post-conditions. This makes inter-skill data dependencies explicit and auditable, turning the ontology into a typed message bus between capabilities.

Planning as Graph Transformations

Multi-step plans can be modelled as ordered sequences of graph operations (CREATE → RELATE → CREATE …). Each step is validated before execution and the entire plan can roll back on a constraint violation, giving agents a structured, inspectable planning layer.

Use Cases

Persistent contact and project memory

An agent creates Person and Project entities the first time they are mentioned, then links them with has_owner or has_member relations. On future turns, querying "What do I know about Alice?" traverses the graph to surface all related projects, tasks, and events without relying on conversation history.

Cross-skill task pipeline

An email-reading skill extracts a commitment from a message and writes a Commitment entity to the ontology. A separate task-management skill periodically queries pending Commitment objects and automatically creates linked Task entities — no direct coupling between the two skills required.

Dependency-aware project planning

A planning agent models a project as a set of Task entities with blocks relations. The acyclicity constraint prevents circular dependencies from being committed, and a related query instantly shows what must be completed before a given task can start.

Auditable multi-step action execution

Before executing a complex workflow (e.g. "Schedule team meeting and assign follow-up tasks"), the agent converts each step into a validated graph operation. If any step violates a constraint the whole sequence rolls back, providing a safe and inspectable execution trail via the Action type log.

Connecting to VM...
npx clawhub@latest install ontology
376Stars
128.0kDownloads
800Current Installs
📦
v1.0.0Version
📅
Mar 11, 2026Updated
View Source(ClawHub)

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!