Learn Reset

VerifiedSafe

Resets the knowledge base by clearing all entries from patterns, quirks, and decisions files, and resets the learning state counter. Use this to start fresh without deleting the folder structure.

Sby Skills Guide Bot
DevelopmentIntermediate
1006/2/2026
Claude Code
#knowledge-management#reset#learning-state#destructive

Recommended for

Our review

Resets the knowledge base by clearing all accumulated learnings and resetting the learning state to fresh defaults.

Strengths

  • Quickly clears all accumulated data without deleting file structure.
  • Allows starting fresh with knowledge base.
  • Provides clear output of what was cleared.

Limitations

  • Cannot be undone once executed.
  • Git history may still contain old knowledge if previously committed.
  • Only works within Claude Code environment with specific file structure.
When to use it

Use this skill when you want to discard all past learnings and start fresh, such as when switching to a new project domain.

When not to use it

Do not use this skill if you need to preserve any past insights or if you haven't confirmed with the user first.

Security analysis

Safe
Quality score90/100

The skill only modifies files within a local knowledge directory, with no system-level destructive commands, network interactions, or obfuscated payloads. The warning is about data loss of learned insights, not system harm.

No concerns found

Examples

Reset knowledge base for new project
I want to start fresh with a clean knowledge base. Please reset all learnings and state.
Clear accumulated patterns and quirks
Clear all patterns, quirks, and decisions from the knowledge base and disable learning mode.

name: learn-reset description: Clear the knowledge base and start fresh user_invokable: true

Learn Reset

Clear all accumulated knowledge and reset to a fresh state.

What This Does

  • Clears all entries from knowledge/learnings/ files (patterns, quirks, decisions)
  • Resets learning state (extraction count)
  • Preserves file structure (doesn't delete files)

Warning: This action cannot be undone. All accumulated insights will be lost.

Instructions

  1. Confirm with user - This is destructive, ask for confirmation first
  2. Reset learnings files - Clear entries from:
    • knowledge/learnings/patterns.md
    • knowledge/learnings/quirks.md
    • knowledge/learnings/decisions.md
  3. Reset state - Reset knowledge/state.json to initial values
  4. Confirm completion

Reset File Format

After reset, each learnings file should have:

---
type: [type]
version: "1.0"
description: [original description]
last_updated: null
entry_count: 0
---

# [Title]

[Description]

**Purpose:** [Purpose]

---

<!-- Entries will be appended below this line -->

State Reset

Reset knowledge/state.json to:

{
  "version": "1.0",
  "learning_mode": false,
  "learning_mode_since": null,
  "last_extraction": null,
  "extraction_count": 0
}

Output Format

Knowledge Base Reset
--------------------
Are you sure you want to clear all knowledge? This cannot be undone.

[After confirmation]

Knowledge base has been reset:
  - Cleared 8 patterns
  - Cleared 3 quirks
  - Cleared 5 decisions
  - Reset learning state

The knowledge base is now empty. Use /learn to start fresh.

Notes

  • Always confirm before resetting
  • This does not delete the knowledge directory structure
  • Learning mode is disabled after reset
  • Git history may still contain old knowledge if previously committed
Related skills