mem
mem
Use this skill as a router for persistent knowledge bases. Resolve the knowledge base configuration from .mem.yaml, then use the configured per-base schemas and optional skill for file operations in that base.
Invocation Rule
Invoke $mem whenever saving durable knowledge. Do not write durable knowledge directly to ad hoc files, repo-local .mem trees, Dendron notes, or other long-lived knowledge stores without first using this skill to resolve the configured base, schemas, and optional base-specific file rules.
This rule applies even when another skill discovers the learning, finding, decision, or workflow improvement. The discovering skill can decide what should be remembered, but $mem owns where and how that knowledge is persisted.
Configuration
Resolve configuration in this order:
$PWD/.mem.yaml$HOME/.mem.yaml
If neither file exists, stop and ask where the memory configuration should live. Do not guess a root.
If the user does not specify a base name, route by the configured base description. If no description clearly matches, prefer an exact root match with the working directory. If neither signal is decisive, stop and ask the user. Do not guess.