Skip to content
Back to skills

Forget

ASecurity

Delete a Wenlan memory by exact id from Codex. Destructive and confirmation gated. Invoked as /forget <source_id>.

  • 79 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsbashgit

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add 7xuanlu/wenlan --skill forget --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forget?

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

Security grade badge for Forget
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/7xuanlu-forget-wenlan/badge)](https://www.skillsdirectory.com/skills/7xuanlu-forget-wenlan)

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: forget
description: >
  Delete a Wenlan memory by exact id from Codex. Destructive and confirmation
  gated. Invoked as /forget <source_id>.
argument-hint: "<source_id>"
allowed-tools: ["Bash", "mcp__wenlan__forget", "mcp__wenlan__recall"]
user-invocable: true
---

# /forget

Delete one memory by exact `source_id`.

## Safety

This cannot be undone by Wenlan. Prefer `/capture` with a corrected memory when
history should be preserved.

Always confirm with the user before calling forget, unless the same user message
already includes an exact id and an unambiguous delete instruction.

If the id is missing, use `mcp__wenlan__recall` to find candidates or ask the
user for the exact id. The confirmation reply must include the action and id:

```text
delete <id>
```

A bare id is not confirmation.

## Call

After confirmation, call:

```text
mcp__wenlan__forget(memory_id="<source_id>")
```

Delete only one memory per tool call. For bulk cleanup, use `/curate captures`
so each item has its own decision.

## Auto-commit `~/.wenlan`

After a successful delete, snapshot any Markdown projection changes. Best
effort only:

```bash
git -C ~/.wenlan add -A && \
  git -C ~/.wenlan -c user.name=Wenlan -c user.email=daemon@wenlan.local \
    commit --quiet -m "forget: <source_id>" 2>/dev/null || \
(sleep 1 && git -C ~/.wenlan add -A && \
  git -C ~/.wenlan -c user.name=Wenlan -c user.email=daemon@wenlan.local \
    commit --quiet -m "forget: <source_id>" 2>/dev/null) || true
```

Do not fail the delete if this commit fails.

## When to use

- User says to forget or delete a specific memory and gives the id.
- User confirms `delete <id>` after recall found the matching memory.

## When not to use

- Corrections where history matters: capture a superseding memory.
- Page rebuilds: use `/distill rebuild <page-id>`.

Files in this skill

  • SKILL.md1.8 KB
  • agents/openai.yaml119 B

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.

Comments

Loading comments…

Newsletter

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