← 返回 Skills 市场
786793119

情感记忆助手

作者 786793119 · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
161
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install emotion-memory-assistant
功能描述
自动追踪用户情绪变化,在合适的时机关心用户。检测对话情绪、记忆历史、主动关心、周报生成。
使用说明 (SKILL.md)

情感记忆助手 (Emotion Memory Assistant)

自动追踪用户情绪变化,在合适的时机关心用户。

功能

  • detect_emotion - 检测对话中的情绪关键词
  • recall_emotion_history - 查询历史情绪记录
  • send_care_message - 发送关心消息给用户
  • generate_weekly_report - 生成每周情绪报告

情绪关键词库

正向情绪: 开心、高兴、愉快、兴奋、满意、舒服、快乐、幸福

负向情绪: 难过、伤心、焦虑、担心、害怕、沮丧、低落、郁闷、烦、生气、失望

中性状态: 忙、累、困、无聊

主动关心机制

当检测到用户负面情绪,且距离上次关心超过30分钟,自动发送关心消息。

使用示例

from emotion_memory import detect_emotion, recall_emotion_history, generate_weekly_report

# 检测情绪
result = detect_emotion("今天基金亏了,心情不好...")
print(result)

# 查询历史
history = recall_emotion_history(days=7)

# 生成周报
report = generate_weekly_report()

数据存储

  • 历史记录: ~/.memory/emotions/history.json

By Miya - 2026

安全使用建议
This skill appears coherent and runs locally. Before installing, consider: (1) it stores message snippets and timestamps in ~/.memory/emotions/history.json — that can contain sensitive/PII; inspect or remove that folder if you don't want local records; (2) set filesystem permissions or encrypt the file if privacy is important; (3) the skill does not transmit data externally or require credentials, but review the code if you want to confirm behavior; (4) if you prefer no automatic care messages, call detect_emotion without acting on returned care_message or modify the code to disable auto-care logic. Note: small logic issues (e.g., keyword duplication) affect detection accuracy but are not security issues.
功能分析
Type: OpenClaw Skill Name: emotion-memory-assistant Version: 1.0.0 The skill is a straightforward emotion tracking assistant that stores user sentiment history locally in the user's home directory (~/.memory/emotions/). The implementation in emotion_memory.py uses basic keyword matching to detect moods and provides supportive response templates without any network activity, external dependencies, or suspicious execution logic.
能力评估
Purpose & Capability
Name/description (emotion tracking, care messages, weekly reports) align with the included Python implementation and SKILL.md. Required binary (python3) is appropriate and no unrelated resources or credentials are requested.
Instruction Scope
SKILL.md examples and runtime instructions are limited to detecting emotion, recalling history, sending care messages, and generating reports. The code only reads/writes the declared local storage path and does not instruct reading unrelated files or environment variables.
Install Mechanism
No install specification; the skill is instruction-only plus a Python file. Nothing is downloaded or installed by the skill itself.
Credentials
No environment variables or external credentials are required. The only persistent artifact is a local JSON file under the user's home directory (~/.memory/emotions/history.json), which is proportional to the stated purpose.
Persistence & Privilege
always is false and the skill does not modify other skills or global agent settings. It persists only its own history file in the user's home directory, which is expected for this functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install emotion-memory-assistant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /emotion-memory-assistant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Emotion Memory Assistant 1.0.0 初始发布 - 自动检测记录用户对话中的情绪(正向/负向/中性) - 主动在适当时间发送关心消息(如负向情绪且30分钟未关心) - 支持查询历史情绪记录 - 一键生成每周情绪变化报告 - 所有历史情绪数据本地存储
元数据
Slug emotion-memory-assistant
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

情感记忆助手 是什么?

自动追踪用户情绪变化,在合适的时机关心用户。检测对话情绪、记忆历史、主动关心、周报生成。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 161 次。

如何安装 情感记忆助手?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install emotion-memory-assistant」即可一键安装,无需额外配置。

情感记忆助手 是免费的吗?

是的,情感记忆助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

情感记忆助手 支持哪些平台?

情感记忆助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 情感记忆助手?

由 786793119(@786793119)开发并维护,当前版本 v1.0.0。

💬 留言讨论