You are running with MemStack™ enabled. Skills use the official Anthropic SKILL.md format: each skill lives in skills/{name}/SKILL.md with YAML frontmatter (name + description). Hooks in .claude/hooks/ fire deterministically on CC lifecycle events. Rules in .claude/rules/ are always loaded at session start.
Current skill count: 131 total (87 free + 44 Pro-exclusive). Verify it live with memstack-skill-loader/scripts/check_skill_drift.py rather than trusting this line.
v3.5.4 changes: Documentation alignment pass: corrected skill counts to 128 total (85 free + 43 Pro-exclusive) as of that release, added the free git-guard skill, rewrote ADDING-SKILLS.md as the canonical skill-change checklist (16 count locations, 3-channel update path), and added automated skill-count drift enforcement. TokenStack™ is now the sole context-compression proxy. New skills still default to Pro-exclusive, graduating to free after 90 days.
- All new work happens on the
devbranch. Never commit directly tomaster. - Merge to
masteronly after Reviewer confirms working. - Merge commit format:
merge: [description] dev->master - Setup:
git checkout -b dev && git push -u origin dev - Merge:
git checkout master && git merge dev && git push && git checkout dev
See .claude/rules/memstack.md for the full rule set. Summary:
- Read the project's
CLAUDE.mdfirst if one exists - Commit format:
[ProjectName] descriptionortype(scope): description, with no Co-Authored-By trailer - Always build before push (enforced by hook)
- Document decisions in CLAUDE.md
- Skill chain: Work → Seal (hook) → Diary → Monitor (hook)
MemStack™ v3.2.1 uses three layers:
Hooks always fire: deterministic. Rules always load: persistent behavioral layer. Skills fire when CC detects matching triggers.
Hooks are wired in .claude/settings.json:
| Hook Script | CC Event | Behavior |
|---|---|---|
pre-push.sh |
PreToolUse (git push) |
Build check, secrets scan, commit format: blocks push on failure |
post-commit.sh |
PostToolUse (git commit) |
Debug artifact scan, secrets check: warns after commit |
session-start.sh |
SessionStart |
TokenStack™ auto-start + CLAUDE.md auto-index + reports "working" to API |
session-end.sh |
Stop |
Reports "completed" status to monitoring API |
Rules in .claude/rules/ are loaded automatically every session:
| Rule File | Skill Enhanced | Behavior |
|---|---|---|
memstack.md |
Global | Commit format (standard + conventional), build safety, no secrets, deprecated skill guard |
echo.md |
Echo (Lv.5) | Always-on memory recall protocol, vector search first, SQLite fallback |
diary.md |
Diary (Lv.5) | Always-on session logging awareness: log with structured handoff |
work.md |
Work (Lv.5) | Always-on task planning protocol, activate on plan/todo/task |
tokenstack.md |
TokenStack™ | Compression proxy awareness: troubleshooting, stats check |
| Command | File | Behavior |
|---|---|---|
/memstack-search <query> |
.claude/commands/memstack-search.md |
Quick memory search, runs memstack-db.py search |
/memstack-headroom |
.claude/commands/memstack-headroom.md |
TokenStack™ proxy status and token savings |
| Code | Meaning |
|---|---|
0 |
Success: continue |
1 |
Error (logged, continues) |
2 |
Block the operation |
- Keyword: fires when specific phrases appear in prompt
- Passive: always-on background behavior (now hooks in v3.0)
- Contextual: fires when conditions are detected (file size, session state)
When multiple skills could activate on the same prompt, use these ownership rules:
- "commit" →post-commit hook fires automatically
- "push" / "ship it" / "deploy" →pre-push hook blocks if checks fail
- "build" →Neither, just run the build command directly
- "recall" / "remember" →Echo only (not Diary or Project)
- "save diary" / "log session" →Diary only (not Project)
- "save project" / "handoff" →Project only (not Diary)
- "todo" / "plan" →Work only
- "/memstack-search" →Slash command (quick search, no full Echo activation)
- "where was I" / "update state" →State only (not Echo or Project)
- "verify" / "check this work" →Verify only (not Seal hook)
- "humanize" / "rewrite" →Humanize only
- "tier" / "scope" / "what's allowed" →Governor only
- Database (primary):
db/memstack.db: SQLite with WAL mode - DB Helper:
python db/memstack-db.py <command>: repository pattern CLI - Commands:
init,add-session,add-insight,search,get-sessions,get-insights,get-context,set-context,add-plan-task,get-plan,update-task,export-md,stats
- Skills:
C:\Projects\memstack\skills\{name}\SKILL.md| Deprecated:skills\_deprecated\| Hooks:.claude/hooks/| Rules:.claude/rules/| Commands:.claude/commands/| DB:C:\Projects\memstack\db\| Config:config.json
Architecture inspired by Developer Kaki's MemoryCore (github.com/Kiyoraka/Project-AI-MemoryCore)
