Pins or unpins a memory to protect it from pruning during dream consolidation. Use when a memory is critical and must never be removed, such as core preferences, important decisions, or immutable personal facts.
68
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Pin a memory to mark it as high-priority and protect from dream pruning.
The user provides either a search query or memory ID.
If memory ID: Look it up directly.
If search query:
mem0_memory tool with action="search", query=<query>.Pinning works by prepending [PINNED] to the memory text. This marker tells the dream consolidation to skip it during pruning.
Use mem0_memory tool with action="add", content="[PINNED] <original memory text>".
Then delete the original using mem0_memory with action="delete" and the original memory ID.
For new memories (user wants to pin text that isn't stored yet):
mem0_memory tool with action="add", content="[PINNED] <the user's text>".Pinned: "<memory content, first 80 chars>"Append ... only if content exceeds 80 characters.
If the user says "unpin":
[PINNED] prefix.Unpinned: "<content>..."b357a5a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.