ontology
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Security Assessment
About ontology
This skill provides a typed ontology system for representing structured knowledge as a verifiable graph. It is designed to give AI agents and composable skills a consistent way to store, retrieve, and update shared memory using strongly typed entities and explicit relationships. Each piece of information is modeled as an entity with an ID, type, properties, and relations, ensuring that all stored knowledge follows a predictable and constraint-validated structure. Every change to the graph is validated against predefined type rules before being committed, which helps prevent inconsistent or invalid state.
The system supports core capabilities such as entity creation, querying, updating, and relationship management, along with graph traversal operations like dependency resolution and cross-entity lookups. It includes a schema-based constraint layer defined in a YAML configuration file, allowing developers to enforce required fields, enum values, forbidden properties, and relational rules such as cardinality or acyclicity. Data is stored in a JSONL-based graph format by default, with the option to migrate to SQLite for larger or more complex graphs. A set of scripts (ontology.py) provides command-line operations for creating, querying, linking, retrieving, and validating entities, while a skill contract mechanism defines what data a skill reads or writes and its execution constraints.
This skill is intended for AI systems that require persistent, structured memory and explicit reasoning over interconnected data. Common use cases include task tracking, project planning, dependency management, linking people and organizations, and enabling multi-step reasoning through graph transformations. It is especially useful for agent frameworks where multiple skills must share consistent state or coordinate actions. Developers, AI system architects, and multi-agent application builders benefit from its ability to maintain structured, validated, and queryable knowledge across workflows.
FAQ
How do I create a new entity in the ontology?
Entities are created using the provided ontology script interface, typically by specifying a type and a set of properties. For example, the create command allows defining a Person, Task, or Project with structured fields.
Can this system store sensitive information like passwords or API tokens?
No direct storage of secrets is allowed. The Credential type enforces indirection by requiring a secret reference rather than storing sensitive values directly.
How are relationships between entities handled?
Relationships are explicitly defined using relation types that connect entities. These relationships can enforce rules such as cardinality constraints or prevent cycles in dependency chains.
What are the storage limitations of this system?
The default storage uses a JSONL file-based graph, which is suitable for simpler workloads. For larger or more complex graphs, migration to SQLite is recommended.
Can other skills interact with the ontology?
Yes, skills can declare read/write access to ontology types and define preconditions and postconditions, enabling shared and validated state across multiple skills.
Install ontology
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
sundial-org/awesome-openclaw-skills