Skip to content
Agentmart
Submit a tool

ontology

Ontology-based entity discovery and validation for mnemonic memories.

Skill by modeled-information-format

IndexedMIT★ 23
Write a review

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.

We use your email only for this newsletter. Privacy

About

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"

No 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 command
  • mif-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
```

### Configuration

From modeled-information-format/mnemonic, MIT.

More from modeled-information-format/mnemonic

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

More from modeled-information-format

Cite this page

ontology skill. Agent Mart. https://agentmart.dev/skills/modeled-information-format-ontology (last updated 2026-10-24)