AI Agent Hub
Back to skills
Typed Ontology Knowledge Graph icon

Typed Ontology Knowledge Graph

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Follow https://skillhub.cn/install/skillhub.md to install @user_fa1f8a24/ontology123.

About this skill

Problem

In multi-agent workflows, memory often stays scattered across chat text, temporary variables, or private skill state. That state is hard to query, validate, and reuse safely across skills. ontology123 addresses this by expressing objects, properties, relations, and constraints as one verifiable graph instead of letting each skill maintain its own unstructured notes.

How It Works

  • Entity modeling: Each knowledge object is represented as an entity with a type, properties, and relations. Typical triggers include remembering a fact, querying an object, linking two entities, listing project tasks, or checking dependencies.
  • Constraint validation: Default data can be stored in memory/ontology/graph.jsonl, with constraints defined in memory/ontology/schema.yaml. The material describes checks for properties, enums, forbidden values, relation types, cardinality, acyclicity for relations marked acyclic: true, and Event end >= start rules.
  • Graph workflows: The skill centers on creating or updating entities, querying, linking, and validation. Multi-step plans can be modeled as a sequence of graph transformations, validating each step before execution and rolling back when constraints fail.
  • Shared state and append behavior: Skills using the ontology should declare a shared-state contract. Ontology mutations can also be recorded as causal actions for cross-skill use. Existing data should be appended or merged, not overwritten, to preserve prior definitions.

Boundaries

It fits file-local shared knowledge better than a distributed database or a full semantic web. The default JSONL storage may not suit complex graphs, and the material suggests SQLite for larger cases. Some advanced constraints may remain documentation-only unless implemented in code.

Use Cases

  • Store typed project facts and validate relation constraints.
  • Query tasks, dependencies, and events linked to an object.
  • Model multi-step plans as graph operations with rollback.
  • Merge existing schema and entity data without overwrites.

Best For

  • Agent engineers who need queryable shared entity state.
  • Knowledge engineers who need typed entity-relation schemas.
  • Planners who need validated graph steps and rollback.
  • Local-state teams who need append-only ontology merges.