Skip to content
Back to skills

Pin

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agents

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add AkshatNaruka/aidentity --skill pin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/akshatnaruka-pin/badge)](https://www.skillsdirectory.com/skills/akshatnaruka-pin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pin
description: 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.
---

# 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_memory` tool with `action="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_memory` tool with `action="add"`, `content="[PINNED] <the user's text>"`.

### Step 3: Confirm

```
Pinned: "<memory content, first 80 chars>"
```

Append `...` only if content exceeds 80 characters.

### Unpin

If the user says "unpin":
1. Find the memory (search or by ID).
2. Create a new memory without the `[PINNED]` prefix.
3. Delete the pinned version.
4. Print: `Unpinned: "<content>..."`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.