agentleFS
lukasreeselukasreese/claude-skills-starter-kit/skills/session-memory/SKILL.md

session-memory

Skill3 starsChanged 9 months agoMITView on GitHub

A running record of every work session so that new conversations can pick up where previous ones left off. This solves the core problem of context loss between sessions — no more re-explaining what you were working on yesterday. Think of it this way: Both are essential. The learning log prevents repeated mistakes. Session memory prevents repeated conversations. Create a folder in your workspace: Update the storage path below to match your setup. Session memory files are created automatically during…

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a folder in your workspace:

    line 22
  2. Distinctive:

    Update the storage path below to match your setup.

    line 28
  3. Very specific:

    If there are multiple sessions on the same day, append a counter: 2026-03-15-project-alpha.md, 2026-03-15-marketing-plan.md

    line 42
  4. Distinctive:

    Read the 2-3 most recent memory files from your session-memory folder.

    line 80
  5. Distinctive:

    After each significant piece of work, capture it in a running memory draft.

    line 84
  6. Distinctive:

    Don't log every small tool call or file read.

    line 91
  7. Distinctive:

    When the user signals they're done ("wrap up", "save memory", "that's it", "end session"), or when the conversation is winding down:

    line 95
  8. Distinctive:

    Write the full session memory file

    line 97
  9. Distinctive:

    If the user asks "what did we work on last time" or "catch me up", read the recent memory files and provide a concise briefing — highlights …

    line 103
  10. Distinctive:

    Use short bullet points, not paragraphs

    line 111
  11. Distinctive:

    After 30+ files accumulate, older sessions lose relevance.

    line 131
  12. Distinctive:

    Delete sessions older than 3 months (the learning log retains the important patterns)

    line 134
  13. Distinctive:

    Don't do this automatically — wait for the user to ask.

    line 136
  14. Very specific:

    Create your session-memory/ folder

    line 176
  15. Distinctive:

    Start your next work session normally

    line 177

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session Memory Skill

A running record of every work session so that new conversations can pick up where previous ones left off. This solves the core problem of context loss between sessions — no more re-explaining what you were working on yesterday.


How It's Different from the Learning Log

Think of it this way:

  • Learning Log = "How I like things done" (preferences, patterns, corrections). Timeless knowledge.
  • Session Memory = "What happened on March 15th" (topics, decisions, files, open threads). Chronological history.

Both are essential. The learning log prevents repeated mistakes. Session memory prevents repeated conversations.


Setup

Step 1: Create your memory folder

Create a folder in your workspace:

[YOUR WORKSPACE]/session-memory/

Update the storage path below to match your setup.

Step 2: That's it

Session memory files are created automatically during work sessions. No templates to fill in. Just start working and the system captures what matters.


Storage

Path: [YOUR WORKSPACE]/session-memory/

Each session gets one file named: YYYY-MM-DD-[brief-topic].md

If there are multiple sessions on the same day, append a counter: 2026-03-15-project-alpha.md, 2026-03-15-marketing-plan.md


File Format

# Session: [Date] — [Brief Topic]

**Date:** YYYY-MM-DD
**Duration:** ~[estimate]
**Primary focus:** [1-2 sentence summary]

## Key Decisions
- [Decision made, with brief reasoning]

## Topics Discussed
- [Topic 1]: [What was discussed, outcome]
- [Topic 2]: [What was discussed, outcome]

## Files Changed
- `path/to/file.ext` — [what changed and why]

## Open Threads
- [Thing started but not finished]
- [Question that needs follow-up]
- [Next step agreed on but not yet done]

## Context for Next Session
[2-3 sentences a future AI session needs to read to understand where things stand. Write this as if briefing a colleague picking up your work.]

When AI Should Use This Skill

At Session Start

Read the 2-3 most recent memory files from your session-memory folder. Don't announce this — just absorb the context silently. If there are open threads from the last session, briefly mention them: "Last time we left off with [X] — want to pick that up?"

During the Session

After each significant piece of work, capture it in a running memory draft. Significant = any of these:

  • A decision was made
  • A file was created or substantially changed
  • A new direction was agreed on
  • An important piece of information was shared
  • A task was completed or abandoned

Don't log every small tool call or file read. Focus on things that would matter to a future session.

At Session End

When the user signals they're done ("wrap up", "save memory", "that's it", "end session"), or when the conversation is winding down:

  1. Write the full session memory file
  2. Include everything from the running notes plus a "Context for Next Session" summary
  3. Confirm: "Session memory saved."

When Asked for Context

If the user asks "what did we work on last time" or "catch me up", read the recent memory files and provide a concise briefing — highlights and open threads, not a dump of everything.


Writing Quality

Session memory should be scannable. A future AI session will read this in seconds before starting work. Write for that reader:

  • Use short bullet points, not paragraphs
  • Include file paths so the reader knows where to look
  • Be specific about decisions ("priced at $59" not "discussed pricing")
  • Open threads are the most important section — this is what drives continuity
  • Context for Next Session is a 2-3 sentence executive summary

Connected Skills

  • Brand Identity → Session memory may reference brand decisions. Check brand identity for current standards.
  • Learning Log → Session memory captures WHAT happened. Learning log captures WHAT WAS LEARNED. If a session reveals a reusable preference or pattern, write to BOTH systems:
    • Decision about a project → session memory
    • Reusable preference discovered → learning log
    • Both in one session → write to both

Maintenance

After 30+ files accumulate, older sessions lose relevance. Options:

  • Archive old files to a subfolder
  • Consolidate a month's sessions into a single YYYY-MM-summary.md
  • Delete sessions older than 3 months (the learning log retains the important patterns)

Don't do this automatically — wait for the user to ask.


Example

# Session: 2026-03-15 — Website Redesign Planning

**Date:** 2026-03-15
**Duration:** ~60 min
**Primary focus:** Planned the homepage redesign, chose color palette, drafted hero section copy.

## Key Decisions
- Going with dark theme (navy #1E2761 base) instead of current white
- Hero headline: "From data to decisions." — tested 5 options, this won
- Mobile-first approach — design for 375px width first

## Topics Discussed
- **Color palette**: Tested 4 options. Midnight Executive palette selected (navy + ice blue + white)
- **Hero section**: Wrote 5 headline variants, narrowed to 2, picked final
- **Navigation**: Decided on sticky nav with 4 items max. No mega menu.

## Files Changed
- `design/color-palette.md` — CREATED: Full color system with usage rules
- `content/homepage-copy.md` — CREATED: Hero + 3 sections drafted

## Open Threads
- Footer design not started — do next session
- Need to source hero background image
- CTA button color undecided (accent blue vs green)

## Context for Next Session
Homepage redesign is in progress. Color palette and hero copy are done (see files above). Next steps: design the footer, source a hero image, and decide on CTA button color. The dark theme decision is final — don't revisit.

Getting Started

  1. Create your session-memory/ folder
  2. Start your next work session normally
  3. At the end, ask AI to "save session memory"
  4. Next session, AI reads it automatically and picks up where you left off

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.