pi-agent-plugin/skills/pin/SKILL.md
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>..."