Ontology Knowledge Graph
Paste the following prompt into your AI chat to install this skill:
Please install @user_bf4124be/123skill-name into my AI assistant using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When an AI agent needs to remember facts across turns, link objects, query dependencies, or share state with other skills, conversational memory can be too loose. The same "project" may behave like an entity in one message and a label in another, and prior knowledge may be overwritten without history. This skill treats knowledge as a typed ontology graph: objects are entities with type, properties, and relations, and mutations are checked against constraints before they are committed.
How It Works
- Local storage: default data lives in
memory/ontology/graph.jsonl, while constraints live inmemory/ontology/schema.yaml; larger graphs can migrate to SQLite. - Controlled changes: main workflows are creating entities, querying the graph, linking entities, and validating constraints. Existing data should be
append/merged rather than overwritten, preserving history. - Validation scope: supports property, enum, and
forbiddenchecks, relation type and cardinality validation, acyclicity checks foracyclic: truerelations, andEventchecks such asend >= start. Higher-level semantic constraints may be documentation-only unless implemented in code. - Planning and shared state: multi-step plans can be modeled as graph operations, with each step validated before execution and rollback on constraint violation. Mutations can also be logged as causal actions or exposed to other skills as shared ontology objects.
Fit and Caveats
Use it when you need a queryable knowledge graph, cross-skill shared state, or dependency tracking in local agent workflows. It operates on workspace files, so it fits local or sandboxed environments. If a constraint is only described in the schema but not enforced by code, validation may be limited.
Use Cases
- Store projects and tasks as a queryable entity graph.
- Query all tasks for a project and their dependencies.
- Validate properties, enums, cardinality, and event times.
- Share ontology state across multiple skills.
Best For
- Engineers maintaining agent workspaces who need queryable entity graphs.
- Developers building multi-skill systems who need shared ontology state.
- Engineers building task planners who need validated graph operations.
- Engineers debugging agent memory who need cardinality and enum checks.
Related Skills
Provides Claw with character-library selection, switching, saving, and global SOUL.md style sync for role-based conversation.
An AIONE Agentic AI Infrastructure SDK wrapper for building production AI agents with memory, skills, workflows, and hooks.
A Python/TypeScript SDK wrapper for the DeepSeek-Reasonix native AI coding agent, with prefix-cache support.
A browser automation tool for analysts, operators, and developers that locates elements, fills forms, extracts structured content, and supports no-code scheduling and export.