Skip to content
Back to skills

Learn Reset

ASecurity

Clear the knowledge base and start fresh

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
data-aigit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add 0xrdan/claude-router --skill learn-reset --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Learn Reset?

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

Security grade badge for Learn Reset
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xrdan-learn-reset/badge)](https://www.skillsdirectory.com/skills/0xrdan-learn-reset)

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: 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 the classification cache
- Resets learning state (extraction count, queries)
- 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 cache** - Clear `knowledge/cache/classifications.md`
4. **Reset session** - Clear `knowledge/context/session.md`
5. **Reset state** - Reset `knowledge/state.json` to initial values
6. **Confirm completion**

## Reset File Format

After reset, each learnings file should have:
```yaml
---
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:
```json
{
  "version": "1.0",
  "learning_mode": false,
  "learning_mode_since": null,
  "last_extraction": null,
  "extraction_count": 0,
  "queries_since_extraction": 0,
  "extraction_threshold_queries": 10,
  "extraction_threshold_minutes": 30
}
```

## 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
  - Cleared 23 cached classifications
  - 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

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.