← Back to Skills Marketplace
786793119

情感记忆助手

by 786793119 · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ Security Clean
161
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install emotion-memory-assistant
Description
自动追踪用户情绪变化,在合适的时机关心用户。检测对话情绪、记忆历史、主动关心、周报生成。
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install emotion-memory-assistant
  3. After installation, invoke the skill by name or use /emotion-memory-assistant
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Emotion Memory Assistant 1.0.0 初始发布 - 自动检测记录用户对话中的情绪(正向/负向/中性) - 主动在适当时间发送关心消息(如负向情绪且30分钟未关心) - 支持查询历史情绪记录 - 一键生成每周情绪变化报告 - 所有历史情绪数据本地存储
Metadata
Slug emotion-memory-assistant
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 情感记忆助手?

自动追踪用户情绪变化,在合适的时机关心用户。检测对话情绪、记忆历史、主动关心、周报生成。 It is an AI Agent Skill for Claude Code / OpenClaw, with 161 downloads so far.

How do I install 情感记忆助手?

Run "/install emotion-memory-assistant" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 情感记忆助手 free?

Yes, 情感记忆助手 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 情感记忆助手 support?

情感记忆助手 is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created 情感记忆助手?

It is built and maintained by 786793119 (@786793119); the current version is v1.0.0.

💬 Comments