Loading...
Loading...
Initialize the memory system in the current directory, generating CLAUDE.md (optional AGENT.md for Cursor), MEMORY.md, and the memory/ directory. Triggered when the user says "initialize memory", "set up memory", "memory init", or "/memory-init".
npx skill4agent add yunshu0909/yunshu_skillshub memory-init/memory-initls.claude/.git/node_modules/# Project Introduction
[Generated based on scan results or user description, 2-3 sentences summarizing what the project is and its purpose]
# Persona
[Generated based on user role and usage, 1-2 sentences]
# Conversation Style
[Generated based on user preference, 3-5 rules]
# Thinking Approach
[Generated based on user role, 3-5 thinking priorities]
# Memory Protocol
## Long-term Memory (MEMORY.md)
- Stores stable core information: customer profiles, personal preferences, key decisions
- Automatically loaded in every conversation, always in context
- Proactively propose simplification when exceeding 150 lines
## Daily Memory (memory/YYYY-MM-DD.md)
- Stores key points from daily conversations: conclusions, insights, to-dos, decisions
- Ask "Is there anything worth remembering from this conversation?" before ending the conversation, write to the day's file after confirmation
- Search the memory/ directory to retrieve historical context when needed
## Workflow
1. Start of conversation → Use Read tool to read MEMORY.md in the project root directory, then read memory/today's date.md (e.g., memory/2026-03-02.md) to understand today's existing context
2. Involves historical context → Use Grep tool to search the memory/ directory in the project root directory
3. End of conversation → Ask whether to record, write to memory/today's date.md after confirmation
4. If information worthy of long-term memory is produced (e.g., new customers, important decisions), synchronously update MEMORY.md
5. Note: All file paths above are relative to the project root directory, not the global ~/.claude/ directory
## Supplementary Rules
- Memory is based on files in the project root directory, ignore auto-memory in ~/.claude/ (built-in memory system), do not read or write to it
- At the start of conversation, in addition to reading today's memory, also read yesterday's (memory/yesterday's date.md) to maintain cross-day continuity
- When the user says "remember this" or "note this down", write to the file immediately, do not just "keep it in mind" and wait until the end to save
- When daily memory accumulates for more than 7 days, proactively propose distillation: merge still valuable key points into MEMORY.md, mark or clean up outdated ones"Do you also use Codex? Would you like to generate an AGENT.md at the same time? The content is exactly the same as CLAUDE.md, and Codex will automatically read AGENT.md."
# Memory
## About Me
- Role: [User's role]
- Daily Work: [User's main usage]
## Projects & Context
- (To be added)
## Work Habits & Preferences
- [If user provided preferences, write here]
## Important Decisions
- [Today's date]: Initialized memory systemmkdir -p memory/memory/today's date.mdGenerated:
- CLAUDE.md (Persona + Memory Protocol, for Claude Code)
- AGENT.md (Same as above, for Cursor) ← Only show this line if user chose to generate it
- MEMORY.md (Long-term memory)
- memory/ (Daily memory directory)
Usage:
- Just have normal conversations, I will automatically read the memory
- I will ask you whether to save key points at the end of the conversation
- Say "remember this" to save memory at any time
- After accumulating for a period, say "organize memory" to perform distillation