session-memory
Skill42 starsChanged 6 days agoMITView on GitHub
Internal sub-skill for cross-session handoff, durable learning, and memory persistence. Invoked by session/memory workflows only. Do NOT load for: implementation, review, ad-hoc notes, or SSOT editing.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- GeekFamilyCorp/TricorderKittheir own version, first seen Nov 8, 2026
- apappascs/claude-code-sessionstheir own version, first seen Nov 1, 2026
- alexeyban/EKOStheir own version, first seen Nov 1, 2026
- InanisV/my-claude-skillstheir own version, first seen Aug 22, 2026
- Caelumca/claude-codex-skeletontheir own version, first seen Aug 18, 2026
- KogaCyber/jarvis-skillstheir own version, first seen Aug 17, 2026
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.
SentrySkillskill-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
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- oaustegard/claude-skills★ 398same name
- GeekFamilyCorp/TricorderKit★ 32same name
- alexeyban/EKOS★ 28same name
- DangQuangSE/team-development-skills★ 19same name
- lukasreese/claude-skills-starter-kit★ 3same name
- apappascs/claude-code-sessions★ 2same name
- InanisV/my-claude-skills★ 1same name
- Caelumca/claude-codex-skeleton★ 0same name
- ieteerapat/ClaudeSkills1.0★ 0same name
- KogaCyber/jarvis-skills★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- authSkill
- ciSkill
- crudSkill
- deploySkill
- harness-acceptSkill
- harness-loopSkill
- harness-plan-briefSkill
- harness-planSkill
- harness-progressSkill
- harness-releaseSkill
- harness-reviewSkill
- harness-setupSkill
- harness-syncSkill
- harness-workSkill
- maintenanceSkill
- memorySkill
- principlesSkill
- research-harness-auditSkill
- research-harness-cleanSkill
- research-harness-planSkill
- research-harness-releaseSkill
- research-harness-reviewSkill
- research-harness-setupSkill
- research-harness-workSkill
- session-controlSkill
- session-initSkill
- sessionSkill
- session-stateSkill
- uiSkill
- workflow-guideSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
If neither is available, read .session_id from .claude/state/session.json, with datetime-based ID as final fallback.
- Distinctive: line 150
Check previous session log
- Very specific: line 167
Add new patterns to patterns.md
- Very specific: line 283
If Layer 1 insights are important for the whole project → Promote to Layer 2 with /memory ssot
- Distinctive: line 284
Leave everyday learnings to Layer 1 (do not disable)
- Distinctive: line 294
Privacy: Do not record sensitive information
- Distinctive: line 296
Capacity management: When logs grow large, recommend "organize session log"
“Common” is measured: kept by at least 6 in 10 of the 12 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.
Files
Session Memory Skill
A skill for managing learnings and memory across sessions. Records and references past work, decisions, and learned patterns.
Trigger Phrases
This skill is automatically invoked by the following phrases:
- "What did we do last time?", "Continue from last time"
- "Show me the history", "Past work"
- "Tell me about this project"
- "what did we do last time?", "continue from before"
Overview
This skill saves work history to .claude/memory/ and
enables knowledge continuity across sessions.
It also clarifies "where important information should be stored" (details: docs/MEMORY_POLICY.md).
Memory Structure
.claude/
├── memory/
│ ├── session-log.md # Per-session log
│ ├── decisions.md # Important decisions
│ ├── patterns.md # Learned patterns
│ └── context.json # Project context
└── state/
└── agent-trace.jsonl # Agent Trace (tool execution history)Recommended Operation (SSOT/Local separation)
- SSOT (recommended for sharing):
decisions.md/patterns.md- Consolidates "decisions (Why)" and "reusable solutions (How)"
- Each entry has a title + tags (e.g.,
#decision #db) with an Index at the top
- Recommended as local:
session-log.md/context.json/.claude/state/- Prone to noise/bloat; generally not Git-managed (decide individually if needed)
Auto-Recorded Information
session-log.md
Each session record is assigned a session ID obtained from the runtime environment.
In Claude Code, ${CLAUDE_SESSION_ID} is preferred; in Codex, the Codex runtime session / thread ID is preferred.
If neither is available, read .session_id from .claude/state/session.json, with datetime-based ID as final fallback.
This improves cross-session traceability.
## Session: 2024-01-15 14:30 (session: abc123def)
### Tasks Completed
- [x] User authentication implementation
- [x] Login page creation
### Files Generated
- src/lib/auth.ts
- src/app/login/page.tsx
### Important Decisions
- Authentication method: Adopted Supabase Auth
### Handoff to Next Session
- Logout feature not yet implemented
- Password reset also neededNote:
${CLAUDE_SESSION_ID}is an environment variable automatically set by Claude Code. This variable may not exist on the Codex side, so do not assume it is fixed; use the Codex runtime session / thread ID or.claude/state/session.jsoninstead.
decisions.md
## Technology Selections
| Date | Decision | Reason |
|------|---------|--------|
| 2024-01-15 | Supabase Auth | Free tier available, easy setup |
| 2024-01-14 | Next.js App Router | Latest best practices |
## Architecture
- Components: `src/components/`
- Utilities: `src/lib/`
- Type definitions: `src/types/`patterns.md
## Patterns in This Project
### Component Naming
- PascalCase
- Examples: `UserProfile.tsx`, `LoginForm.tsx`
### API Endpoints
- `/api/v1/` prefix
- RESTful design
### Error Handling
- Wrap in try-catch
- Error messages in Englishcontext.json
{
"project_name": "my-blog",
"created_at": "2024-01-14",
"stack": {
"frontend": "next.js",
"backend": "next-api",
"database": "supabase",
"styling": "tailwind"
},
"current_phase": "Phase 2: Core Features",
"last_session": "2024-01-15T14:30:00Z"
}Processing Flow
At Session Start
- Load
.claude/memory/context.json - Check previous session log
- Retrieve recent edit history from Agent Trace
- Identify incomplete tasks
- Generate context summary
Agent Trace Usage:
# Get list of edited files from last session
tail -50 .claude/state/agent-trace.jsonl | jq -r '.files[].path' | sort -u
# Get project information
tail -1 .claude/state/agent-trace.jsonl | jq '.metadata'During Session
- Record important decisions to
decisions.md - Add new patterns to
patterns.md - Record file generation to
session-log.md
At Session End
- Generate session summary
- Update
context.json - Record handoff items for next session
Memory Optimization (CC 2.1.49+)
From Claude Code 2.1.49 onward, memory usage when resuming sessions has been reduced by 68%.
Recommended Workflow
# Use --resume for long work sessions
claude --resume
# Split large tasks and resume sessions
claude --resume "Continue from where we left off"| Scenario | Recommendation |
| Long implementation | Resume session every 1–2 hours |
| Large-scale refactoring | Split by feature unit |
| Memory shortage warning | Immediately resume with --resume |
Memory efficiency has greatly improved — actively leverage session resumption.
/recap — Mid-Session Status Check (CC 2.1.108+)
The /recap command added in CC 2.1.108 (alias for /rewind) is used to quickly review
what has been done so far in the current session.
Most effective when combined with checking before returning to another session with --resume, or for mid-session checks during long work.
Recommended Timing:
| Timing | Usage |
Just before resuming with --resume | Use /recap to organize context before claude --resume |
| Before resuming a Breezing Worker | Check in-session progress with /recap before moving to next task |
| Midpoint of long implementation (over 1 hour) | Check status with /recap → manually append to session-log.md if needed |
# Typical usage flow
# 1. Check current work status
/recap
# 2. After manually appending to session-log.md if needed, resume session
claude --resume
/recaponly reviews within the current session. Previous session content is checked viasession-log.mdor context inheritance withclaude --resume.
Usage Examples
Continue from Last Time
User: "Continue from last time"
Claude Code:
📋 Previous Session (2024-01-15)
Completed tasks:
- User authentication
- Login page
Incomplete:
- Logout feature
- Password reset
Say "Create the logout feature" to continue implementation.Check Project Status
User: "Tell me about this project"
Claude Code:
📁 Project: my-blog
Technology stack:
- Next.js + Tailwind CSS + Supabase
Current phase: Core feature development
Progress: 40% complete
Recent decisions:
- Adopted Supabase Auth
- Using App RouterRelationship with Claude Code Auto-Memory (D22)
Claude Code 2.1.32+ has an "auto-memory" feature that automatically saves cross-session learnings to ~/.claude/projects/<project>/memory/MEMORY.md.
It coexists with the Harness memory system as a 3-layer architecture:
| Layer | System | Content | Management |
| Layer 1 | Claude Code auto-memory | General learnings (avoiding mistakes, tool usage) | Implicit/automatic |
| Layer 2 | Harness SSOT | Project-specific decisions and patterns | Explicit/manual |
| Layer 3 | Agent Memory | Per-agent task learnings | Agent-defined |
Usage guidelines:
- If Layer 1 insights are important for the whole project → Promote to Layer 2 with
/memory ssot - Leave everyday learnings to Layer 1 (do not disable)
- Note parallel write contention when using Agent Teams
Details: D22: 3-Layer Memory Architecture
Notes
- Auto-save: Recommend appending a session summary to
session-log.mdautomatically viahooks/Stopat session end (manual operation is fine if not set up) - Privacy: Do not record sensitive information
- Git policy:
decisions.md/patterns.mdrecommended for sharing;session-log.md/context.json/.claude/state/recommended as local-only (details:docs/MEMORY_POLICY.md) - Capacity management: When logs grow large, recommend "organize session log"
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
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.

