emotion-log

For logging daily emotions: accepts free text, emoji, or a 1–10 rating; classifies emotions into 13 types across valence × arousal axes; can generate weekly or monthly mood and energy reports; responds with warm bilingual (Chinese/English) phrasing.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "emotion-log" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c812083b0a4bdf5f4d40f4fd252d90453c7606a8ff426a2d2d35e4d62e0b286c. Verify the upstream source and version against https://skillhub.cn/skills/user_ff429dcb/emotion-log before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For logging daily emotions: accepts free text, emoji, or a 1–10 rating; classifies emotions into 13 types across valence × arousal axes; can generate weekly or monthly mood and energy reports; responds with warm bilingual (Chinese/English) phrasing.

0 Downloads

Introduction source: third_party · user_ff429dcb · 1.0.1 Reference

SkillPi interpretation

Tasks
A zero-pressure bilingual emotion journal. Log feelings with a sentence, emoji, or 1–10 rating. The LLM classifies into 13 emotions on a valence × arousal grid, the script stores and aggregates, and a warm bilingual one-liner is returned. Monthly or weekly reports show mood and energy curves.
Audience
Translation pending; see source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: emotion-log
description: "Use when the user wants to log daily emotions, record feelings from free text, emoji, or a 1-10 rating, or generate a monthly/weekly mood and energy report. Handles emotion classification into 13 types across valence x arousal axes with bilingual (Chinese/English) warm responses."
license: MIT
compatibility: Requires Python 3.8+
metadata:
  version: "1.0.1"
  author: SkillHub Community
  openclaw:
    emoji: "📊"
    os:
      - darwin
      - linux
      - win32
    requires:
      bins:
        - python3
  hermes:
    tags:
      - journal
      - emotion
      - wellbeing
      - productivity
    category: productivity
    related_skills: []

Emotion Log / 情绪日志

A zero-pressure bilingual emotion journal. Log feelings with a sentence, emoji, or 1–10 rating. The LLM classifies into 13 emotions on a valence × arousal grid, the script stores and aggregates, and a warm bilingual one-liner is returned. Monthly or weekly reports show mood and energy curves.

零压力的中英双语私人情绪日志。用一句话 / emoji / 打分记录当下情绪,LLM 归类为 13 种情绪(valence × arousal 双维度),脚本存储聚合,返回共情双语回应。月底/ 周末生成情绪曲线与能量曲线报告。

When to Use / 触发场景

下面这些表达都会触发对应功能。不确定时,直接说出你的情绪或需求即可,工具会尽量识别;用关键词最保险。

记录情绪(随便一种方式都行)

  • 一句话分享:"今天被客户怼了,有点烦 😤" / "I'm so relieved the demo is over"
  • 只发一个 emoji:"😢"
  • 只发一个打分:"今天 3/10" 或 "7 out of 10"
  • 更口语的说法也认:"帮我记一下,刚开会特别紧张" / "记一笔,今晚终于放松了"

查看报告

  • "月报" / "本月怎么样" / "month report"
  • "周报" / "这周咋样" / "how was my week"
  • 更口语的说法也认:"我最近心情怎么样" / "能看看我这段时间的状态吗"

管理记录

  • "list my entries" / "看看我的记录" / "我都记过啥"
  • "delete entry 12" / "删掉第 12 条"

提示:如果一句话同时包含「情绪 + 要看报告」这类复合意图,优先满足最明确那一个;拿不准就直接说,工具会提示你下一步。

Capabilities & Boundaries / 能力边界

先说清楚它能做什么、做不了什么,避免误用。

能做什么

  • 记录单条情绪(一句话 / emoji / 打分)
  • 生成月报、周报(情绪曲线 + 能量曲线 + 轻建议)
  • 列出、删除、导出你自己的全部记录
  • 每次都用中英双语共情回应

明确做不了 / 不擅长

  • 不做心理诊断:它是情绪笔记本,不是咨询师,不会判断或治疗任何心理状况。状态持续很差时,建议寻求专业帮助。
  • 不处理超长或复杂多语言文本:一次只抽取「当下这一条」最明显的情绪,长段落或多国语言混写时其余内容会被忽略。
  • 报告只有月 / 周:没有"年度报告"。要回看更久远的,用 list 或 export 自行筛选(见 FAQ)。
  • 被动等待,不主动监测:它不会自动提醒你记录,也不会后台监测你的状态,需要你主动分享。
  • 一次记一种主导情绪:同一时刻有多种感受时,只存最突出的那一个,其余放进标签(见 FAQ)。
  • 只基于已存的数据:它不知道你"没说过"的事,所有曲线和建议都来自你之前记下的记录。
  • 触发靠表达:太隐晦的话可能不被识别,用上面「触发场景」里的明确说法最稳。

Core Workflow / 核心流程

Step 1: Classify Emotion / 识别情绪

Read references/emotion_taxonomy.md. Map the user's input to one of 13 emotions across two axes:

Axis Range Meaning
Valence (情绪基调) +2 to -2 How positive/negative this feels
Arousal (能量水平) +2 to -2 How energized/calm this feels

Give an intensity of 1–10. Keep the original words as --text.

Step 2: Store / 存储

Call the script (path relative to this skill's root is scripts/emotion_log.py):

python3 scripts/emotion_log.py add \
  --date YYYY-MM-DD \
  --emotion "Excited|Anxious|Irritated|... (zh or en)" \
  --intensity 1-10 \
  --text "user's original words" \
  --tags "optional,comma,separated"
  • Omit --date for today.
  • --emotion accepts both Chinese and English (e.g. "烦躁" or "Irritated").
  • Use --db <path> to override the database location, or set the EMOTION_LOG_DB environment variable. The default path is ~/.emotion-log/emotion.db.

Step 3: Reply / 回应 (Bilingual / 双语)

Produce a Chinese line then an English line. Follow the tone guide in references/emotion_taxonomy.md: name the feeling + one light companion line. Never preach, never dismiss, never force positivity.

已记录 📝 感受到你今天的「烦躁」/ Logged 📝 sensing your "Irritated" mood today
被这么怼确实来气,允许自己烦一会儿,明天会好的 ☕
Fair to be annoyed — let it sit a bit; tomorrow will be softer ☕

Step 4: Report / 报告 (Bilingual / 双语)

On "月报", "这周怎么样", or "how was my week/month", call:

python3 scripts/emotion_log.py report --period month   # 月报
python3 scripts/emotion_log.py report --period week    # 周报

The script returns a JSON with emotion_counts, emotion_emojis, emotion_en, valence_curve, arousal_curve, energy_summary, best_day, worst_day, peak_negative_weekday_cn/en, and suggestion_zh/en. Render into a bilingual overview — do not fabricate data.

Example output format:

📊 7月情绪概览 / July Mood Overview
😤 烦躁 4d Irritated · 😢 低落 2d Sad · 🤩 兴奋 3d Excited
情绪曲线 / Mood:      ▁▃▅▇▅▃▅
能量曲线 / Energy:    ▃▅▅▇▅▃▁
高能量 2d / 低能量 1d
最开心的一天 / Brightest: 7/8「项目上线,团队聚餐」
小建议 / Tip: 负面情绪集中在周三,试试周中给自己留个喘息时间

If total is 0, say "No entries yet — I'm here whenever you want to share 🌱".

Script Reference / 脚本参考

Command Purpose
add --emotion <name> --intensity <1-10> [--text "..."] [--tags "..."] [--date YYYY-MM-DD] Log one emotion entry
report --period month|week [--month YYYY-MM] [--week YYYY-MM-DD] Generate mood + energy report
list [--limit N] List recent entries
delete --id <N> Delete entry by id (returns error if not found)
export Export all entries as JSON

Database path (priority order):

  1. --db CLI argument on any subcommand
  2. EMOTION_LOG_DB environment variable
  3. Default: ~/.emotion-log/emotion.db

Emotion Taxonomy / 情绪分类

See references/emotion_taxonomy.md for:

  • The 13 emotion types with valence/arousal values and typical signals
  • Empathetic response guidelines in Chinese and English
  • Report rendering style and format

Heads-up / 小提醒

几个容易踩的点,提前说明一下,省得用的时候发懵:

情形 说明
日期格式 add --date 只认横线格式 2024-01-01。写成 2024/01/01(斜杠)会直接报错 —— 这是故意的,防止脏日期混进库里把报告算错。
报告周期 report 的 --week 和 --month 不能同时用;只给其中一个,工具会自动判断是周还是月。
情绪名不认识 如果返回 unknown emotion,对照分类表检查一下拼写。中文「烦躁」和英文「Irritated」都认。
强度带小数 --intensity 3.0 可以,会自动四舍五入成整数(范围 1–10,超出会夹到边界)。
删了不存在的编号 删除不存在的 id 会明确报错,不会"假装成功",方便你确认到底删没删掉。
Windows 显示 脚本已强制 UTF-8 输出 emoji,正常显示无需额外设置;万一终端被日志模块替换也能优雅降级。

FAQ / 常见问题

Q: 同时有两种情绪怎么办? 记最突出的那一个当主情绪,把另一个写进 --tags。例如主情绪「焦虑」、标签里加「还有点孤单」。工具一次只存一条主导情绪,但标签能保留细节,报告时也不会丢。

Q: 怎么回顾一年前的数据? report 只支持月 / 周,没有"年报告"。两个办法:

  • 指定过去的某一整月:report --period month --month 2025-06;
  • 导出全部再筛选:export 把所有记录导出成 JSON,你在别处按日期慢慢看。

Q: 日期一定要写成 2024-01-01 吗? 是的。add --date 只接受横线格式 YYYY-MM-DD。用斜杠会被拒绝并报错,目的就是防止脏日期进库后报告算错(见上表)。

Q: 用英文还是中文记录都可以吗? 都可以。情绪名中文(如「烦躁」)和英文(如「Irritated」)都识别;回应永远保持中英双语。

Q: 只发一个 emoji 能记吗? 能。系统按 emoji 归类(🤩=Excited、😤=Irritated、😢=Sad…),强度给个默认值,你之后也能补。

Q: 我的数据安全吗? 全部存在你本地的 SQLite 文件里,不会上传到任何服务器;可用 export 备份或迁移。数据库位置可通过 EMOTION_LOG_DB 或 --db 自由指定。

Q: 它能帮我判断自己是不是抑郁吗? 不能。它是情绪记录本,不是诊断工具,也不替代专业帮助。如果状态长期很糟,建议找专业支持。

Data Storage / 数据存储

All data is stored in a local SQLite database (schema: id, date, emotion, intensity, text, tags). No data leaves the user's machine. Use export to back up or migrate. The database path is fully configurable via EMOTION_LOG_DB or --db.

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供情绪记录与周期性报告功能,满足用户日常情绪管理需求
  • 支持多模态输入(文本、emoji、打分)和中英双语响应,提升易用性
Trigger Precision92/100

Highlights

  • 触发词覆盖全面,包含口语化表达、emoji、打分等多种形式
  • 中英文混合触发支持良好,边界清晰,误触风险低
Structure and Standards95/100

Areas to improve

  • description 内容重复 Reported severity: Minor

    顶层 frontmatter 和 skill_body 内部均包含完整 description,存在冗余

    Recommendation: 建议仅保留一处 description(推荐保留顶层 frontmatter)

Highlights

  • 文档结构清晰,包含核心流程、能力边界、FAQ、脚本参考等完整模块
  • 提供端到端使用示例和错误处理说明,便于用户理解与执行
Execution Reliability90/100

Highlights

  • 脚本路径明确,参数定义清晰,支持自定义数据库路径
  • 关键操作(如删除)有明确错误反馈,防止误操作
  • 日期格式强制校验,避免脏数据影响报告准确性
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.