skills/claude-memory/SKILL.md
Use when leveraging Claude Code's auto-memory system — understanding what Claude saves to memory, writing good memory entries manually, structuring the memory directory, and using memory for project continuity across sessions.
npx skillsauth add kienbui1995/magic-powers claude-memoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Claude Code has a built-in memory system that persists context across sessions. Without it, every session starts cold — Claude has no knowledge of past decisions, your preferences, or what was built last week. With a well-managed memory directory, Claude picks up exactly where you left off: knowing your role, your stack, your conventions, and the current state of the project.
Claude Code has an auto-memory system in ~/.claude/projects/[project-hash]/memory/:
~/.claude/
CLAUDE.md ← global instructions (always loaded)
projects/
[project-hash]/
memory/
MEMORY.md ← index of all memory files (always loaded)
user_profile.md ← who the user is, preferences
project_context.md ← what the project is about
feedback_*.md ← corrections and learned preferences
reference_*.md ← external resources and links
Claude loads MEMORY.md on every session start and follows pointers to load relevant memory files. Keep the index concise — it is always loaded in full.
| Type | What to store | When auto-saved |
|------|-------------|-----------------|
| user | Role, skills, preferences, communication style | When user shares personal context |
| project | Goals, decisions, current work, deadlines | When project state changes |
| feedback | Corrections, do/don't preferences | When user corrects Claude |
| reference | External URLs, tool locations, docs | When user mentions external resources |
---
name: user-coding-style
description: User's coding preferences and style requirements
type: user
---
User: Kien, Vietnamese communication preferred
Role: Solo AI builder, primarily Python + TypeScript
Experience: Senior, minimal explanation needed
Style: Direct, concise, no over-engineering
Key preference: Always use uv for Python package management, never pip
Test preference: pytest with fixtures, no mocking external services
Good memory entries are specific, actionable, and focused on preferences that change Claude's behavior. Avoid storing code snippets or file contents — those change and go stale.
Keep the index concise — it is loaded every session and truncated if too long:
# Memory Index
- [User profile](user_profile.md) — Kien, solo AI builder, Python/TS
- [Project: magic-powers](project_magic_powers.md) — Claude Code plugin, v1.9.0
- [Preferences](feedback_coding.md) — uv not pip, direct comms, no over-engineering
Rule: Keep MEMORY.md under 200 lines or later lines get cut off at load time.
At the end of significant sessions, update memory explicitly:
# project_context.md update (after a major session)
## Current State (updated 2026-04-08)
- Completed: MCP setup for postgres, github integrations
- In progress: Hook system for auto-testing on edit
- Blocked: Waiting for staging DB credentials from ops
- Next session: Wire up Stop hook to enforce pytest passing
This replaces the need to re-explain project state at the start of every session.
~/.claude/projects/[hash]/memory/claude-md-authoring (CLAUDE.md = instructions; memory = accumulated context — they complement each other)claude-project-settings (memory location is configured alongside other project settings)@technical-writer can help draft well-structured memory entries for complex projectscontent-media
Use when designing for XR (AR/VR/MR), choosing interaction modes, or adapting 2D UI patterns for spatial computing
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
development
Use when executing a structured workflow — select and run a feature, bugfix, refactor, research, or incident template with correct agent and model assignments per phase.