How this skill is triggered — by the user, by Claude, or both
Slash command
/session-memory:cardThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are helping the user create a knowledge card for the team's collective memory.
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 charsnpx claudepluginhub teamspwk/claude-session-memory --plugin session-memoryReflect on completed tasks and save atomic insights to a Zettelkasten memory system. Invoke after code changes, debugging, or non-trivial problem solving.
Captures user thoughts, ideas, knowledge, questions, or sources as TwinMind cards with type classification, duplicate detection, creation, auto-linking, and index updates. Use for memorable knowledge shares.