People memories skill
Purpose
Keep a short-lived, searchable memory vault about people you talk to so your assistant can recall follow-ups instantly. The skill handles:
- -
remember cues (voice or text) to persist comments, preferences, and context. - Summaries + exports so you can package a person’s “fact card.”
- Search, recall, and list commands for quick lookups.
- Optional auto-trigger from voice transcripts (when you say “remember …”).
Structure & storage
~/.clawdbot/people-memory.json now stores:
{
"people": {
"alex": {
"displayName": "Alex",
"notes": [
{
"timestamp": "2026-01-29T12:05:00Z",
"note": "Likes cats and doing late-night music practice",
"source": "voice",
"tags": ["pets", "music"]
}
]
}
},
"index": {
"music": ["alex"],
"cats": ["alex"]
}
}
- - Names are normalized (lowercase keys) but store the display name.
- Each note captures
timestamp, note, source, and tags. - An
index map keeps keywords → people for super-fast lookups.
CLI commands
Use the bundled script to manage the database:
skills/people-memories/scripts/people_memory.py <command> [options]
- -
remember --person Alex --note "loves chai" --tags drinks,preferences – adds a note. - INLINECODE8 – reads the latest notes.
- INLINECODE9 – prints fact card with counts, tags, last updates.
- INLINECODE10 – finds people whose notes mention “coffee”.
- INLINECODE11 – dumps the notes as Markdown (or JSON).
- INLINECODE12 – enumerates everyone stored plus note counts.
Auto capture (voice/chat)
The
extensions/people-memories extension listens to
/voice-chat transcripts. When you say something like “remember Alex likes cats,” it automatically runs the
remember command and logs the note. The index updates in the background, and we keep confirmations quiet unless you explicitly ask for them.
Reminders & automation
Event metadata (type + date) is attached whenever a note mentions birthdays or anniversaries. A helper cron job runs
python3 skills/people-memories/scripts/people_memory.py reminders --days 0 --window 7 --format message each morning and delivers the resulting digest over Telegram so you’re nudged about the next week’s birthdays/anniversaries without manual effort. If you prefer a different cadence or channel, rerun the command yourself or update the schedule.
Enhancements in this version
- 1. Smart indexing – Tags + keyword extraction keep the lookup index updated so searches find matching people even when you reuse adjectives.
- Summaries & exports – Quickly produce a fact card or shareable Markdown/JSON of anyone’s notes.
- Voice integration + logging – transcripts feed the database so you don’t type commands manually.
- Structured data – normalized keys + timestamps plus tag metadata make it easy for other tools (cron, dashboards) to consume the memory store.
Next steps / nice-to-haves
- - Add optional confirmation responses “Noted, saved for Alex.” via the runtime
api.message helper. - Integrate with reminders/cron so tagged notes like
birthday trigger alerts. - Build a simple watch UI (web or terminal) that previews the latest people cards.
Let me know which direction to automate next (priority filters, notifications, cross-agent sync, etc.)."}
人物记忆技能
目的
维护一个关于你交谈对象的短期、可搜索的记忆库,让你的助手能够即时回忆后续信息。该技能处理:
- - 记住提示(语音或文本),用于保存评论、偏好和上下文。
- 摘要+导出,以便你可以打包某个人的事实卡片。
- 搜索、回忆和列表命令,用于快速查找。
- 可选的语音转录自动触发(当你说记住……时)。
结构与存储
~/.clawdbot/people-memory.json 现在存储:
{
people: {
alex: {
displayName: Alex,
notes: [
{
timestamp: 2026-01-29T12:05:00Z,
note: 喜欢猫和深夜音乐练习,
source: voice,
tags: [宠物, 音乐]
}
]
}
},
index: {
音乐: [alex],
猫: [alex]
}
}
- - 名称被规范化(小写键),但存储显示名称。
- 每条笔记包含时间戳、笔记、来源和标签。
- 索引映射保留关键词→人物,用于超快速查找。
CLI命令
使用捆绑脚本管理数据库:
skills/people-memories/scripts/people_memory.py [options]
- - remember --person Alex --note 喜欢印度奶茶 --tags 饮品,偏好 – 添加一条笔记。
- recall --person Alex --limit 3 – 读取最新笔记。
- summarize --person Alex – 打印包含计数、标签、最近更新的事实卡片。
- search --query 咖啡 – 查找笔记中提到咖啡的人物。
- export --person Alex --format md --out ~/Desktop/alex.md – 将笔记导出为Markdown(或JSON)格式。
- list – 列出所有存储的人物及其笔记数量。
自动捕获(语音/聊天)
extensions/people-memories 扩展监听 /voice-chat 转录。当你说类似记住Alex喜欢猫时,它会自动运行remember命令并记录笔记。索引在后台更新,除非你明确要求,否则我们保持确认信息静默。
提醒与自动化
每当笔记提到生日或纪念日时,会附加事件元数据(类型+日期)。一个辅助的cron作业每天早上运行 python3 skills/people-memories/scripts/people_memory.py reminders --days 0 --window 7 --format message,并通过Telegram发送生成的摘要,这样你无需手动操作就能收到下周生日/纪念日的提醒。如果你偏好不同的频率或渠道,可以自己重新运行该命令或更新计划。
本版本的改进
- 1. 智能索引 – 标签+关键词提取保持查找索引更新,即使你重复使用形容词,搜索也能找到匹配的人物。
- 摘要与导出 – 快速生成任何人的事实卡片或可共享的Markdown/JSON格式笔记。
- 语音集成+日志记录 – 转录内容输入数据库,无需手动输入命令。
- 结构化数据 – 规范化键+时间戳加上标签元数据,使其他工具(cron、仪表板)易于使用记忆存储。
后续步骤/锦上添花
- - 通过运行时api.message助手添加可选的确认回复已记录,已为Alex保存。
- 与提醒/cron集成,使标记为生日的笔记触发警报。
- 构建一个简单的查看界面(Web或终端),预览最新的人物卡片。
请告诉我接下来要自动化的方向(优先级筛选、通知、跨代理同步等)。