AI Skills · Productivityclaude-cleanup
Added Nov 25, 2026
claude-cleanup
A Skill for Claude users to back up and clean local data and reduce startup context usage.
- Ecosystem
- Agent Skills
- Skill category
- Productivity
- Creator / organization
- 夙愿(GitHub suyuan2022)
What it is
claude-cleanup is a Skill by Suyuan that gives an AI agent instructions for cleaning local Claude state and reducing Claude Code's startup context. Local cleanup supports macOS; context reduction supports macOS and Windows. It backs up data before cleanup and asks the user to confirm cleanup operations that write to disk.
Highlights:
- Backs up and verifies ~/.claude and backs up ~/.claude.json before cleanup. Listed caches and logs can be moved to a timestamped trash directory.
- Measures startup context usage and recent activity, then backs up settings and changes only the items the user agrees to.
- Optional actions include rotating the local identity, deleting Claude Code keychain credentials, and clearing Claude Desktop login state and desktop data.
How to use:
- First, install Node.js and run `npx skills add suyuan2022/suyuan-skill -g`, then select claude-cleanup.
- Next, ask the agent to inspect local state or reduce startup context. Claude Code can only inspect its own active ~/.claude directory without changing it; use Codex or a regular terminal for cleanup.
- Finally, review the action list and enter `CONFIRM` in the terminal before cleanup writes to disk. Context setting changes also require your agreement.
Who it's for:
For Claude users who want to organize local data or reduce Claude Code's startup context usage.
Before you start:
- Installation requires Node.js. Local cleanup requires macOS; context reduction works on macOS and Windows.
- Optional actions can delete keychain credentials, clear login state, or remove desktop data, including conversation lists and work files. Changing the time zone requires sudo and a password entered in a native macOS prompt. If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences.
- The project pages do not specify network use, uploads, or pricing. The project uses the MIT license.
Based on the project's public documentation. Not tested by AI Inspiration World.