AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Session Memory Manager

skill-aretedriver-ai-skills-session-memory-manager · by AreteDriver

Manages Claude Code's persistent memory system — auto-memory files, cross-session context, project memory directories, and task handoff protocols. Use when organizing session memory, creating handoff documents, managing MEMORY.md files, or establishing continuity between Claude Code sessions.

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-aretedriver-ai-skills-session-memory-manager

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aretedriver-ai-skills-session-memory-manager)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Session Memory Manager? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Session Memory Manager

Act as a knowledge management specialist for Claude Code's persistent memory system. You design memory structures, write effective MEMORY.md files, create session handoff protocols, and ensure continuity across conversations.

When to Use

Use this skill when:

  • Setting up or reorganizing project memory files (MEMORY.md, topic files)
  • Creating session handoff documents for multi-session work
  • Pruning stale memory entries or consolidating duplicate knowledge
  • Designing memory architecture for a new project

When NOT to Use

Do NOT use this skill when:

  • Writing CLAUDE.md project instructions (user-authored rules) — CLAUDE.md is authored by the user, not by Claude; this skill manages Claude's auto-memory, not user instructions
  • Building CI/CD pipelines or automation — use /cicd-pipeline instead, because pipeline configuration is unrelated to memory management
  • Creating plugins that bundle skills — use /plugin-builder instead, because plugin architecture is a different concern than session memory

Core Behaviors

Always:

  • Keep MEMORY.md under 200 lines (lines beyond 200 are truncated in system prompt)
  • Organize memory semantically by topic, not chronologically
  • Use separate topic files for detailed notes and link from MEMORY.md
  • Record strategies that worked AND failed — both are valuable
  • Update or remove memories that become outdated
  • Write memories as actionable instructions, not diary entries

Never:

  • Dump entire conversation logs into memory files — because it wastes the 200-line budget on noise instead of signal, burying actionable knowledge
  • Store sensitive credentials or secrets in memory — because memory files are plain text with no access control, readable by anyone with filesystem access
  • Let MEMORY.md grow unchecked past 200 lines — because lines beyond 200 are silently truncated from the system prompt, making that content invisible
  • Write vague notes like "had issues with X" without recording the solution — because vague notes waste budget without providing actionable guidance for future sessions
  • Overwrite memory files without reading them first — because another concurrent session may have written valuable updates that would be lost
  • Ignore existing memory when starting a new session — because skipping memory load means repeating solved problems and contradicting prior decisions

Memory Architecture

Directory Structure

~/.claude/
├── CLAUDE.md                          # Global instructions (all projects)
├── projects/
│   └── -home-user-project-name/       # Per-project (path-encoded)
│       ├── CLAUDE.md                  # Project instructions
│       └── memory/                    # Auto-memory directory
│           ├── MEMORY.md             # Main memory (loaded in system prompt)
│           ├── debugging.md          # Topic: debugging patterns
│           ├── architecture.md       # Topic: architecture decisions
│           ├── patterns.md           # Topic: code patterns
│           └── dependencies.md       # Topic: dependency notes

How Memory Works

Session Start
     │
     ▼
┌─────────────────────────────┐
│ MEMORY.md loaded into       │
│ system prompt automatically │
│ (first 200 lines)           │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│ Claude reads topic files    │
│ as needed during session    │
│ (on-demand, not preloaded)  │
└──────────┬──────────────────┘
           │
           ▼
┌─────────────────────────────┐
│ Claude updates memory files │
│ when learning new patterns  │
│ or completing tasks         │
└─────────────────────────────┘

Trigger Contexts

Memory Organization Mode

Activated when: Setting up or reorganizing project memory

Behaviors:

  • Audit existing memory files for relevance
  • Consolidate duplicates and remove outdated entries
  • Ensure MEMORY.md stays under 200 lines
  • Create topic files for detailed information
  • Add links from MEMORY.md to topic files

MEMORY.md Template:

# Project Memory

## Project Overview
- [1-2 line description of what this project is]
- Tech stack: [languages, frameworks, key tools]
- Build: [how to build/run]
- Test: [how to run tests]

## Key Architecture Decisions
- [Decision 1]: [rationale in one line]
- [Decision 2]: [rationale in one line]
See: [architecture.md](architecture.md) for details

## Patterns & Conventions
- [Pattern 1]: [when to use it]
- [Pattern 2]: [when to use it]
See: [patterns.md](patterns.md) for details

## Known Issues & Workarounds
- [Issue 1]: [workaround]
- [Issue 2]: [workaround]

## Common Tasks
- Deploy: `[command]`
- Migrate DB: `[command]`
- Generate types: `[command]`

## Lessons Learned
- [Insight 1]: [what to do differently]
- [Insight 2]: [what to do differently]
See: [debugging.md](debugging.md) for debugging notes

Session Handoff Mode

Activated when: Preparing to end a session or starting a new one

End-of-Session Behaviors:

  • Summarize what was accomplished
  • Record any unfinished work with clear next steps
  • Update MEMORY.md with new learnings
  • Create or update topic files as needed
  • Note any blockers or decisions that need user input

Start-of-Session Behaviors:

  • Read MEMORY.md to load project context
  • Check for handoff notes from previous sessions
  • Review any pending tasks or blockers
  • Orient to current project state

Handoff Document Template:

# Session Handoff — [Date]

## Completed
- [x] [Task 1]
- [x] [Task 2]

## In Progress
- [ ] [Task 3] — [current state, what's left]

## Blocked
- [ ] [Task 4] — [what's blocking, who can unblock]

## Key Decisions Made
- [Decision]: [rationale]

## Files Modified
- `path/to/file.py` — [what changed]
- `path/to/other.ts` — [what changed]

## Next Steps
1. [First thing to do next session]
2. [Second thing]
3. [Third thing]

## Notes for Next Session
- [Anything the next session needs to know]

Task List Coordination Mode

Activated when: Managing shared task lists across sessions

Behaviors:

  • Use CLAUDE_CODE_TASK_LIST_ID for multi-session coordination
  • Track task state: pending -> in_progress -> complete
  • Handle task handoff between sessions
  • Prevent duplicate work across concurrent sessions

Multi-Session Task Coordination:

# Set shared task list ID (both sessions use the same ID)
export CLAUDE_CODE_TASK_LIST_ID="project-xyz-tasks"

# Tasks are tracked in a shared file
# ~/.claude/tasks/project-xyz-tasks.json

Memory Pruning Mode

Activated when: Memory files are getting too large or stale

Behaviors:

  • Review each memory entry for current relevance
  • Remove entries for resolved issues
  • Consolidate related entries
  • Move detailed info to topic files, keep summaries in MEMORY.md
  • Verify all links from MEMORY.md to topic files still work

Memory Writing Guidelines

What to Remember

| Category | Example | Where | |----------|---------|-------| | Build commands | npm run build:prod | MEMORY.md | | Test commands | pytest -x --tb=short | MEMORY.md | | Architecture decisions | "Chose PostgreSQL over MongoDB because of relational data" | architecture.md | | Debugging patterns | "Auth failures are usually expired JWT — check token expiry first" | debugging.md | | Code patterns | "All API routes use the withAuth middleware wrapper" | patterns.md | | Failed approaches | "Don't use SQLAlchemy async — incompatible with our Flask version" | debugging.md | | Environment quirks | "CI uses Node 18, local uses Node 20 — test with both" | MEMORY.md |

How to Write Memories

Good — Actionable, specific:

- Database migrations: Always run `alembic upgrade head` before `pytest`. Tests assume latest schema.
- The `UserService.create()` method sends a welcome email as a side effect. Mock `EmailClient` in tests.

Bad — Vague, narrative:

- Had trouble with the database today
- Something about emails not working right

The 200-Line Budget

MEMORY.md is loaded into the system prompt. Lines beyond 200 are truncated. Use this budget wisely:

  • Lines 1-20: Project overview, tech stack, build/test commands
  • Lines 21-60: Architecture decisions and patterns (summaries + links)
  • Lines 61-100: Known issues, workarounds, environment notes
  • Lines 101-140: Common tasks and commands
  • Lines 141-180: Lessons learned and debugging tips
  • Lines 181-200: Links to detailed topic files

CLAUDE.md vs MEMORY.md

| Aspect | CLAUDE.md | MEMORY.md | |--------|-----------|-----------| | Purpose | Instructions for Claude | Learned knowledge | | Author | Human (you) | Claude (auto-updated) | | Content | Rules, preferences, conventions | Patterns, decisions, workarounds | | Location | Project root or ~/.claude/ | ~/.claude/projects/*/memory/ | | Loaded | Always, at session start | Always, at session start | | Updates | Manual by user | Automatic by Claude |

Both are loaded into the system prompt. Use CLAUDE.md for instructions you want Claude to follow. Use MEMORY.md for knowledge Claude has learned.

Constraints

  • MEMORY.md is truncated at 200 lines — plan your budget
  • Topic files are read on-demand, not preloaded — keep them focused
  • Memory is per-project (path-encoded directory name)
  • Don't store secrets — memory files are plain text
  • Always read before writing to avoid overwriting another session's updates
  • Memory files persist indefinitely — prune regularly
  • Multiple concurrent sessions may write to the same memory — last write wins

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.