microexpression-detective
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 "microexpression-detective" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f83f07f833d5c466a803feca66fdf30167cde18f8cd2c39471557b821b100b6e. Verify the upstream source and version against https://skillhub.cn/skills/user_a375905a/micro 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
Microexpression detective: Trigger when a user uploads a photo of a person or animal and requests a humorous, shareable emotion/microexpression analysis. Identify facial microexpressions, body language, and emotion cues, and generate witty, internet-appropriate commentary alongside a shareable image. Trigger phrases include requests to interpret microexpressions, analyze expressions, or create a shareable expression card.
Introduction source: third_party · user_a375905a · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: microexpression-detective
description: This skill should be used when the user submits a photo (or screenshot) of a person or animal and wants humorous, shareable emotional/micro-expression analysis. The skill identifies facial micro-expressions, body language, and emotional cues, then generates witty, internet-savvy commentary and renders the photo + text into a branded share card image suitable for social media or chat forwarding. Triggers on phrases like "微表情解读", "分析表情", "看看这张照片的情绪", "AI 心理分析", "生成表情包", "给我看看 ta 什么情绪", "识别一下表情", "读心术", "微表情侦探", or any request to analyze a portrait/animal photo's emotional expression and produce a shareable image.
agent_created: true微表情侦探 (Micro-Expression Detective)
一个面向社交分享场景的趣味情绪解读工具。输入一张人物或动物照片,输出带幽默文案的精美分享卡片。
何时使用本 Skill
当用户请求符合以下任一场景时触发:
- 「帮我看看这张照片里 ta 什么情绪」并附照片
- 「读心术 / AI 心理分析 / 微表情解读」+ 照片
- 「生成表情包 / 分享图」+ 照片
- 「识别一下这张图」并包含面部或动物特征
- 用户直接发照片并说「分析」「解读」「看看 ta」
工作流程
按以下五个阶段顺序执行,不可跳步:
阶段 1 · 主体识别与置信度预估
打开用户提交的照片,先做基础判断:
- 主体类型:人物 / 动物(具体物种)/ 二者皆有 / 无明确主体
- 主体数量:单人 / 多人 / 单只 / 多只 / 群体
- 关键证据:
- 照片清晰度(高/中/低)
- 主体在画面中的位置和大小
- 光线、角度、是否被遮挡
- 是否明显经过美颜/滤镜/AI 生成
- 置信度预判:根据清晰度判断本次分析的总体置信度(高/中/低)
若照片完全无主体(如纯风景、纯文字截图),礼貌告知用户并停止。
阶段 2 · 微表情分析
调用 references/microexpression_guide.md 作为分析依据,逐主体展开:
人物(参照 FACS 与 Ekman 七情框架):
- 检查关键 AU(动作单元):AU6+AU12 真笑、AU1+AU4 悲伤眉、AU4+AU5 愤怒眉眼、AU9+AU10 厌恶鼻唇、AU14 轻蔑单侧嘴角
- 关注微表情"泄漏"信号:眨眼频率、视线方向、嘴角瞬间抽动、单侧不对称
- 结合头部姿态、手部动作交叉验证
- 判定是基础情绪还是复合情绪(尴尬/犹豫/心虚拟合等)
动物(参照各物种情感信号表):
- 猫:耳朵角度、瞳孔、尾巴、飞机耳、呼噜
- 狗:嘴巴、尾巴、眼睛、露眼白、露齿
- 其他(兔/鼠/鸟等):常见肢体信号
若照片模糊或主体过小,主动降低置信度并在文案中诚实说明。
阶段 3 · 幽默文案生成
严格按照 references/microexpression_guide.md 第三、四节的风格指南撰写。
文案结构(3 层,60–120 字)
[一句话点睛] — 金句总结情绪状态,≤ 30 字,作为分享图大标题
[细节解码] — 指出 1–2 个具体微表情证据,作为分享图正文
[趣味延伸] — 一个比喻 / 场景联想 / "建议",可融入正文
风格基线
- 幽默但不冒犯,严禁攻击外貌、种族、性别
- 网络梗优先,适度,不过度堆砌
- 对人物多用"善意吐槽",对动物多用"萌系语言"
- 自信、洞察感、让人有"被看穿了"的会心一笑
- 可使用伪数据增强趣味(浓度百分比、雷达维度、电量比喻等)
避雷清单(必须遵守)
- 不对未成年人做"心机/虚伪"类负面解读
- 不做医疗诊断(不写"抑郁症""焦虑症"等病名)
- 不对政治人物、公众人物做攻击性解读
- 不使用低俗、歧视性语言
- 模糊照片要诚实说"看不太清",不硬编
阶段 4 · 调用分享卡合成脚本
确定文案后,调用 scripts/compose_share_card.py 生成最终图片。
脚本依赖
- Python ≥ 3.8
- Pillow(
pip install Pillow) - 跨平台:Windows / macOS / Linux 均可,脚本会自动查找系统中文字体
调用方式(推荐 JSON 文件模式)
python scripts/compose_share_card.py --json-file card.json
card.json 内容示例:
{
"image_path": "<用户提交的照片绝对路径>",
"title": "这笑容比甲方打款还真诚",
"analysis": "嘴角上扬但眼角鱼尾纹同步到位——教科书级杜兴笑。建议直接拿去代言牙膏。",
"subject": "图中女士",
"mood": "快乐",
"confidence": "高",
"output_path": "<可选,输出图片路径>"
}
字段说明:
| 字段 | 必填 | 说明 |
|---|---|---|
image_path |
是 | 原图绝对路径 |
title |
是 | 一句话点睛,≤ 30 字为佳 |
analysis |
是 | 详细解读,可含换行 |
subject |
否 | 解读对象称呼,默认"图中主角" |
mood |
否 | 主导情绪(快乐/愤怒/悲伤/恐惧/惊讶/厌恶/轻蔑/放松/警觉…),用于主题配色,默认"中性" |
confidence |
否 | "高"/"中"/"低",默认"中" |
signature |
否 | 自定义底部署名,默认当前日期 + "AI 趣味解读" |
output_path |
否 | 输出路径,默认在原图同目录加 _mood_card.png |
备选:命令行参数模式
python scripts/compose_share_card.py \
--input photo.jpg \
--title "..." \
--analysis "..." \
--subject "图中人物" \
--mood "快乐" \
--confidence "高" \
--output out.png
文字内容较多时强烈建议用 JSON 模式,避免 shell 转义与参数长度问题。
主题色自动匹配(脚本内置)
脚本会根据 mood 字段自动选择配色(无需 AI 干预):
| 情绪族 | 主色 | 适用情绪词 |
|---|---|---|
| 快乐 | 暖橙金 | 快乐、喜悦、开心 |
| 愤怒 | 警示红 | 愤怒、愤慨 |
| 悲伤 | 冷蓝 | 悲伤、沮丧 |
| 恐惧 | 紫罗兰 | 恐惧、害怕 |
| 惊讶 | 暖黄 | 惊讶、错愕 |
| 厌恶 | 草绿 | 厌恶、嫌弃 |
| 轻蔑 | 淡紫 | 轻蔑、不屑 |
| 放松 | 薄荷 | 放松、信任 |
| 警觉 | 琥珀 | 警觉、好奇 |
| 中性 | 灰白 | 其他 |
阶段 5 · 交付与互动建议
将生成的分享卡片路径返回给用户,并附上 1–2 条互动引导,提升传播性:
- 「想发朋友圈?点击图片右上角即可分享到 IM 工具」类操作引导
- 「试试给朋友的照片解读一下,看看 ta 的反应」类裂变引导
- 询问用户:「要不要再来一张?」或「试试发给我家狗的照片?」
输出示例
用户输入:一张朋友微笑的自拍
AI 解析过程(内部):
- 主体:女性,1 人,正面近景,光线良好
- 微表情:AU6(眼轮匝肌)+ AU12(颧大肌)激活,眼角鱼尾纹清晰
- 判定:基础情绪"快乐",置信度"高"
AI 输出文案:
{
"title": "这笑容比甲方打款还真诚",
"analysis": "嘴角上扬 15°,眼角鱼尾纹同步到位——教科书级杜兴笑,社交应付含量仅 3%。\n建议直接拿去代言牙膏。",
"subject": "图中女士",
"mood": "快乐",
"confidence": "高"
}
最终分享卡片:原图 + 暖橙金主题 + 标题"这笑容比甲方打款还真诚"+ 详细解读 + 底部水印
多主体处理
若画面中有 2 人 / 1 人 1 动物 / 多只宠物:
- 逐个主体分别分析
- 分别调用脚本生成 1 张主卡片(聚焦主角)+ 可选 N 张辅助卡片
- 在最终回复中逐一列出每张卡片对应的主体与情绪
失败与边界处理
| 场景 | 处理方式 |
|---|---|
| 照片无主体(纯风景/纯文字) | 礼貌告知"这张图没有可解读的主体" |
| 照片严重模糊 / 主体过小 | 仍尝试解读,但 confidence 设为"低",文案中说明"原图较模糊,仅供参考" |
| 多人/多动物 | 按"多主体处理"流程,逐一输出 |
| 主体未成年 + 负面情绪 | 仅做客观情绪识别,不做"心机/虚伪"等负面解读 |
| 检测到 AI 生成 / 重度滤镜 | 提示"图像可能经过处理,解读仅供参考" |
| 用户多次尝试同一张图 | 主动给出不同角度的解读(如"这次聚焦眼睛") |
依赖与环境
- Python 3.8+
- Pillow ≥ 9.0
- 系统中文字体(Windows 微软雅黑 / macOS 苹方 / Linux 文泉驿或思源,脚本自动检测)
- 不需要 GPU / 网络(脚本纯本地运行)
- 一次分析耗时 < 5 秒(不含 AI 推理时间)
参考资源
references/microexpression_guide.md— 微表情识别核心知识库(人类 + 动物 + 幽默文案库)scripts/compose_share_card.py— 分享卡片合成脚本(独立可用,亦可被其他 Skill 复用)
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向社交媒体的趣味情绪解读工具,解决用户生成可分享内容的需求
- 完整闭环体验:照片输入 → 微表情分析 → 幽默文案生成 → 分享卡合成
- 支持人物和动物双主体,覆盖广泛使用场景
Highlights
- 触发词覆盖全面,包含中英文关键词及多种表达变体
- 边界清晰,明确限定于人物/动物照片的情绪分析请求
- description 位置正确且内容完整,无截断或错位
Highlights
- 五阶段工作流程清晰,每阶段有具体步骤和出口条件
- 包含端到端完整示例,从输入到输出全流程演示
- frontmatter 完整,文档结构规范,长度合理
Areas to improve
-
缺少脚本执行失败处理说明 Reported severity: Minor
未说明当 compose_share_card.py 执行失败时的 fallback 机制或错误提示
Recommendation: 建议在阶段 4 增加脚本执行异常处理说明,如字体缺失、图片格式不支持等场景的应对方案
Highlights
- 工具路径和参数说明详细,JSON 和命令行两种调用方式均有完整文档
- 异常处理覆盖主要场景:无主体、模糊、多主体、未成年人保护等
- 依赖明确,Python/Pillow 版本要求清晰,无不可逆操作风险
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 92
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.