From mnemonic
Defines and validates YAML ontologies for mnemonic memories, enabling custom namespaces, entity types (semantic, episodic, procedural), traits, relationships, and entity resolution.
npx claudepluginhub zircote/mnemonicThis skill is limited to using the following tools:
<!-- BEGIN MNEMONIC PROTOCOL -->
fallback/ontologies/examples/software-engineering.ontology.yamlfallback/ontologies/mif-base.ontology.yamlfallback/schema/ontology/CHANGELOG.mdfallback/schema/ontology/README.mdfallback/schema/ontology/ontology.context.jsonldfallback/schema/ontology/ontology.schema.jsonlib/__init__.pylib/entity_resolver.pylib/ontology_loader.pylib/ontology_registry.pylib/ontology_validator.pyGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Facilitates interactive brainstorming sessions using diverse creative techniques and ideation methods. Activates when users say 'help me brainstorm' or 'help me ideate'.
Search first: /mnemonic:search {relevant_keywords}
Capture after: /mnemonic:capture {namespace} "{title}"
Run /mnemonic:list --namespaces to see available namespaces from loaded ontologies.
Provides custom ontology support for extending mnemonic with domain-specific knowledge structures.
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 |
Validate ontology YAML files against the schema.
python ${SKILL_DIR}/lib/ontology_validator.py <file> [--json]
| Option | Description |
|---|---|
<file> | Ontology YAML file to validate (required) |
--json | Output validation results as JSON |
Load and query ontologies.
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 |
Resolve and search entity references across memories.
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 Name]] - Resolves by name[[technology:postgres-id]] - Resolves by type and IDOntologies can define patterns for automatic namespace suggestion during memory capture.
Match text content to suggest appropriate namespaces:
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
Match file paths for contextual namespace hints:
discovery:
file_patterns:
- pattern: "auth|login|session"
namespaces:
- _semantic/knowledge
- _semantic/decisions
context: authentication
discovery:
enabled: true
confidence_threshold: 0.8 # Minimum confidence to suggest
See fallback/ontologies/mif-base.ontology.yaml for complete examples.
lib/ontology_registry.py - Load and manage ontologieslib/ontology_validator.py - Validate ontology YAMLlib/ontology_loader.py - Centralized ontology loading with cachinglib/entity_resolver.py - Resolve entity referencesfallback/ontologies/mif-base.ontology.yaml - Standard mnemonic namespacesfallback/schema/ontology/ontology.schema.json - JSON Schema