# Send Emotion State to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "emotion-state",
    "name": "Emotion State",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/tashfeenahmed/emotion-state",
    "canonicalUrl": "https://clawhub.ai/tashfeenahmed/emotion-state",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/emotion-state",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=emotion-state",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "hooks/emotion-state/HOOK.md",
      "hooks/emotion-state/handler.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "emotion-state",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T06:00:48.638Z",
      "expiresAt": "2026-05-06T06:00:48.638Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=emotion-state",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=emotion-state",
        "contentDisposition": "attachment; filename=\"emotion-state-1.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "emotion-state"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/emotion-state"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/emotion-state",
    "downloadUrl": "https://openagent3.xyz/downloads/emotion-state",
    "agentUrl": "https://openagent3.xyz/skills/emotion-state/agent",
    "manifestUrl": "https://openagent3.xyz/skills/emotion-state/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/emotion-state/agent.md"
  }
}
```
## Documentation

### Emotion State (NL) Skill

This skill describes how to install and configure the Emotion State hook, which
adds a compact emotion_state block to the system prompt.

### What it does

Evaluates user and agent emotions as short natural-language phrases.
Stores per-user emotion state across sessions in the agent state directory.
Injects the latest entries plus a decayed trend line into the system prompt.

### Install & enable (workspace hook)

After installing the skill, copy the bundled hook into your workspace:

cp -R ./skills/emotion-state/hooks/emotion-state ./hooks/

Enable the hook in OpenClaw:

openclaw hooks enable emotion-state

Restart the OpenClaw gateway.

### Configuration

Set environment variables for the hook via OpenClaw config, e.g. in
~/.openclaw/openclaw.json:

{
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "emotion-state": {
          "enabled": true,
          "env": {
            "EMOTION_CLASSIFIER_URL": "",
            "OPENAI_API_KEY": "YOUR_KEY",
            "OPENAI_BASE_URL": "https://api.openai.com/v1",
            "EMOTION_MODEL": "gpt-4o-mini",
            "EMOTION_CONFIDENCE_MIN": "0.35",
            "EMOTION_HISTORY_SIZE": "100",
            "EMOTION_HALF_LIFE_HOURS": "12",
            "EMOTION_TREND_WINDOW_HOURS": "24",
            "EMOTION_MAX_USER_ENTRIES": "3",
            "EMOTION_MAX_AGENT_ENTRIES": "2",
            "EMOTION_MAX_OTHER_AGENTS": "3",
            "EMOTION_TIMEZONE": "America/Los_Angeles"
          }
        }
      }
    }
  }
}

### Notes

The hook stores state at ~/.openclaw/agents/<agentId>/agent/emotion-state.json.
It does not store raw user text; only model-inferred reasons.
If the classifier fails, entries fall back to neutral/low/unsure.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tashfeenahmed
- Version: 1.2.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T06:00:48.638Z
- Expires at: 2026-05-06T06:00:48.638Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/emotion-state)
- [Send to Agent page](https://openagent3.xyz/skills/emotion-state/agent)
- [JSON manifest](https://openagent3.xyz/skills/emotion-state/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/emotion-state/agent.md)
- [Download page](https://openagent3.xyz/downloads/emotion-state)