Agent skill

memory

Persistent memory for cross-session personalization. Trigger when user shares identity, preferences, relationships, or facts worth remembering.

Stars 65
Forks 25

Install this agent skill to your Project

npx add-skill https://github.com/JinFanZheng/kode-sdk-csharp/tree/main/examples/Kode.Agent.WebApiAssistant/skills/memory

SKILL.md

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:

  1. Immediately call fs_write - don't acknowledge first, don't batch
  2. Extract structured fields from casual speech
  3. 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

json
{"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/"

Expand your agent's capabilities with these related and highly-rated skills.

JinFanZheng/kode-sdk-csharp

email

Email operations via IMAP/SMTP. Trigger for inbox checking, reading, drafting, or sending emails. Requires `.config/email.json` setup.

65 25
Explore
JinFanZheng/kode-sdk-csharp

food

餐饮推荐/吃什么/哪里吃/咖啡酒吧甜品夜宵。用于用户问“附近有什么好吃的/餐厅推荐/人均多少/营业到几点/要不要预约/适合亲子或请客”等。 默认做“查询时间快照”(当地时间)并给来源链接;不编造店名/地址/营业时间/人均/评分;信息不足先问2-3个关键问题。

65 25
Explore
JinFanZheng/kode-sdk-csharp

itinerary

行程安排/行程规划(国内为主)。当用户要你“做行程/排几天怎么玩/把交通酒店景点串起来/做出差安排/把计划写进日历”时使用。 产出可执行的日程(含时间块),并在引用外部事实时附来源链接与来源当地时间;绝不编造。

65 25
Explore
JinFanZheng/kode-sdk-csharp

data-files

File router that routes uploaded files to appropriate analysis skills. CSV/Excel/JSON → data-analysis, Images → data-viz, PDF/HTML → data-base.

65 25
Explore
JinFanZheng/kode-sdk-csharp

featbit

FeatBit official documentation real-time Q&A assistant. Activate when user mentions "FeatBit", "feature flag", "feature toggle", or asks about FeatBit SDK integration, deployment, or configuration. Capabilities: Real-time fetching from docs.featbit.co and GitHub, supporting SDK integration, Docker/K8s deployment, feature flag configuration, A/B testing, and more.

65 25
Explore
JinFanZheng/kode-sdk-csharp

news

News briefing + verification workflow. Use when the user asks for news, headlines, daily briefing, “today's news”, “latest updates”, breaking news, or requests specific current numbers/events that require reliable sources and timestamps. Requires source links + local published time; NEVER fabricate.

65 25
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results