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

Mem Auto

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

mem-auto is a skill that runs an automatic memory lifecycle for coding agents, resuming handoffs, capturing durable candidates, and delegating to narrow mem-* skills.

About

This skill runs an automatic memory lifecycle for coding agents. It resumes open handoff entries, captures verified durable insights as dated Candidate notes, and delegates detailed work to mem-recall, mem-promote, mem-clean and mem-sync. It keeps short-term daily logs and per-task handoff files separate from long-term AGENTS.md/CLAUDE.md rules, applying a capture gate so only genuinely reusable knowledge is written.

  • Runs an automatic memory loop: resume handoffs, capture candidates, sync, close
  • Separates transient per-task handoff files from durable AGENTS.md/CLAUDE.md rules
  • Delegates lookups, promotion, cleanup and sync to narrow mem-* skills

Mem Auto by the numbers

  • 20 all-time installs (skills.sh)
  • Ranked #2,015 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-auto capabilities & compatibility

Capabilities
memory · orchestration
Works with
github
Use cases
memory · orchestration
From the docs

What mem-auto says it does

Runs the automatic memory loop; delegate detailed work to the narrow mem-* skills.
SKILL.md
**Capture gate — write only if it passes.**
SKILL.md
npx skills add https://github.com/akunzai/agent-skills --skill mem-auto

Add your badge

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

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

What it does

Run the automatic memory lifecycle for an agent: resume handoffs, capture durable candidates, sync and close tasks.

Who is it for?

Automating an agent's memory loop across sessions with handoff resume, candidate capture and sync.

Skip if: Destructive cleanup (use mem-clean) or durable promotion/prune (use mem-promote).

When should I use this skill?

You trigger mem-auto, /mem-auto or $mem-auto to run the memory autopilot at session start, milestones or close.

What you get

Handoffs resumed, durable insights captured as Candidates, logs synced, and completed handoffs deleted.

  • Resumed handoffs
  • Dated Candidate notes
  • Synced memory logs

By the numbers

  • 4-step autopilot loop (Start, Capture, Sync, Closure)
  • Default 30-day retention (via mem-clean delegation)

Files

SKILL.mdMarkdownGitHub ↗

mem-auto — Unified Memory Autopilot

Runs the automatic memory loop; delegate detailed work to the narrow mem-* skills.

Memory Scopes

  • Long-term memory: global durable instructions, preferences, facts, and reusable conventions in ~/.agents/AGENTS.md (the canonical core read natively by every agent); project durable rules in AGENTS.md or CLAUDE.md.
  • Short-term memory: daily [Candidate] logs in ~/.agents/memories/YYYY-MM-DD.md and .memories/YYYY-MM-DD.md; active [Handoff] state lives in per-task files under .memories/handoffs/ (one file per task). Both the daily logs and the handoffs/ subdirectory sync through /mem-sync.

Delegation

Use /mem-recall for short-term lookups, /mem-promote for durable promotion/prune, /mem-clean for destructive cleanup, and /mem-sync for project log status/diff/pull/push.

Autopilot Loop

  • [ ] Start / Handoff In
  • In cross-device projects, run /mem-sync pull first.
  • Legacy handoff migration runs at most once. If the sentinel .memories/.handoff-migrated exists, skip this step — do not re-scan. Otherwise run the one-time migration in references/handoff-migration.md: it greps project and global daily logs for inline [Handoff] residue, migrates any found, and writes the sentinel so later sessions never re-check. Legacy handoffs that arrive later via /mem-sync are surfaced on demand by /mem-recall's fallback grep, not by checking at every start.
  • Resolve handoffs by listing .memories/handoffs/ — one file per active task, named YYYY-MM-DD__<slug>.md. Read only the relevant task file(s); do not load the whole .memories/ tree into context. If several handoffs are open, list them and let the user pick.
  • If the handoff is stale or its branch is merged/gone, ask before resuming.
  • Treat auto-loaded AGENTS.md / CLAUDE.md as the normal source for durable instructions; use /mem-recall for short-term logs, and inspect durable files only when their loaded content seems incomplete or exact wording matters.
  • [ ] Capture
  • Before writing task state, apply references/security.md and references/session-handoff.md.
  • Capture gate — write only if it passes. Ask: would a fresh agent be wrong, blocked, or materially slower without this note? If not, write nothing. Capturing nothing is a valid and common outcome; never log just to fill the step.
  • Never capture (avoids running-log noise): routine successful steps, restatements of the task or request, or anything already recoverable from code, tests, git log, docs, or external trackers (e.g., GitHub/GitLab Issues). If a suitable external tracker is available, ask the user whether to open an issue instead of logging it.
  • At milestones, blockers, quota/context limits, or session boundaries, write or update the task's handoff file .memories/handoffs/YYYY-MM-DD__<slug>.md (date = creation day; <slug> an agent-chosen name fitting the task). Keep it a single live delta — update the file in place, do not stack entries — holding only what a fresh agent would need to continue: goal, progress, verification, next actions, blockers/assumptions, and suggested skills.
  • Reference existing artifacts by path or URL instead of duplicating contents.
  • Treat the handoff file as transient active state: not a [Candidate], not promotable directly, and deleted on completion rather than promoted into durable memory.
  • Log verified durable insights to today's log (.memories/YYYY-MM-DD.md locally or memories/ globally) as [Candidate] entries with a daily time stamp (e.g., [HH:MM]). A [Candidate] must generalize beyond the current task — good: a reusable convention, a non-obvious environment constraint, a gotcha that will recur; bad: one-off task progress or a past fix (that is [Handoff] or git history).
  • [ ] Sync
  • Use /mem-sync for project daily-log Git operations. Its mem-sync-git.sh status and diff commands are read-only checks for local/remote .memories/ differences.
  • Pull before reading remote handoffs; push at session end or after promotion/capture changes that should be available on other devices.
  • [ ] Manual Governance
  • Delegate promotion/prune to /mem-promote; delegate expired logs and conflict copies to /mem-clean. Do not delete or rewrite history from mem-auto.
  • [ ] Closure
  • When the task is achieved and verified, delete that task's handoff file from .memories/handoffs/. Active handoff state is transient — completion removes it; any durable insight should already be captured as a [Candidate] note.

Related skills

FAQ

How are handoffs stored?

As one file per active task under .memories/handoffs/ named YYYY-MM-DD__slug.md, updated in place and deleted on completion.

What is a Candidate?

A verified durable insight that generalizes beyond the current task, logged with a daily time stamp to the day's log.

This week in AI coding

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

unsubscribe anytime.