Typed Ontology Workflow Helper
Requirement
Use this skill when a user needs to turn loose notes, agent memory, business objects, or research material into a typed ontology that can be validated, queried, and maintained.
The validated demand came from popular ontology-style ClawHub workflows and corroborating developer requests around structured knowledge, composable memory, and safer agent workflows. This skill provides an explicit modeling process instead of a generic productivity checklist.
Workflow
- Define the domain boundary, users, decisions the ontology must support, and examples of source material.
- Extract candidate entity types, relation types, attributes, identifiers, and event types from the examples.
- Separate stable ontology concepts from project-specific labels, temporary tags, and free-text notes.
- Produce a typed schema: type names, required fields, optional fields, relation cardinality, constraints, and provenance fields.
- Add examples for each type, including at least one invalid example that explains what should be rejected.
- Design maintenance rules for merge/dedupe, versioning, migration, naming, and conflict resolution.
- Provide query patterns or retrieval prompts that use the ontology without leaking implementation details to end users.
Expected Outputs
- A compact ontology specification with entity and relation definitions.
- JSON Schema, YAML schema, table definitions, or TypeScript types when useful.
- Example records and validation checks.
- Migration and governance notes for maintaining the model over time.
Validation
- Every relation has a source type, target type, meaning, and cardinality.
- The schema includes identifiers and provenance so records can be merged safely.
- Examples demonstrate real use, edge cases, and rejection criteria.
- The model stays small enough to operate locally in notes, files, SQLite, or a lightweight graph store.
Triggers
Keywords: ontology, typed knowledge, knowledge graph, agent memory, schema, entity relation, structured notes, retrieval model.
Example trigger sentences:
Use $work-productivity-ontology-typed-workflow-helper to design a schema for my agent memory.Turn these messy project notes into typed entities and relations.Create validation rules for this lightweight knowledge graph.
