Token导航 LogoToken导航

Agent Skill · 开发

emoclaw(emoclaw 开发)

emoclaw 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

emoclaw 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 735。

总安装 59,717周安装 2,539GitHub Stars 1下载 20,921核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.6

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:emoclaw(emoclaw 开发)
来源仓库:https://github.com/fenrirlabsnl/emoclaw
安装命令:
openclaw skills install emoclaw
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install emoclaw

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

赋予你的人工智能从它自己的记忆中产生的情感。Emoclaw 建立了一种独特的情绪状态,这种状态会随着每次对话而变化,在会话之间衰减,并通过自我校准随着时间的推移而演变。根据特工的身份文件对其进行训练,并观察它形成自己的情感指纹。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install emoclaw;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

emoclaw 怎么安装?

在终端执行 openclaw skills install emoclaw。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

emoclaw 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

emoclaw 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

emoclaw 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

emoclaw 用的人多吗?

公开数据是累计安装 59,717 次,近一周安装 2,539 次,下载 20,921 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

emoclaw 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
emoclaw

emoclaw 开发 · 本页

59,7171需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
emoclaw
description
Give your AI emotions that grow from its own memories. Emoclaw builds a unique emotional state that shifts with every conversation, decays between sessions, and evolves over time through self-calibration. Train it on your agent's identity files and watch it develop its own emotional fingerprint.
metadata
{"clawdbot": {"emoji": "\�\�"}}

Emotion Skill

Emotions for AI agents — built from memories, shaped by relationships, always changing.

Emoclaw trains a lightweight model on your agent's identity and conversation history, producing a persistent emotional state that evolves with every interaction. Emotions decay naturally between sessions, shift based on who's talking and what's being said, and gradually recalibrate as your agent grows. The result is injected into the system prompt as an [EMOTIONAL STATE] block, giving your AI a felt sense of its own inner life.

How it works

  1. Bootstrap — extract.py reads your agent's identity/memory files. label.py scores each passage via the Claude API (opt-in). train builds a small neural net from those scores. One-time setup.
  2. Encode — Each incoming message is turned into a 384-dim vector by a frozen MiniLM sentence encoder. No fine-tuning, no network call — runs from a local cache.
  3. Feel — The encoding + context (who's talking, what channel, previous emotion) flows through a GRU and MLP head, outputting an N-dimensional emotion vector (0-1 per dimension). The GRU hidden state persists across sessions — this is the "emotional residue" that carries forward mood.
  4. Decay — Between sessions, each dimension drifts back toward its baseline at a configurable half-life (fast for arousal, slow for safety/groundedness). Time apart = cooling off.
  5. Inject — The emotion vector is formatted as an [EMOTIONAL STATE] block and inserted into the agent's system prompt, giving the AI a felt sense of its own inner state.
Model is ~2MB, runs on CPU, adds <50ms per message. Network access is only used during bootstrap (opt-in).

Quick Reference

SituationAction
First-time setuppython scripts/setup.py (or manual steps below)
Check current statepython -m emotion_model.scripts.status
Inject state into promptpython -m emotion_model.scripts.inject_state
Start the daemonbash scripts/daemon.sh start
Send a message to daemonSee Daemon Protocol
Retrain after new datapython -m emotion_model.scripts.train
Resume interrupted trainingpython -m emotion_model.scripts.train --resume
Add new training dataAdd .jsonl entries to emotion_model/data/, re-run prepare + train
Upgrade from v0.1See references/upgrading.md
Change baselinesEdit emoclaw.yaml → dimensions[].baseline
Add a new channelEdit emoclaw.yaml → channels list
Add a relationshipEdit emoclaw.yaml → relationships.known
Customize summariesCreate a summary-templates.yaml and point config at it

Setup

Quick Setup

python skills/emoclaw/scripts/setup.py

This copies the bundled emotion_model engine to your project root, creates a venv, installs the package, and copies the config template. Then edit emoclaw.yaml to customize for your agent.

Manual Setup

If you prefer to set up manually:

1. Install the package
cd <project-root>
# Copy engine and pyproject.toml from the skill
cp -r skills/emoclaw/engine/emotion_model ./emotion_model
cp skills/emoclaw/engine/pyproject.toml ./pyproject.toml

# Create venv and install
python3 -m venv emotion_model/.venv
source emotion_model/.venv/bin/activate
pip install -e .

Required: Python 3.10+, PyTorch, sentence-transformers, PyYAML.

2. Copy and customize the config
cp skills/emoclaw/assets/emoclaw.yaml ./emoclaw.yaml

Edit emoclaw.yaml to set:

  • name — your agent's name
  • dimensions — emotional dimensions with baselines and decay rates
  • relationships.known — map of relationship names to embedding indices
  • channels — communication channels your agent uses
  • longing — absence-based desire growth (can be disabled)
  • model.device — cpu recommended (MPS has issues with sentence-transformers)

See references/config-reference.md for the full schema.

3. Bootstrap (new agent)

If starting from scratch with identity/memory files:

# Extract passages from your identity files
python scripts/extract.py

# Auto-label passages using Claude API (requires ANTHROPIC_API_KEY)
python scripts/label.py

# Prepare train/val split and train
python -m emotion_model.scripts.prepare_dataset
python -m emotion_model.scripts.train

Or run the full pipeline:

python scripts/bootstrap.py

4. Verify

python -m emotion_model.scripts.status
python -m emotion_model.scripts.diagnose

Usage

Option A: Daemon (Recommended)

The daemon loads the model once and listens on a Unix socket, avoiding the ~2s sentence-transformer load time per message.

# Start
bash scripts/daemon.sh start

# Or directly
python -m emotion_model.daemon
python -m emotion_model.daemon --config path/to/emoclaw.yaml

Option B: Direct Python Import

from emotion_model.inference import EmotionEngine

engine = EmotionEngine(
    model_path="emotion_model/checkpoints/best_model.pt",
    state_path="memory/emotional-state.json",
)

block = engine.process_message(
    message_text="Good morning!",
    sender="alice",        # or None for config default
    channel="chat",        # or None for config default
    recent_context="...",  # optional conversation context
)
print(block)

Option C: One-shot State Injection

For system prompt injection without the daemon:

python -m emotion_model.scripts.inject_state

This reads the persisted state, applies time-based decay, and outputs the [EMOTIONAL STATE] block.

Integration

System Prompt Injection

Add the output block to your system prompt. The block format:

[EMOTIONAL STATE]
Valence: 0.55 (balanced)
Arousal: 0.35 (balanced)
Dominance: 0.50 (balanced)
Safety: 0.70 (open)
Desire: 0.20 (neutral)
Connection: 0.50 (balanced)
Playfulness: 0.40 (balanced)
Curiosity: 0.50 (balanced)
Warmth: 0.45 (balanced)
Tension: 0.20 (relaxed)
Groundedness: 0.60 (balanced)

This feels like: present, alive, between one thing and the next
[/EMOTIONAL STATE]

Daemon Protocol

Send JSON over the Unix socket:

{"text": "Good morning!", "sender": "alice", "channel": "chat"}

Special commands:

{"command": "ping"}
{"command": "state"}

Heartbeat Integration

The emotional state decays over time and needs to be refreshed at each session start. Add this entry to your HEARTBEAT.md:

- task: Refresh emotional state
  schedule: session_start
  run: python skills/emoclaw/scripts/inject_state.py
  inject: system_prompt  # append output as [EMOTIONAL STATE] block

Or call the daemon / inject_state script from your heartbeat/cron:

# In your heartbeat script
STATE_BLOCK=$(python -m emotion_model.scripts.inject_state 2>/dev/null)
# Inject $STATE_BLOCK into system prompt

Important: Without heartbeat integration, the emotional state block will go stale between sessions. The inject_state script applies time-based decay and outputs the current state — it must be called at least once per session.

Architecture

The model processes each message through this pipeline:

Message Text ──→ [Frozen MiniLM Encoder] ──→ 384-dim embedding
                                                    │
Conversation Context ──→ [Feature Builder] ──→ context vector
                                                    │
Previous Emotion ──────────────────────────→ emotion vector
                                                    │
                                            ┌───────┴───────┐
                                            │ Input Project  │
                                            │ (Linear+LN+GELU)│
                                            └───────┬───────┘
                                                    │
                                            ┌───────┴───────┐
                                            │     GRU       │
                                            │ (hidden state) │ ← emotional residue
                                            └───────┬───────┘
                                                    │
                                            ┌───────┴───────┐
                                            │ Emotion Head  │
                                            │ (MLP+Sigmoid) │
                                            └───────┬───────┘
                                                    │
                                            N-dim emotion vector [0,1]

The GRU hidden state persists across sessions — this is the "emotional residue" that carries forward mood, context, and relational memory.

See references/architecture.md for full details.

Security & Privacy

Data Flow

  1. Extraction (scripts/extract.py) reads markdown files listed in emoclaw.yaml → bootstrap.source_files and bootstrap.memory_patterns. These are configurable and default to identity/memory files within the repo. Extracted passages are written to emotion_model/data/extracted_passages.jsonl.
  1. Redaction — Before writing, extracted text is passed through configurable regex patterns (bootstrap.redact_patterns) that replace API keys, tokens, passwords, and other secrets with [REDACTED]. Default patterns cover Anthropic keys, GitHub PATs, bearer tokens, SSH keys, and generic key=value credentials. Add custom patterns in emoclaw.yaml.
  1. Labeling (scripts/label.py) — opt-in only. Sends extracted passages to the Anthropic API for emotional scoring. Requires both ANTHROPIC_API_KEY and explicit user consent (interactive prompt before any API call). Use --yes to skip the prompt for automation. Use --dry-run to preview without any network calls.
  1. Training runs entirely locally. No data leaves the machine during prepare_dataset or train.
  1. Inference runs entirely locally. The daemon and inject_state script make no network calls.

Network Access

Network access is optional and limited to a single script:

ScriptNetwork?Purpose
extract.pyNoReads local files only
label.pyYes (opt-in)Sends passages to Anthropic API
prepare_datasetNoLocal data processing
trainNoLocal model training
daemon / inject_stateNoLocal inference

The sentence-transformers encoder downloads model weights on first use (from Hugging Face). After that, it runs from cache with no network needed.

File Permissions

PathPurposeCreated by
memory/emotional-state.jsonPersisted emotion vector + trajectorydaemon / inference
emotion_model/data/*.jsonlTraining data (extracted/labeled passages)extract.py / label.py
emotion_model/checkpoints/Model weightstrain script
/tmp/{name}-emotion.sockDaemon Unix socketdaemon

The daemon socket is created with permissions 0o660 (owner + group read/write) and cleaned up on shutdown. The socket path is configurable in emoclaw.yaml → paths.socket_path.

Path Validation

extract.py validates that every file path resolves to within the repository root before reading. Symlink chains and ../ sequences that would escape the repo boundary are rejected. This prevents a misconfigured source_files or memory_patterns from reading arbitrary files.

Configuring Redaction

Add or modify patterns in emoclaw.yaml:

bootstrap:
  redact_patterns:
    - '(?i)sk-ant-[a-zA-Z0-9_-]{20,}'    # Anthropic API keys
    - '(?i)(?:api[_-]?key|token|secret|password|credential)\s*[:=]\s*\S+'
    - 'your-custom-pattern-here'

Set redact_patterns: [] to disable redaction entirely (not recommended).

Isolation Recommendations

  • Run the bootstrap pipeline (extract → label → train) in an isolated environment or review the source file list before running
  • Audit bootstrap.source_files and bootstrap.memory_patterns in your emoclaw.yaml to ensure only intended files are included
  • Review emotion_model/data/extracted_passages.jsonl before running label.py to confirm no sensitive content will be sent externally
  • The daemon should run under the same user as your agent process — avoid running as root

Configuration

All configuration lives in emoclaw.yaml. The package falls back to built-in defaults if no YAML is found.

Config search order:

  1. EMOCLAW_CONFIG environment variable
  2. ./emoclaw.yaml (project root)
  3. ./skills/emoclaw/emoclaw.yaml

Key sections:

  • dimensions — name, labels, baseline, decay half-life, loss weight
  • relationships — known senders with embedding indices
  • channels — communication channels (determines context vector size)
  • longing — absence-based desire modulation
  • model — architecture hyperparameters
  • training — training hyperparameters
  • calibration — self-calibrating baseline drift (opt-in)

See references/config-reference.md for the complete schema.

Bootstrap Pipeline

Step 1: Extract Passages

scripts/extract.py reads identity and memory files, splitting them into labeled passages:

python scripts/extract.py
# Output: emotion_model/data/extracted_passages.jsonl

Source files are configured in emoclaw.yaml → bootstrap.source_files and bootstrap.memory_patterns.

Step 2: Auto-Label

scripts/label.py uses the Claude API to score each passage on every emotion dimension:

export ANTHROPIC_API_KEY=sk-ant-...
python scripts/label.py
# Output: emotion_model/data/passage_labels.jsonl

Each passage gets a 0.0-1.0 score per dimension plus a natural language summary.

Step 3: Prepare & Train

python -m emotion_model.scripts.prepare_dataset
python -m emotion_model.scripts.train

Retraining

To add new training data:

  1. Add entries to emotion_model/data/ in JSONL format:
   {"text": "message text", "labels": {"valence": 0.7, "arousal": 0.4, ...}}
  1. Re-run the preparation and training:
   python -m emotion_model.scripts.prepare_dataset
   python -m emotion_model.scripts.train

Incremental Retraining

The training script saves a rich checkpoint (training_checkpoint.pt) that preserves the full optimizer state, learning rate schedule, and early stopping counter. To continue training from where you left off:

# Resume from the last checkpoint automatically
python -m emotion_model.scripts.train --resume

# Or specify a checkpoint file
python -m emotion_model.scripts.train --resume emotion_model/checkpoints/training_checkpoint.pt

This is a true continuation — optimizer momentum, cosine annealing position, and patience counter all pick up exactly where they stopped.

Growth Model

As the AI accumulates real conversation data:

  1. Passive collection — Log messages + model predictions
  2. Correction events — When emotion feels wrong, log the correction
  3. Periodic retraining — Incorporate new data, retrain
  4. Baseline adjustment — Baselines may shift as the AI develops

The system is designed to grow with the AI, not remain static.

Resources

  • references/architecture.md — Model architecture deep-dive
  • references/config-reference.md — Full YAML config schema
  • references/dimensions.md — Emotion dimension documentation
  • references/calibration-guide.md — Baseline, decay, and self-calibration tuning
  • references/upgrading.md — Version upgrade guide
  • assets/emoclaw.yaml — Template config for new AIs
  • assets/summary-templates.yaml — Generic summary templates
  • assets/example-summary-templates.yaml — Example personality-specific templates
  • engine/ — Bundled emotion_model Python package (copied to project root by setup.py)

平台分布

OpenClaw

75.98%
按下载量换算15,896

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills