Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
akunzai avatar

Mem Clean

  • 16 installs
  • Updated August 4, 2026
  • akunzai/agent-skills

mem-clean is a skill that interactively deletes expired short-term memory logs and resolves cloud conflict copies under a confirmed dry-run retention plan.

About

This skill interactively cleans short-term agent memory. It deletes expired daily logs computed from the YYYY-MM-DD filename under a confirmed retention window and resolves cloud-drive conflict copies. It is destructive, so it always produces a dry-run plan and requires explicit confirmation, and it blocks cleanup of logs that still hold unresolved Candidate entries.

  • Deletes expired project and global daily memory logs under a confirmed retention plan
  • Resolves cloud-drive conflict copies in ~/.agents/
  • Destructive by design: always dry-runs and requires explicit confirmation

Mem Clean by the numbers

  • 16 all-time installs (skills.sh)
  • Ranked #2,100 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

mem-clean capabilities & compatibility

Capabilities
memory
Use cases
memory
From the docs

What mem-clean says it does

Removes expired daily logs and tidies cloud-sync conflict copies.
SKILL.md
Default retention is 30 days, computed from the `YYYY-MM-DD.md` filename, never mtime.
SKILL.md
npx skills add https://github.com/akunzai/agent-skills --skill mem-clean

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs16
Last updatedAugust 4, 2026
Repositoryakunzai/agent-skills

What it does

Interactively delete expired daily memory logs and resolve cloud conflict copies under a confirmed, dry-run retention plan.

Who is it for?

Safely pruning expired daily memory logs and tidying cloud-sync conflict copies with explicit confirmation.

Skip if: Durable promotion or rewriting long-term memory; it only handles destructive short-term cleanup.

When should I use this skill?

You need to remove expired .memories daily logs or resolve conflicted sync copies.

What you get

Expired logs deleted per a confirmed retention plan and conflict copies resolved, with Candidate-bearing logs protected.

  • Dry-run cleanup plan
  • Deleted expired logs on confirmation
  • Resolved cloud conflict copies

By the numbers

  • Default 30-day retention
  • Retention computed from filename not mtime

Files

SKILL.mdMarkdownGitHub ↗

mem-clean — Short-Term Memory Cleanup

Removes expired daily logs and tidies cloud-sync conflict copies. Every action is interactive: produce a dry-run plan and get explicit confirmation before deleting.

What it cleans

  • Expired project logs in <repo>/.memories/YYYY-MM-DD.md — see

references/short-term-cleanup.md.

  • Expired global logs in ~/.agents/memories/YYYY-MM-DD.md — deleted directly

(not git-synced; see the reference).

  • Cloud conflict copies (*Conflict* / *conflicted*) in ~/.agents/ — see

references/cloud-conflict-resolver.md.

Rules (summary)

  • Default retention is 30 days, computed from the YYYY-MM-DD.md filename, never mtime.
  • Block cleanup of daily logs with unresolved [Candidate] entries (not [Promoted],

[Rejected], or [Expired]).

  • Leave .memories/handoffs/ files alone: active handoffs are managed by mem-auto, which

deletes each task's file on completion. Only offer to remove a handoff file when the user confirms its task is abandoned.

  • Project cleanup is per-user: after deleting expired logs locally, run

/mem-sync first, then mem-sync-git.sh compact to rewrite the user's memories/<email-localpart> branch to a single commit and force-push. Other devices adopt it on next pull.

  • Always show the dry-run plan (scope, retention window, delete list, blocked files,

user keep-list) and require explicit confirmation.

Related skills

FAQ

What is the default retention?

30 days, computed from the YYYY-MM-DD.md filename rather than file mtime.

Can it delete logs with pending Candidates?

No. It blocks cleanup of daily logs that hold unresolved Candidate entries.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.