Skip to content
Skills Library
AI & agents · Automation

memory-init

/memory-init

Initialize or reset memory files to clean state. Use for fresh start, new project/sprint, or new machine. Preserves learned patterns by default. Use when user says "initialize memory", "reset memory", or "memory init".

Repository
skills ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Initialize or reset memory files to clean state. Use for fresh start, new project/sprint, or new machine. Preserves learned patterns by default. Use when user says "initialize memory", "reset memory", or "memory init".

Triggers from the description

initialize memoryreset memorymemory init
Original author description

Initialize or reset memory files to clean state. Use for fresh start, new project/sprint, or new machine. Preserves learned patterns by default. Use when user says "initialize memory", "reset memory", or "memory init".

How it works

  1. Inputs
  2. Workflow
  3. Key Details
Original SKILL.md headings · 83 lines, 302 words
SKILL.md preview
---
name: memory-init
description: Initialize or reset memory files to clean state. Use for fresh start, new project/sprint, or new machine. Preserves learned patterns by default. Use when user says "initialize memory", "reset memory", or "memory init".
---

# Memory Init - Reset Memory to Clean State

Backs up and resets state files. Optionally resets learned patterns and runbooks.

## Inputs

| Input               | Type | Required | Purpose                                    |
| ------------------- | ---- | -------- | ------------------------------------------ |
| `confirm`           | bool | yes      | Must be true (safety)                      |
| `reset_learned`     | bool | false    | Also reset patterns, runbooks, preferences |
| `preserve_patterns` | bool | true     | Keep error patterns when resetting learned |

## Workflow

### 1. Check Confirmation

- If `confirm` not true: output error and usage, stop
- "Must set confirm=true to proceed. This will clear your memory state."

### 2. Backup Before Init

- Create `memory/backups/YYYYMMDD_HHMMSS/`
- Copy: state/current_work, state/environments, learned/patterns, learned/tool_fixes, learned/tool_failures, learned/runbooks, learned/service_quirks, learned/teammate_preferences
- Keep last 10 backups, delete older

### 3. Backup Patterns (if preserve_patterns)

- Save learned/patterns.yaml content before reset

### 4. Reset State Files

- **current_work:** active_issues=[], open_mrs=[], follow_ups=[], notes="Memory initialized"
- **environments:** Template with stage, production, konflux (status unknown), ephemeral_namespaces=[]

### 5. Reset Learned (if reset_learned)

- **patterns:** Clear unless preserve_patterns
- **runbooks:** Empty with commit_format, branch_format from config
- **teammate_preferences:** Empty
- **service_quirks:** Empty

### 6. Restore Patterns (if reset_learned and preserve_patterns)

- Write patterns_backup back to learned/patterns.yaml

### 7. Log Init

- `memory_session_log("Memory initialized", "reset_learned: X, preserve_patterns: Y")`

### 8. Output Format

```markdown
## ✅ Memory Initialized

### 💾 Backup Created

**Location:** memory/backups/YYYYMMDD_HHMMSS/
**Files backed up:** N

### State Files Reset

- ✅ state/current_work.yaml
- ✅ state/environments.yaml

### Learned Files Reset (if reset_learned)

- ✅ learned/runbooks.yaml
- ✅ learned/teammate_preferences.yaml
- ✅ learned/service_quirks.yaml
- ℹ️ learned/patterns.yaml - Preserved (if preserve_patterns)

---

Ready for a fresh start! Use /coffee to begin your day.
```

## Key Details

- **Chains to:** `memory_view`, `bootstrap_knowledge`
- **Requires:** `confirm: true` - never proceed without it
- Backup location: `memory/backups/<timestamp>/`

Versions

RepositoryScoreLicence
This page · dmzoneill/skills100Apache-2.0
flc1125/skills100MIT
yunshu0909/yunshu_skillshub100MIT
legacybridge-tech/claude-plugins100MIT

Database snapshot: 13.11.2026 · package version e78a6761186b (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pm-init
    Initialize or refresh Project Memory for a repository. Use after amplifying a new repo, when the user says "init PM", "set up project memory", or when pm-index.md is missing or empty. Surveys the codebase, creates starter PM units, and populates the index.
  • 100ctx-init
    Initialize AGENTS.md + CLAUDE.md + rules/ in a code repo (fresh mode). Triggers on "/ctx-init", "init context", "scaffold AGENTS.md", or when user asks to set up project context in a new repo.
  • 100initializing-memory
    Comprehensive guide for initializing or reorganizing agent memory into a deeply hierarchical file structure. Use when running /init, when user asks to set up memory, or when memory needs a major reorganization. Trigger phrases: "initialize memory", "set up memory", "populate…
  • 100init
    Initializes Agent Skills in a project by checking prerequisites and verifying the validator configuration. Use when the user says "init", "set up agent-skills", or "initialize agent-skills".
  • 90brain:init
    Use when setting up project memory in a new folder or on the first brain:init in a project. Creates project_brain.db, registers the project, and bootstraps it from CLAUDE.local.md, memory files, docs, and emails; safe to re-run.
  • 100initializing-memory
    Comprehensive guide for initializing or reorganizing agent memory. Load this skill when running /init, when the user asks you to set up your memory, or when you need guidance on creating effective memory files.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.