ontology
Ontology-based entity discovery and validation for mnemonic memories.
Skill by modeled-information-format
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/modeled-information-format-ontology
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 2
codeload.github.com· found in install commandmif-spec.dev· found in code
Files it touches
~/.claude/skills/ontology- Your home directory (~)
~/.mif/ontologies
What's inside
- Skill name
ontology- Description
- Ontology-based entity discovery and validation for mnemonic memories. Define custom namespaces, entity types, traits, and relationships. Triggers: "entity discovery", "validate ontology", "define namespaces", "resolve entity references", "list ontologies", "show namespaces", "entity types", "entity relationships", "traits", "discovery patterns", "cognitive memory types"
- License
- MIT
- Instructions
- 138 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (12)
- SKILL.md
- software-engineering.ontology.yaml · fallback/ontologies/examples/
- mif-base.ontology.yaml · fallback/ontologies/
- CHANGELOG.md · fallback/schema/ontology/
- README.md · fallback/schema/ontology/
- ontology.context.jsonld · fallback/schema/ontology/
- ontology.schema.json · fallback/schema/ontology/
- __init__.py · lib/
- entity_resolver.py · lib/
- ontology_loader.py · lib/
- ontology_registry.py · lib/
- ontology_validator.py · lib/
SKILL.md (first lines)
<!-- BEGIN MNEMONIC PROTOCOL -->
## Memory
Search first: `/mnemonic:search {relevant_keywords}`
Capture after: `/mnemonic:capture {namespace} "{title}"`
Run `/mnemonic:list --namespaces` to see available namespaces from loaded ontologies.
<!-- END MNEMONIC PROTOCOL -->
# Ontology Skill
Provides custom ontology support for extending mnemonic with domain-specific
knowledge structures.
## Requirements
- **PyYAML** - Optional but recommended for YAML parsing. The library works without it but with limited functionality.
## Capabilities
- Load and validate ontology definitions (YAML)
- Define custom namespaces beyond the 9 base namespaces
- Create typed entities (semantic, episodic, procedural)
- Establish relationships between entities
- Use traits/mixins for reusable field sets
- Entity discovery patterns
## Cognitive Memory Type Triad
All entity types inherit from one of three base memory types:
| Type | Purpose | Examples |
|------|---------|----------|
| **Semantic** | Facts, concepts | Components, technologies, decisions |
| **Episodic** | Events, experiences | Incidents, debug sessions |
| **Procedural** | Step-by-step processes | Runbooks, deployments |
## Usage
### ontology_validator.py
Validate ontology YAML files against the schema.
```bash
python ${SKILL_DIR}/lib/ontology_validator.py <file> [--json]
```
| Option | Description |
|--------|-------------|
| `<file>` | Ontology YAML file to validate (required) |
| `--json` | Output validation results as JSON |
### ontology_registry.py
Load and query ontologies.
```bash
python ${SKILL_DIR}/lib/ontology_registry.py [OPTIONS]
```
| Option | Description |
|--------|-------------|
| `--list` | List all loaded ontologies |
| `--namespaces` | List all available namespaces |
| `--types` | List all entity types |
| `--validate <NS>` | Validate a specific namespace |
| `--json` | Output as JSON |
### entity_resolver.py
Resolve and search entity references across memories.
```bash
python ${SKILL_DIR}/lib/entity_resolver.py [OPTIONS]
```
| Option | Description |
|--------|-------------|
| `--build-index` | Build complete entity index from memory files |
| `--search <query>` | Search for entities by name or content |
| `--resolve <ref>` | Resolve entity reference (e.g., `@[[Name]]`) |
| `--json` | Output results as JSON |
## Entity Reference Syntax
- Simple: `@[[Entity Name]]` - Resolves by name
- Typed: `[[technology:postgres-id]]` - Resolves by type and ID
## Discovery Patterns
Ontologies can define patterns for automatic namespace suggestion during memory capture.
### Content Patterns
Match text content to suggest appropriate namespaces:
```yaml
discovery:
content_patterns:
- pattern: "\\bdecided to\\b|\\bwe will use\\b"
namespace: _semantic/decisions
- pattern: "\\blearned that\\b|\\bthe fix was\\b"
namespace: _semantic/knowledge
```
### File Patterns
Match file paths for contextual namespace hints:
```yaml
discovery:
file_patterns:
- pattern: "auth|login|session"
namespaces:
- _semantic/knowledge
- _semantic/decisions
context: authentication
```
### ConfigurationFrom modeled-information-format/mnemonic, MIT.
More from modeled-information-format/mnemonic
- 0.639score
custodian
modeled-information-format
Memory system custodian for health checks, validation, and maintenance.
SkillAFreshness: A★ 23Claude Code +9 - 0.639score
qmd-setup
modeled-information-format
Set up @tobilu/qmd semantic search for mnemonic memories.
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
qmd-reindex
modeled-information-format
Re-index mnemonic memories for qmd semantic search.
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
setup
modeled-information-format
Configure Claude for proactive mnemonic memory behavior without user intervention
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
blackboard
modeled-information-format
Cross-session handoff, persistent context via blackboard, and agent coordination patterns
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
format
modeled-information-format
MIF (Modeled Information Format) 1.4.2 Level 3 memory templates and formatting guidelines
SkillAFreshness: A★ 23Claude Code +9 - 0.622score
core
modeled-information-format
This skill should be used when the user says "capture memory", "save to memory", "remember this", or trigger phrases like: "I've decided", "let's use", "we're…
SkillAFreshness: A★ 23Claude Code +9 - 0.617score
search
modeled-information-format
This skill should be used when the user says "search memories", "find in memories", "grep mnemonic", "look for memory", "deep search", "synthesize knowledge"…
SkillAFreshness: A★ 23Claude Code +9 - 0.604score
integrate
modeled-information-format
This skill should be used when the user asks to "integrate mnemonic", "wire plugin", "add memory to plugin", "enable memory capture in plugin", "integrate…
SkillAFreshness: A★ 23Claude Code +9 - 0.356score
test-skill
modeled-information-format
Test skill for integration testing
SkillAFreshness: A★ 23Claude Code +9
Signals
- Stars
- 23
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Oct 9, 2026 (20 days ago)
- Last release
- Oct 8, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from modeled-information-format
- 0.639score
custodian
modeled-information-format
Memory system custodian for health checks, validation, and maintenance.
SkillAFreshness: A★ 23Claude Code +9 - 0.639score
qmd-setup
modeled-information-format
Set up @tobilu/qmd semantic search for mnemonic memories.
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
format
modeled-information-format
MIF (Modeled Information Format) 1.4.2 Level 3 memory templates and formatting guidelines
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
blackboard
modeled-information-format
Cross-session handoff, persistent context via blackboard, and agent coordination patterns
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
qmd-reindex
modeled-information-format
Re-index mnemonic memories for qmd semantic search.
SkillAFreshness: A★ 23Claude Code +9 - 0.636score
setup
modeled-information-format
Configure Claude for proactive mnemonic memory behavior without user intervention
SkillAFreshness: A★ 23Claude Code +9
Cite this page
ontology skill. Agent Mart. https://agentmart.dev/skills/modeled-information-format-ontology (last updated 2026-10-24)