ontology: Typed knowledge graph for agent memory and shared state

By oswalpalashClawHub

Ontology stores an agent's knowledge as typed entities, such as Person, Project, Task and Event, linked by typed relations. Each write is checked against type constraints before it is saved. Other skills can read and write the same objects, so they share state.

AI agentsClawHub
Total downloads
202.5K
ClawHub
Last 7 days
439
▲ 4.8% vs the week before
Best 100 rank
—
Not in Best 100
Days in Best 100
0
out of 104 days tracked

What problem this skill solves

An agent that keeps notes as free text cannot reliably answer questions like "what tasks belong to this project" or "what depends on this task". The facts are scattered, and nothing checks that they are consistent.

With this skill, facts are stored as typed entities with properties and relations. Writes are validated against a schema, and queries can follow relations. Skills that need the same data read the same graph instead of keeping their own copies.

Good for

  • Tracking people, projects, tasks and events and how they link to each other
  • Finding dependencies, such as which tasks are blocked by others
  • Passing data between skills, for example turning an email commitment into a task

Not for

  • Short one-off notes that never need links or queries
  • Storing secrets. Credential entities hold a reference, not the secret itself

Install this skill

ontology only

openclaw skills install @oswalpalash/ontology

Trend

Growing steadily
020040060080043908/2809/2510/3011/27
Daily downloads, last 30 days
55
Daily downloads, last 30 days vs the 30 days before
0%

How this skill works

  1. 1Optionally define types and constraints in `memory/ontology/schema.yaml` with `schema-append`.
  2. 2Create entities with `scripts/ontology.py create --type <Type> --props '<json>'`, which appends them to `memory/ontology/graph.jsonl`.
  3. 3Link entities with `relate --from <id> --rel <relation> --to <id>`.
  4. 4Query by type or filter with `query`, fetch one entity with `get`, and follow links with `related`.
  5. 5Each mutation is checked against the schema, including required fields, enum values, forbidden properties, relation types, cardinality, acyclic relations and Event end-after-start. Run `validate` to check everything.
  6. 6For multi-step plans, the skill applies a sequence of graph operations, validates each step, and rolls back on a constraint violation. Higher-level constraints not implemented in code exist only as documentation.

Are you the author of this skill? Add its rank to your GitHub repo

Best Skills

The badge updates every day and links back to this page.

[![Best Skills](https://linkly.ai/skills/badge/clawhub/ontology.svg)](https://linkly.ai/skills/s/clawhub/ontology)
Linkly AI

Maintained by Linkly AI

Linkly AI is the knowledge brain for AI agents. It automatically parses the notes, study materials, bookmarks, knowledge bases, voice memos, meetings, videos and ideas on your computer, so your agent can search and read everything you have.

Download Linkly AI
Or send this line to your agent and it will help you install and connect.

Set up https://linkly.ai/docs/en/agent-setup.md