mememlisted
Install: claude install-skill TT-Wang/memem
Show memem's current state. Follow these steps in order.
**Step 1 — Detect user type.**
Run these commands:
```bash
[ -f ~/.memem/last-error.md ] && echo "HAS_ERROR" || echo "NO_ERROR"
[ -f ~/.memem/.welcome-shown ] && echo "WELCOME_SHOWN" || echo "WELCOME_NEW"
[ -f ~/.memem/.migrated_from_cortex ] && echo "LEGACY" || echo "NO_LEGACY"
find ~/obsidian-brain/memem/memories -maxdepth 1 -name "*.md" -type f 2>/dev/null | wc -l | tr -d ' '
```
Read the four outputs. The user is **brand new** only if ALL of these are true:
- `NO_ERROR`
- `WELCOME_NEW`
- `NO_LEGACY`
- Memory count is `0`
Otherwise the user is **returning** (even with 0 memories — if they migrated from cortex or dismissed the welcome, they're not brand new).
**Step 2 — If there is a bootstrap error, show it first** regardless of user type.
Run `cat ~/.memem/last-error.md` and display the output under a heading like `### ⚠️ memem bootstrap failed`. Then continue to the appropriate branch.
---
## Branch A — Brand new user
Show the full welcome:
**A1. Print the banner:**
```
███╗ ███╗███████╗███╗ ███╗███████╗███╗ ███╗
████╗ ████║██╔════╝████╗ ████║██╔════╝████╗ ████║
██╔████╔██║█████╗ ██╔████╔██║█████╗ ██╔████╔██║
██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║
██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
persistent memory for Claude Code
```
**A2. Write the one-sentence pitch:**
> memem gives Claude Code persistent memory across se