Install
1
Install the plugin
$
npx claudepluginhub ourines/claude-code-learn --plugin claude-code-learn

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Delete saved knowledge from ~/.claude/learnings/ and optionally clean up knowledge graph.

Tool Access

This skill is limited to using the following tools:

BashReadGlobmcp__memory__search_nodesmcp__memory__delete_entities
Skill Content

forget

Delete saved knowledge from ~/.claude/learnings/.

Instructions

1. Parse Query

Argument: $ARGUMENTS

If empty, list all knowledge files and ask which to delete.

2. Find the File

Search ~/.claude/learnings/:

  1. Exact slug: ~/.claude/learnings/<slug>.md
  2. Partial match: ~/.claude/learnings/*<query>*.md

If multiple matches, list them and ask the user to pick.

3. Confirm Deletion

Show the user:

  • File path
  • Topic name (from frontmatter)
  • Created date

Ask: "Delete this knowledge? (yes/no)"

4. Delete

If confirmed:

Delete the file:

rm ~/.claude/learnings/<slug>.md

Clean up knowledge graph (graceful fallback):

  • If mcp__memory__search_nodes and mcp__memory__delete_entities are available: search for a "learning" entity matching the topic and delete it.
  • If MCP memory tools are NOT available: skip this step silently. The file deletion is sufficient.

Confirm:

Deleted knowledge on "<topic>".

Stats
Stars1
Forks0
Last CommitFeb 11, 2026
Actions

Similar Skills

cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.4k