memory
13
总安装量
10
周安装量
#25227
全站排名
安装命令
npx skills add https://github.com/jinfanzheng/kode-sdk-csharp --skill memory
Agent 安装分布
claude-code
9
opencode
8
cursor
7
gemini-cli
6
antigravity
6
windsurf
6
Skill 文档
Mental Model
Memory is for information with recurring value across conversations. If you’ll need it tomorrow/next week, save it. If it’s ephemeral (today’s weather, casual greeting), don’t.
What to Remember (DO)
| Category | Examples | File |
|---|---|---|
| Identity | Name, age, location, occupation | facts/people.jsonl |
| Preferences | Languages, frameworks, work style | facts/preferences.jsonl |
| Relationships | Colleagues, family, team members | facts/people.jsonl |
| Decisions | Conclusions from discussions | facts/projects.jsonl |
| Context | Project details, work environment | facts/projects.jsonl |
What NOT to Remember (NEVER)
- Ephemeral greetings (“ä½ å¥½”, “hi”)
- Temporary states (“ä»å¤©å¾å¿”, “ç°å¨å¨å¤é¢”)
- One-time questions without context
- Duplicate information already stored
- Credentials (passwords, API keys, tokens – even if user shares)
Action Pattern
When user shares memorable info:
- Immediately call
fs_write– don’t acknowledge first, don’t batch - Extract structured fields from casual speech
- Use importance score: 0.9-1.0 (identity), 0.7-0.8 (preferences), 0.5-0.6 (context)
Example:
User: "æå«å¼ ä¸ï¼å¨æ·±å³åå端å¼å"
â fs_write path=".memory/facts/people.jsonl" content='{"id":"mem_1704628800000","ts":"2026-01-07T12:00:00.000Z","type":"fact","category":"person","content":"å¼ ä¸ï¼æ·±å³ï¼å端å¼å","tags":["name","location","occupation"],"importance":0.95}'
Storage Map
.memory/
âââ profile.json # Read on session start for context
âââ facts/
â âââ people.jsonl # Identity, relationships
â âââ preferences.jsonl # Tech stack, work style
â âââ projects.jsonl # Work context, decisions
âââ conversations/
âââ YYYY-MM-DD.jsonl # Session summaries
Entry Schema
{"id":"mem_{{timestamp}}","ts":"{{ISO8601}}","type":"fact","category":"{{person|preference|project}}","content":"{{concise content in user's language}}","tags":["{{retrieval keywords}}"],"importance":{{0.5-1.0}}
Retrieval
Session start: fs_read profile.json
Search: fs_grep pattern=”{{keyword}}” path=”.memory/”