ontology

Creates typed knowledge graphs for agent memory and shared state using Python and JSONL files.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Maosixian/selfused-xavier-lobsterop --skill ontology-maosixian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ontology
Source: https://github.com/Maosixian/selfused-xavier-lobsterop/tree/main/skills/ontology
Command: npx skills add https://github.com/Maosixian/selfused-xavier-lobsterop --skill ontology-maosixian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a typed knowledge graph for structured agent memory and composable skills, enabling entity linking, constraint enforcement, and state sharing across different skills.

Core Features & Use Cases

  • Entity Management: Create, query, and update entities (Person, Project, Task, Event, Document) with properties and relationships.
  • Graph Transformations: Plan multi-step actions as graph transformations and enforce constraints.
  • Shared State: Share state between skills using ontology objects.
  • Use Case: When building a task management system, you can use this Skill to represent tasks and projects as entities, link them, and enforce constraints on their relationships.

Quick Start

Initialize the ontology with the following command: python3 scripts/ontology.py schema-append --data '{"types": {"Task": {"required": ["title", "status"]}}}'

Frequently Asked Questions about ontology

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share state across different agent skills using a knowledge graph?

You can share state across different agent skills by using a typed knowledge graph to structure agent memory. This enables entity linking and allows multiple skills to access and update shared ontology objects during execution.

What is the best way to represent tasks and projects as linked entities for task management?

The best way to represent tasks and projects is by using a typed knowledge graph for entity management. You can create, query, and update entities like Tasks and Projects while defining their properties and enforcing relationship constraints.

How do I enforce constraints on entity relationships in a structured agent memory?

To enforce constraints on entity relationships in structured agent memory, you can define required properties within the typed knowledge graph schema. The graph then validates these constraints during entity CRUD operations and multi-step graph transformations.

Do I need Python to manage JSONL file operations for knowledge graph storage?

Yes, you need Python to manage JSONL file operations for knowledge graph storage. The system relies on Python scripts to handle graph storage, execute schema modifications, and perform entity CRUD operations via the command line.

Can I plan multi-step actions as graph transformations within a composable skill?

Yes, you can plan multi-step actions as graph transformations within composable skills. The knowledge graph supports planning these transformations while enforcing constraints and maintaining shared state across the execution sequence.

When do I need a typed knowledge graph for structured agent memory instead of simple state variables?

You need a typed knowledge graph for structured agent memory when your application requires entity linking, constraint enforcement, and state sharing across multiple skills, which simple state variables cannot adequately structure or manage.