agentleFS
YehudaFrankelYehudaFrankel/clankbrain/.claude/skills/forget/SKILL.md

forget

Skill16 starsChanged 8 months agoMITView on GitHub

Invalidate or remove a memory entry. Use when the user says "forget that", "that memory is wrong", "remove the X memory", "/forget X". Marks the file as invalidated rather than deleting — preserves history.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use remember.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LangChainSkill

    remember

    Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user named a file directly (e.g.

    line 24
  2. Distinctive:

    Read the full file content so you can show the user what will be removed:

    line 34
  3. Very specific:

    Add status: invalidated to the frontmatter and a one-line note at the top of the body:

    line 44
  4. Distinctive:

    Use Edit to apply the change — never delete the file.

    line 68
  5. Distinctive:

    Delete that line using Edit.

    line 77
  6. Distinctive:

    Never hard-delete memory files — always invalidate and keep

    line 90
  7. Distinctive:

    If the user says "forget everything about X", run the search and offer a list to confirm each one individually

    line 92
  8. Distinctive:

    After invalidating, check if any other memory files reference the invalidated one and note them

    line 93

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: forget

Trigger phrases:

  • /forget [topic or file name]
  • "forget that"
  • "that memory is wrong / outdated"
  • "remove the X memory"
  • "delete the memory about X"
  • "mark X as invalid"

Steps

Step 1 — Find the target memory

If the user named a file directly (e.g. /forget feedback_plan_before_edit.md), use that path.

Otherwise, run:

python tools/memory.py --search "[topic]" --top 5

Show the top result(s) and ask: "Is this the memory you want to remove? (yes / pick a number)"

Step 2 — Read the file

Read the full file content so you can show the user what will be removed:

> **File:** [filename]
> [first 5 lines of content]

Confirm: "Mark this memory as invalidated? (yes/no)"

Step 3 — Invalidate (do not delete)

Add status: invalidated to the frontmatter and a one-line note at the top of the body:

Before:

---
name: some-feedback
type: feedback
---
Always do X when Y.

After:

---
name: some-feedback
type: feedback
status: invalidated
invalidated: 2026-03-31
---
> **INVALIDATED** — removed by user. Kept for history only.

Always do X when Y.

Use Edit to apply the change — never delete the file.

Step 4 — Remove from MEMORY.md index

Find the line in MEMORY.md that references this file and remove it:

- [Title](filename.md) — description

Delete that line using Edit.

Step 5 — Confirm

Report:

Forgotten. [filename] is marked invalidated and removed from the index.
The file is kept in memory/ for history — it will no longer load at session start.

Notes

  • Never hard-delete memory files — always invalidate and keep
  • The status: invalidated frontmatter prevents future confusion but preserves the audit trail
  • If the user says "forget everything about X", run the search and offer a list to confirm each one individually
  • After invalidating, check if any other memory files reference the invalidated one and note them

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.