agentleFS
Vimalk0703Vimalk0703/shipworthy/skills/operations/session-memory/SKILL.md

session-memory

Skill6 starsChanged 8 months agoMITView on GitHub

Formalizes the .shipworthy/ directory as the cross-session memory system. Ensures specs, decisions, plans, and session summaries persist across Claude Code sessions for continuity. Surfaces in-progress work at session start.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep it under 20 lines. This is a breadcrumb trail, not a novel.

    line 65
  2. Very specific:

    In-progress plans: If .shipworthy/plans/ contains plans, check if they were completed.

    line 71
  3. Very specific:

    Recent session summaries: If .shipworthy/sessions/ has a recent file (last 7 days), surface the "What's In Progress" and "Next Steps" …

    line 74
  4. Very specific:

    Feature specs without plans: If .shipworthy/specs/ has specs that don't have corresponding plans in .shipworthy/plans/, those features were …

    line 77
  5. Distinctive:

    When a significant architectural decision is made (database choice, authentication method, state management approach, API design pattern), …

    line 82
  6. Distinctive:

    Only create ADRs for decisions that would be non-obvious to a future developer.

    line 102
  7. Very specific:

    When to read it: After context compaction, when you've lost track of what the project knows.

    line 108
  8. Very specific:

    After /retro applies changes (via retrospective skill)

    line 112
  9. Very specific:

    After any skill writes to .shipworthy/ (the writing skill should regenerate it)

    line 113
  10. Very specific:

    When writing a session summary, check the session count in .shipworthy/sessions/.

    line 119
  11. Distinctive:

    Keep the 10 most recent

    line 121
  12. Distinctive:

    Delete older session files

    line 122

“Common” is measured: kept by at least 6 in 10 of the 7 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

Purpose

Claude Code sessions are stateless — each new session starts fresh. But projects are not stateless. Work in progress, architectural decisions, feature specs, and implementation plans need to survive between sessions. This skill formalizes .shipworthy/ as the persistent memory layer.

Memory Structure

.shipworthy/
├── INDEX.md                 # Auto-generated index of all project memory (refreshed each session + after /retro)
├── architecture.md          # Project architecture spec (managed by architecture-awareness skill)
├── tech-debt.md             # Tech debt tracker (managed by tech-debt-tracking skill)
├── config.json              # Per-project configuration and overrides
├── specs/                   # Feature specifications (managed by intent-to-spec skill)
│   ├── user-auth.md
│   ├── invoice-system.md
│   └── ...
├── plans/                   # Implementation plans (managed by writing-plans skill)
│   ├── user-auth.md
│   └── ...
├── decisions/               # Architecture Decision Records (ADRs)
│   ├── 001-database-choice.md
│   └── ...
├── learnings/               # What this project has taught us (managed by retrospective skill)
│   ├── database-preferences.md
│   ├── api-patterns.md
│   └── ...
└── sessions/                # Session summaries for continuity
    ├── 2026-03-29.md
    └── ...

Session Summary

At the END of each session (when the user says goodbye, closes the conversation, or you detect natural completion), write a brief session summary:

Format: .shipworthy/sessions/[YYYY-MM-DD].md

# Session Summary — [YYYY-MM-DD]

## What Was Done
- [Completed task 1]
- [Completed task 2]

## What's In Progress
- [Task that was started but not finished]
- [Relevant context for picking it up]

## Decisions Made
- [Any architectural or design decisions — link to ADR if created]

## Next Steps
- [What should happen next]
- [Any blockers or open questions]

Keep it under 20 lines. This is a breadcrumb trail, not a novel.

Surfacing Previous Work

The session-start hook already loads architecture.md and tech-debt.md. This skill adds awareness of:

  1. In-progress plans: If .shipworthy/plans/ contains plans, check if they were completed. An in-progress plan has tasks without all being marked done.
    • Surface: "You have an in-progress plan for [feature]. Resume or start fresh?"
  2. Recent session summaries: If .shipworthy/sessions/ has a recent file (last 7 days), surface the "What's In Progress" and "Next Steps" sections.
    • Surface: "Last session (2026-03-28): [in-progress item]. Want to continue?"
  3. Feature specs without plans: If .shipworthy/specs/ has specs that don't have corresponding plans in .shipworthy/plans/, those features were specified but not yet planned.
    • Surface: "You have a spec for [feature] but no implementation plan yet. Want to plan it?"

Architecture Decision Records (ADRs)

When a significant architectural decision is made (database choice, authentication method, state management approach, API design pattern), save an ADR:

Format: .shipworthy/decisions/[NNN]-[short-title].md

# ADR [NNN]: [Decision Title]

## Status
[Proposed | Accepted | Deprecated | Superseded by ADR-NNN]

## Context
[What prompted this decision]

## Decision
[What was decided]

## Consequences
[What changes as a result — both positive and negative]

Only create ADRs for decisions that would be non-obvious to a future developer. "We use React" is not an ADR. "We use server components for data fetching instead of client-side useEffect" IS an ADR.

INDEX.md — Project Memory Index

.shipworthy/INDEX.md is auto-generated at every session start and after every /retro. It provides a one-line summary of every file in .shipworthy/ so Claude can quickly discover available project memory without scanning directories.

When to read it: After context compaction, when you've lost track of what the project knows. Read .shipworthy/INDEX.md to see all specs, plans, learnings, decisions, and session history at a glance.

When it's regenerated:

  • Automatically at session start (via session-start hook)
  • After /retro applies changes (via retrospective skill)
  • After any skill writes to .shipworthy/ (the writing skill should regenerate it)

Do NOT edit INDEX.md manually — it will be overwritten at next session start.

Session Pruning

When writing a session summary, check the session count in .shipworthy/sessions/. If there are more than 10 session files:

  1. Sort by filename (date-based names sort chronologically)
  2. Keep the 10 most recent
  3. Delete older session files
  4. This prevents unbounded growth while preserving recent context

Sessions older than 10 sessions ago are unlikely to contain actionable context. If important patterns were discovered in old sessions, they should already be captured in .shipworthy/learnings/ via retrospectives.

Rules

  1. Always commit .shipworthy/ — remind the user to commit this directory. It IS the project's engineering memory.
  2. Don't overwrite — append to session summaries if multiple sessions happen on the same day. Don't overwrite specs or plans without user consent.
  3. Keep it lightweight — every file in .shipworthy/ should be under 100 lines. If it's longer, you're over-documenting.
  4. Plain Markdown only — no special tooling required to read these files. Any developer (or AI) can understand them.
  5. Always use absolute dates — write 2026-04-01, never "today", "yesterday", or "last week". Relative dates become meaningless when read in future sessions.
  6. Prune sessions on write — when saving a new session summary, delete session files beyond the 10 most recent. Old sessions that produced valuable learnings should have already been captured via /retro.

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.