Archive Cleanup — Development skill for Claude Code
Prune archive/{plans,todos,working}/ files older than the retention threshold (default 30 days, overridable via MEMORY_ARCHIVE_RETAIN_DAYS).
How to install Archive Cleanup
Installs to ~/.claude/skills/seyio91-ai-memory-system-archive-cleanup/SKILL.md
mkdir -p ~/.claude/skills/seyio91-ai-memory-system-archive-cleanup && curl -fsSL https://raw.githubusercontent.com/seyio91/ai-memory-system/HEAD/commands/archive-cleanup.md -o ~/.claude/skills/seyio91-ai-memory-system-archive-cleanup/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Archive Cleanup does
Prune `archive/{plans,todos,working}/` files older than the retention threshold (default 30 days, overridable via `MEMORY_ARCHIVE_RETAIN_DAYS`). `.gitkeep` files are preserved unconditionally.
Argument: `$ARGUMENTS` — optional flags forwarded to the script. Recognized:
--all-projects— clean every project's archive; default is active project only.--days N— override retention threshold for this run.
Always runs dry-run first, surfaces results to the user, asks for explicit confirmatio
Alternatives in Development
- Cohort Analysis — Cohort retention curves, feature adoption, and segment insights 7.8k ★
- Last30days Skill — Claude Code skill that researches any topic across Reddit + X from the last 30 days, then writes copy-paste-re 4.4k ★
- Create Todos — Create Smart TODOs 2.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Archive
Move old [fixed] found-issues entries to an archive file (count threshold 50 OR days threshold 30, whichever f
Archive Tasks
Retire completed/canceled work items — a handler-dispatched archive/prune of terminal-state tasks past an age
Mem Forget
Active forgetting — archive raw journal transcript past its TTL (default 7 days) out of active recall, after s
Pantheon Forget
Compress old memory entries into summarized form. /pantheon-forget lists entries older than N days, then repla
Mem Handoff
Rotate docs/handoff.md — keep the most recent N dated snapshots live, move older ones to docs/handoff-archive.
Grok Files
List, prune, or gc Grok (xAI) uploaded files. Cleanup for bridge-owned uploads only.
Related Agents
Refactor Cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refa
Cleanup
Scan codebase for code quality issues like unused imports, console.logs, TODOs, and missing types
Validation Agent
Final validation specialist ensuring completion, updating todos, cleanup, and summary. Use at workflow end.