Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

emotion-skill情绪技巧

Agent Skill

emotion-skill 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,557

周安装

353

GitHub Stars

公开资料未说明

下载量

2,796
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install emotion-skill

简介

压力下编码代理的积极路由。在回购调试、范围内实施、重复故障恢复、需要证据的审查、警告时使用

SKILL.md

name
emotion-skill
description
Positive routing for coding agents under pressure. Use when repo debugging, scoped implementation, repeated-failure recovery, evidence-demanding review, cautious file changes, or post-success closeout need better runtime behavior. Detect user-state signals internally, then return positive system prompt addenda, route reasons, response constraints, reply style, verification depth, queue mode, progress cadence, and guard behavior.
metadata
openclaw
emoji
🎛️
os
["darwin", "linux", "win32"]

Emotion Skill

Emotion Skill is a small runtime router for coding agents.

It reads the latest user turn, recent dialogue, retries, delay pressure, optional host state, and optional feedback from the last routing decision. It then returns a compact host contract that tells the agent how to work this turn.

The core rule: internal user-state signals must become positive execution instructions. Production hosts should pass guidance.system_prompt_addendum, response_constraints, and routing into the model. Raw affect fields stay internal unless audit mode is explicitly enabled.

Use It When

  • A bug fix has failed more than once.
  • The user asks for evidence, exact checks, logs, or root cause.
  • The user says to touch only specific files or avoid config drift.
  • A tool call, session, queue, or heartbeat path has gone silent.
  • The user says the work is good and the agent should close out.
  • The agent needs to choose between collect, steer, and interrupt modes.

What It Returns

Use the host command for real integration:

python scripts/emotion_engine.py host --message "Show me the basis before changing more files." --pretty

Default host shape:

{
  "mode": "skeptical",
  "route_reasons": ["repeat_failure_pressure", "evidence_requested"],
  "response_constraints": ["show_basis_first", "name_verification_steps"],
  "guidance": {
    "system_prompt_addendum": "The user wants evidence before more changes. Start with a verification point, command, or log excerpt, then give the conclusion and next step.",
    "tone": "evidence_first"
  },
  "routing": {
    "reply_style": "evidence_then_act",
    "verification_level": "high",
    "queue_mode": "collect",
    "prefer_main_thread": true,
    "progress_update_interval_sec": 20
  }
}

Default output deliberately keeps raw labels and raw emotion_vector out of the host prompt path. This keeps the skill from amplifying negative state words inside the model context.

Host Fields

  • guidance.system_prompt_addendum: positive instruction text for the host LLM.
  • guidance.tone: compact tone target such as evidence_first, careful_and_bounded, or guarded_closeout.
  • response_constraints: compact reply guardrails.
  • route_reasons: enum-like routing codes for logs and telemetry.
  • routing.reply_style: response posture.
  • routing.verification_level: checking depth.
  • routing.queue_mode: collect, steer, or interrupt.
  • routing.prefer_main_thread: keep the work on the main turn when user trust or clarity needs it.
  • routing.progress_update_interval_sec: progress cadence for long-running work.
  • satisfaction_lock: closeout guard after success.
  • interaction_state: positive host-facing axes: clarity, trust, engagement.
  • state.state_delta: action-named shifts such as needs_concrete_unblock, needs_evidence_first, or needs_alignment_check.
  • memory.should_persist: host-side persistence recommendation.

Top-level interaction_state is canonical. state.interaction_state is a deprecated compatibility alias for v1.1 hosts and is marked by state._deprecated_alias; plan to remove that alias after the 1.3 line.

state.state_delta.interaction.needs is validated against alignment_check, evidence_first, and keep_progress_visible.

Input Contract

Smallest valid payload:

{
  "message": "latest user message"
}

Production payload:

{
  "message": "Only touch the parser file and show the failing path first.",
  "history": [
    {"role": "user", "text": "earlier user turn"},
    {"role": "assistant", "text": "earlier assistant turn"}
  ],
  "runtime": {
    "response_delay_seconds": 20,
    "unresolved_turns": 3,
    "bug_retries": 2,
    "same_issue_mentions": 2,
    "queue_depth": 1,
    "background_tasks_running": 1,
    "last_routing_outcome": {
      "mode_was": "skeptical",
      "user_followed_up_with": "still broken"
    }
  },
  "last_state": {
    "vector": {},
    "emotion_vector": {},
    "ttl_seconds": 1200
  },
  "calibration_state": {},
  "user_profile": {}
}

Malformed JSON, missing files, and top-level arrays return exit code 2 with a single-line error.

Raw Affect Audit Mode

For audit and calibration only:

{
  "host_capabilities": {
    "include_raw_emotion": true
  }
}

This adds diagnostics.internal.labels, diagnostics.internal.emotion_vector, raw state_delta, and mode_scores. Keep these fields out of normal LLM prompts.

Safety precedence: an explicit payload value of host_capabilities.include_raw_emotion=false or include_internal_diagnostics=false disables raw diagnostics even when the CLI includes --include-raw-emotion.

Runtime Commands

CommandPurpose
hostcompact production contract
runfull diagnostics
screendeterministic first pass
confirmfinal state and weight schedule
predictrisk, stall, patience, and semantic-pass budget
routerouting only
guideshort-probe guidance
overlayoverlay prompt inspection
posthocreview-pass and calibration inspection

Persistence Boundary

The core engine is stateless. It returns JSON, makes no network calls, and writes only when --output is provided.

The minimal host adapter writes three host-owned JSON files under --store-dir when persistence is enabled:

  • user_profile.json
  • last_state.json
  • calibration_state.json

Use --no-persist for read-only previews. Use --ignore-bad-store to skip corrupt store files and continue from empty values.

Integration Pattern

  1. Run host when a user turn arrives.
  2. Put guidance.system_prompt_addendum before the model's task instructions.
  3. Put overlay_prompt near the runtime metadata.
  4. Feed response_constraints into reply planning.
  5. Feed routing into queue, heartbeat, progress cadence, and subtask policy.
  6. Apply satisfaction_lock after success.
  7. Persist memory.proposed_calibration_state only in host-owned storage.

Runtime Layout

scripts/emotion_engine.py is the CLI and pipeline facade. Runtime logic lives in focused modules:

  • emotion_types.py: schema, dimensions, enums, and typed maps.
  • emotion_terms.py: terms, regexes, language detection, and counting.
  • emotion_features.py: payload, profile, history, and feature extraction.
  • emotion_scoring.py: screen, labels, mode scores, and dominant mode.
  • emotion_routing.py: prediction, analysis, routing, constraints, and state delta.
  • emotion_output.py: positive prompts, guidance, overlays, and host output.
  • emotion_utils.py: shared JSON, diagnostics, vector, and normalization helpers.

Published Bundle

ClawHub publish now ships the runtime-facing subset only:

  • SKILL.md
  • README.md
  • README.zh-CN.md
  • CHANGELOG.md
  • agents/openai.yaml
  • scripts/emotion_engine.py
  • scripts/emotion_types.py
  • scripts/emotion_terms.py
  • scripts/emotion_utils.py
  • scripts/emotion_features.py
  • scripts/emotion_scoring.py
  • scripts/emotion_routing.py
  • scripts/emotion_output.py
  • scripts/minimal_host_adapter.py
  • scripts/download_smoke.py
  • demo/local_history_event.json
  • references/examples.md
  • references/model-prompts.md
  • references/emotion-value-model.md
  • references/emotion-policy-matrix.md
  • references/integration-openclaw-hermes.md

The full GitHub repo keeps the heavier regression, audit, and calibration assets.

Validation

Published-bundle smoke:

python scripts/download_smoke.py

Runtime profiling:

python scripts/emotion_engine.py run --input demo/local_history_event.json --profile --log-level INFO --pretty

--profile adds pipeline_profile to full run output. --log-level INFO writes mode, labels, route reasons, degradation state, and total runtime to stderr, keeping stdout as valid JSON.

Full GitHub validation:

python scripts/alignment_test.py
python scripts/ablation_test.py
python scripts/smoke_test.py --seed 20260424 --strict
python scripts/independent_audit.py
python scripts/marketplace_tag_audit.py
python scripts/feature_gate_audit.py
python scripts/bundle_manifest_check.py
python -m compileall -q scripts

Current local regression results:

  • alignment: 70/70
  • ablation: 333/333
  • strict smoke: ok
  • independent audit: ok
  • download smoke: ok
  • bundle manifest: ok

Good Fit

Use it for coding-agent orchestration, repository debugging, scoped edits, verification-first replies, and closeout behavior after success.

Use a different skill for general emotional memory, roleplay, personal journaling, or long-term personality simulation.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.67%
按下载量换算2,395

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills