ontology: Typed knowledge graph for agent memory and shared state
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.
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/ontologyTrend
Growing steadily- Daily downloads, last 30 days
- 55
- Daily downloads, last 30 days vs the 30 days before
- 0%
How this skill works
- 1Optionally define types and constraints in `memory/ontology/schema.yaml` with `schema-append`.
- 2Create entities with `scripts/ontology.py create --type <Type> --props '<json>'`, which appends them to `memory/ontology/graph.jsonl`.
- 3Link entities with `relate --from <id> --rel <relation> --to <id>`.
- 4Query by type or filter with `query`, fetch one entity with `get`, and follow links with `related`.
- 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.
- 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
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/clawhub/ontology)