Ships in session-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping the user create a knowledge card for the team's collective memory.
Parse arguments: Extract title from the first argument. Optional flags:
--type TYPE: decision | constraint | gotcha | runbook | onboarding (default: gotcha)--importance N: 0-3 (default: 2)--visibility V: team | private (default: team)Gather context: Look at the current session's recent work:
Draft the card: Create a markdown file with YAML frontmatter:
---
id: mem_YYYYMMDD_XXXXXX
title: <user's title>
type: <type>
files: [<relevant files>]
tags: [<inferred tags>]
importance: <importance>
status: active
visibility: <visibility>
confidence: med
created: <today>
author: <user@host>
refs: []
---
## TL;DR
<1-2 sentence summary of the knowledge>
## Details
<Detailed explanation with context>
## Evidence
- <today> session-<id>: Created manually
Secret scanning: Before writing the file, check the content for secrets:
Save: Write to .claude/memory/cards/mem_YYYYMMDD_XXXXXX.md
--visibility private, mention it won't be shared via git| Type | When to use | Example |
|---|---|---|
decision | Recording why a technical choice was made | "Chose PostgreSQL over MongoDB for ACID compliance" |
constraint | Documenting immutable limitations | "API rate limit is 100 requests/min" |
gotcha | Warning about non-obvious pitfalls | "req.user can be null before auth middleware" |
runbook | Step-by-step operational procedures | "Database migration: run X, then Y, then Z" |
onboarding | New team member guides | "Dev environment setup: install A, configure B" |
.claude/memory/cards/created fieldmem_YYYYMMDD_ + 6 random hex charsWhat SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/onboardRole-based onboarding card injection for new team members/pruneClean up old events and manage card lifecycle/searchSearch cards and events by keyword or structured query/statusSession Memory StatusShow session memory status - cards, events, storage, and next injection preview/timelineSession TimelineShow session timeline - chronological history of past sessions with summaries/viewerGenerate a static HTML viewer for cards and session timelinenpx claudepluginhub teamspwk/claude-session-memory --plugin session-memoryOther plugins' skills for the same job