xz1220/kempt/kempt-clean

Claude Code and agent skill by xz1220/kempt

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Reversibly clean the agent debt that Kempt found — stale sessions, unused skills, stale/duplicate memories, orphan caches — with everything moved to a recycle bin that supports one-command undo. Use when the user asks to clean up their Claude Code / Codex state, free agent context budget, or act on a Kempt report ("清理 agent 债", "clean my agent", "apply the kempt plan").

Install

npx vskill@latest install xz1220/kempt/kempt-clean

SKILL.md

Kempt Clean — reversible cleanup with undo

You are applying Kempt's clean plan with the user's explicit confirmation. Every change is reversible: items move to Kempt's recycle bin and the whole batch can be undone with one command. You never hard-delete anything.

Steps

  1. Locate the CLI (same as kempt-checkup): command -v kempt, else

node <kempt-repo>/bin/kempt.mjs.

  1. Ensure a fresh report. If the user just ran a checkup, reuse it. Otherwise run

kempt scan --json first — the clean plan is derived from the latest report.

  1. Dry-run and show the plan. Run:

``bash kempt clean ``

(no --yes → dry run, nothing is touched). Summarize for the user what would be cleaned: each item's what, detail, size, and that all of it goes to the recycle bin. By default this covers safe-group items only; mention that --all would also include manual-review items such as the memory merge.

  1. Ask the user to confirm. Show the item list and ask explicitly. Respect their choice;

they can also cherry-pick with --items <id,id> (ids are shown by kempt plan).

  1. Apply only after a clear yes:

``bash kempt clean --yes --json ``

Report back: items cleaned, bytes reclaimed, health score before → after.

  1. Always end with the undo path:

``bash kempt restore --last ``

undoes the entire batch; kempt history shows what is in the recycle bin and until when it can be restored.

Rules

  • **Never run kempt clean --yes without the user's explicit confirmation in this

conversation.** A standing instruction like "clean everything from now on" from a prior session does not count.

  • Never run `kempt empty-recycle` unless the user explicitly asks to permanently empty

the recycle bin — it is the only irreversible command. Warn before running it.

  • Do not edit, move or delete any file under ~/.claude / ~/.codex yourself; the only

write path is the Kempt CLI, which guarantees reversibility.

  • If a restore or clean fails, surface the CLI's error verbatim and stop; do not improvise

with rm/mv.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/xz1220/kempt/kempt-clean/badge)](https://verified-skill.com/skills/xz1220/kempt/kempt-clean)

Something wrong with this skill or its page? Tell us.