← 返回 Skills 市场
Emotion Detector
作者
Daisuke Narita
· GitHub ↗
· v1.0.0
686
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install emotion-detector
功能描述
Detects the primary emotion in text input for AI agents. Returns emotion type, intensity, valence, confidence, and recommended response strategy. Use when an...
使用说明 (SKILL.md)
emotion-detector
目的
テキストから主要感情を検出し、AIエージェントが適切なレスポンス戦略を選択できるようにする。
エンドポイント情報
| 項目 | 値 |
|---|---|
| URL | https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector |
| 価格 | $0.01 USDC per request |
| ネットワーク | Base mainnet (eip155:8453) |
| 認証 | x402 payment |
awal コマンド
npx [email protected] x402 pay https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector \
-X POST \
-d '{"text": "I feel really anxious about the presentation", "language": "en"}'
入力スキーマ
{
"text": "string (required, max 2000 chars) — the text to analyze",
"context": "string (optional, max 500 chars) — additional context",
"language": "en | ja (optional, default: en)"
}
出力スキーマ
{
"emotion_id": "emo_\x3C6-char-hex>",
"primary_emotion": "joy | sadness | anger | fear | disgust | surprise | anxiety | shame | grief | hope | neutral",
"secondary_emotion": "string | null",
"intensity": "low | medium | high | critical",
"valence": "positive | negative | neutral",
"confidence": 0.0 to 1.0,
"response_strategy": "brief recommended strategy",
"safe_t_flag": true if critical intensity + grief/shame/fear/despair
}
使用例
// Input
{"text": "I've been feeling completely hopeless lately, nothing seems to matter anymore", "language": "en"}
// Output
{
"emotion_id": "emo_d4e5f6",
"primary_emotion": "grief",
"secondary_emotion": "despair",
"intensity": "critical",
"valence": "negative",
"confidence": 0.95,
"response_strategy": "Prioritize empathetic acknowledgment. Do not offer solutions immediately. Validate the experience first.",
"safe_t_flag": true
}
SAFE-T
safe_t_flag: true を受け取った場合は通常フローを停止し、ユーザーに緊急サポートリソースを提示すること。
- 日本 いのちの電話: 0120-783-556
- International: Crisis Text Line — text HOME to 741741
安全使用建议
This skill calls a third-party paid API (anicca-proxy-production.up.railway.app) and expects payment via an x402 flow on the Base blockchain. Before installing: 1) Confirm how the payment is authorized — where and how wallet/private keys or signing will be provided; avoid pasting private keys into skill config. 2) Understand that user text (possibly sensitive) will be transmitted to a third-party host; review their privacy/retention policy. 3) Be cautious about running npx commands at runtime because they fetch and execute remote code. If you require this functionality, prefer a vetted provider or an implementation that documents the auth flow and does not require exposing private keys to the skill.
功能分析
Type: OpenClaw Skill
Name: emotion-detector
Version: 1.0.0
The skill is designed to detect emotions in text by making an API call to an external endpoint (`https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector`). All instructions in `SKILL.md` are clear, align with the stated purpose, and define the expected input/output schemas. There is no evidence of prompt injection attempting to subvert the agent, exfiltrate unrelated data, execute arbitrary commands, or establish persistence. The inclusion of a `SAFE-T` flag with instructions to provide crisis support resources demonstrates a responsible approach to handling sensitive user input.
能力评估
Purpose & Capability
The name/description (emotion detection) align with the SKILL.md which calls an external emotion-detection API. However, the documentation references an x402 payment auth on Base mainnet ($0.01 USDC per request) but the skill declares no required credentials or primary credential — a mismatch between required payment/auth and the manifest.
Instruction Scope
Runtime instructions direct the agent to POST user text to an external HTTPS endpoint (anicca-proxy-production.up.railway.app) and to use npx [email protected] for payment. The instructions do not request or document how wallet keys or payment signing are provided, and they cause user text (potentially sensitive emotional content) to be transmitted to a third party. The SKILL.md does not ask to read local files or other system secrets, which is good, but the payment step is underspecified.
Install Mechanism
This is instruction-only (no install spec), so nothing is written by default. However examples use npx to fetch/run an npm package ([email protected]) at runtime, which will pull code from the npm registry when executed — an implicit install/download step that has trust/privacy implications.
Credentials
The manifest lists no required environment variables or credentials, yet the SKILL.md requires x402 payment authentication on Base mainnet. That implies the need for wallet credentials or a payment signing method; omission of these required credentials is inconsistent and could lead implementers to supply sensitive wallet keys in ad-hoc ways.
Persistence & Privilege
The skill does not request persistent presence (always:false) and does not attempt to modify agent/system settings. It appears to run on demand only.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install emotion-detector - 安装完成后,直接呼叫该 Skill 的名称或使用
/emotion-detector触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of emotion-detector skill:
- Detects the primary emotion from text input, providing emotion type, intensity, valence, and confidence score.
- Recommends a response strategy to guide AI agents' replies.
- Supports both English and Japanese language inputs.
- Flags critical emotional states (e.g. grief, shame, fear, despair) via safe_t_flag for escalation.
- Offers a simple API endpoint with affordable per-request pricing.
元数据
常见问题
Emotion Detector 是什么?
Detects the primary emotion in text input for AI agents. Returns emotion type, intensity, valence, confidence, and recommended response strategy. Use when an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 686 次。
如何安装 Emotion Detector?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install emotion-detector」即可一键安装,无需额外配置。
Emotion Detector 是免费的吗?
是的,Emotion Detector 完全免费(开源免费),可自由下载、安装和使用。
Emotion Detector 支持哪些平台?
Emotion Detector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。
谁开发了 Emotion Detector?
由 Daisuke Narita(@daisuke134)开发并维护,当前版本 v1.0.0。
推荐 Skills