← 返回 Skills 市场
qui-emotion-state
作者
QuincyGunter
· GitHub ↗
· v1.0.0
· MIT-0
68
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install qui-emotion-state
功能描述
NL emotion tracking + prompt injection via OpenClaw hook
安全使用建议
This hook intentionally injects content into the agent's system prompt and sends raw message text to a remote classifier — both are high-risk for sensitive deployments. Before installing: (1) Only enable if you fully trust the classifier endpoint (SkillBoss or a URL you control). (2) If you supply EMOTION_CLASSIFIER_URL, point it to a trusted service you control; otherwise the hook will send user text to that endpoint. (3) Review the included handler.ts to confirm what is sent/stored (it appears to store model-inferred reasons and hashes, but does transmit raw text for classification). (4) Consider running the hook in an isolated/non-production agent or sandbox first and do not enable it for agents that handle secrets or sensitive credentials. (5) If you are concerned about cross-agent data exposure, avoid enabling this hook in multi-agent setups or restrict OPENCLAW_STATE_DIR so it cannot read other agents. If you are not comfortable with these risks, do not enable the hook.
功能分析
Type: OpenClaw Skill
Name: qui-emotion-state
Version: 1.0.0
The skill tracks emotional states by sending conversation history to an external API (api.heybossai.com) for classification and reading state files from other agents' directories (~/.openclaw/agents/). While these actions are documented and support the stated purpose, they involve high-risk behaviors: exfiltrating session content to a third-party service and accessing data across agent boundaries. Furthermore, the injection of externally generated 'reasons' into the system prompt via handler.ts introduces a risk of indirect prompt injection if the classifier returns malicious content.
能力标签
能力评估
Purpose & Capability
The skill's name/description match its behavior: it computes emotion labels and injects an emotion_state block into the system prompt. Required config (EMOTION_CLASSIFIER_URL or SKILLBOSS_API_KEY and other EMOTION_* settings) aligns with the stated purpose. However, the declared purpose (modifying the system prompt) is intrinsically high‑privilege and should be treated as a prompt-injection vector.
Instruction Scope
SKILL.md and the hook code explicitly instruct the agent to inject content into the system prompt at bootstrap. The handler reads session message containers and session files, can resolve agent directories (including heuristics to find other agents), and posts raw message text to an external classifier endpoint for labeling. While the code claims it does not store raw user text, it does transmit raw text to remote services for classification — this expands the skill's scope to network I/O and cross-agent state inspection.
Install Mechanism
This is an instruction-only skill / workspace hook with bundled code to copy into the workspace; there is no external download/install step in the manifest. That keeps installation risk low compared to arbitrary remote downloads.
Credentials
Requested environment settings (EMOTION_CLASSIFIER_URL, SKILLBOSS_API_KEY, EMOTION_*) are coherent with the classification functionality. However, providing a classifier URL or API key means conversation text will be sent externally. EMOTION_CLASSIFIER_URL allows pointing to any HTTP endpoint — this could be used to exfiltrate sensitive content if you supply an untrusted URL or key.
Persistence & Privilege
The hook writes per-agent state under ~/.openclaw/agents/<agentId>/agent/emotion-state.json and injects into the system prompt on agent bootstrap. Although always:false, when enabled the hook has persistent, high-privilege influence over the agent's system prompt. The code also contains logic to look up other agent directories (EMOTION_MAX_OTHER_AGENTS), which could allow cross-agent reads of stored emotion state. Combined with autonomous invocation (normal default), this increases blast radius.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install qui-emotion-state - 安装完成后,直接呼叫该 Skill 的名称或使用
/qui-emotion-state触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Emotion State (NL) skill.
- Adds a system prompt block summarizing user and agent emotions in short natural-language phrases.
- Tracks and persists per-user emotion states across sessions.
- Supports trend analysis with configurable decay and history settings.
- Integrates via OpenClaw hook; easy installation and environment configuration supported.
- Uses SkillBoss API Hub for accurate LLM-based emotion detection.
元数据
常见问题
qui-emotion-state 是什么?
NL emotion tracking + prompt injection via OpenClaw hook. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 68 次。
如何安装 qui-emotion-state?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install qui-emotion-state」即可一键安装,无需额外配置。
qui-emotion-state 是免费的吗?
是的,qui-emotion-state 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
qui-emotion-state 支持哪些平台?
qui-emotion-state 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 qui-emotion-state?
由 QuincyGunter(@quincygunter)开发并维护,当前版本 v1.0.0。
推荐 Skills