craigkjhsu/mem0/pin
Claude Code and agent skill by craigkjhsu/mem0
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install craigkjhsu/mem0/pinSKILL.md
The same SKILL.md was published earlier as tpsaint/fictional-dollop/pin.
Pin
Pin a memory to mark it as high-priority and protect from dream pruning.
Execution
Step 1: Find the memory
The user provides either a search query or memory ID.
If memory ID: Look it up directly.
If search query:
- Use
mem0_memorytool withaction="search",query=<query>. - Show numbered list with content previews.
- Ask: "Which memory to pin? Enter a number."
Step 2: Pin it
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):
- Use
mem0_memorytool withaction="add",content="[PINNED] <the user's text>".
Step 3: Confirm
Append ... only if content exceeds 80 characters.
Unpin
If the user says "unpin":
- Find the memory (search or by ID).
- Create a new memory without the
[PINNED]prefix. - Delete the pinned version.
- Print:
Unpinned: "<content>..."
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingintegrations/pi-agent-plugin/skills/pin/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/craigkjhsu/mem0/pin)