AgentSkillsCN

reset

作为终极选项——清除所有 ALM 学习数据,从头开始。此操作需经用户明确确认。

SKILL.md
--- frontmatter
name: reset
description: Nuclear option — clear all ALM learning data and start fresh. Requires explicit user confirmation.
disable-model-invocation: true
user-invocable: true

ALM Reset

Delete all ALM learning data and reinitialize to first-run state.

Instructions

CRITICAL: Ask for Confirmation First

Before doing anything, ask the user:

Are you sure you want to reset ALM? This will delete all evaluations, playbooks, confidence scores, and the classifier model. This cannot be undone.

Wait for the user to explicitly confirm (e.g., "yes", "confirm", "do it"). If they say no or anything ambiguous, abort and output: [ALM] Reset cancelled.

Perform Reset

Only after explicit confirmation:

  1. Delete all files in ~/.claude/alm/evaluations/ (including the archive/ subdirectory if it exists)
  2. Delete all files in ~/.claude/alm/playbooks/
  3. Delete all files in ~/.claude/alm/classifier/
  4. Delete ~/.claude/alm/confidence.json
  5. Delete ~/.claude/alm/reflect-queue.json
  6. Delete ~/.claude/alm/config.json (if it exists)

Then reinitialize:

  1. Recreate directory structure: evaluations/, playbooks/, classifier/
  2. Write fresh ~/.claude/alm/state.json:
    json
    {
      "paused": false,
      "installDate": "{current ISO timestamp}Z",
      "evalCount": 0,
      "lastReflection": null,
      "firstRunComplete": false
    }
    
  3. Write empty ~/.claude/alm/confidence.json: {}

Report

Output: [ALM] Full reset complete. All learning data has been cleared. Seed playbooks will be used on next session.