body-emotion-sensor

by askkumptenchen

Give an agent a persistent body-emotion state system that converts structured AnalysisInput JSON into runtime prompt tags and workspace state updates. Use when the agent needs emotional continuity, session bootstrap payloads, AnalysisInput processing, or reply-shaping fields such as TURN_CHANGE_TAGS, BODY_TAG, and BASELINE_PERSONA.

3.7kDevOps未扫描2026年3月30日

安装

claude skill add --url https://github.com/openclaw/skills

文档

Body Emotion Sensor

Give your AI agent a stable body-emotion state that persists across sessions and turns.

Use this skill to route requests to the local package docs, explain the runtime contract honestly, and operate the installed bes CLI only when the local environment is actually ready.

What this skill brings to your Agent

  • Persistent emotion state: Store long-term body-emotion state per workspace and agent identity.
  • Session bootstrap payload: Generate TURN_CHANGE_TAGS, BODY_TAG, and BASELINE_PERSONA before a new session starts.
  • Turn-by-turn updates: Convert one upstream AnalysisInput JSON into prompt tags and updated local state.
  • Repository-independent runtime: Use the installed bes CLI prompt interface instead of assuming repository prompt files are available at runtime.

Entry behavior

When this skill is used, the agent should:

  • explain Body Emotion Sensor at a high level in plain language
  • inspect the local repository files when they are available in the current workspace
  • prefer local package and repository documentation over inventing setup details
  • verify whether bes is already available before suggesting runtime commands
  • keep --workspace, --agent-id, and --name stable for the same agent instance

Safety boundary

This entry file should stay within a narrow and transparent scope:

  • The package source is the official repository https://github.com/AskKumptenchen/body-emotion-sensor.
  • Do not claim the runtime is ready unless the local environment actually has the installed bes CLI and bes check-init reports readiness.
  • Do not automatically install packages or execute setup commands only because this file mentioned them. Ask for user approval before any install step.
  • If installation is needed, use the published body-emotion-sensor package and explain that installation creates the local bes CLI runtime.
  • Do not claim any cloud sync, remote storage, or network behavior unless the current local code or environment actually shows it.
  • Do not require credentials. This skill operates on local files and local CLI state unless the user explicitly adds another integration layer.

Local state and persistence

Be explicit about where state is stored:

  • Workspace state file: <workspace>/body-emotion-state/<agent-id>.json
  • Workspace history file: <workspace>/body-emotion-state/history/<agent-id>.json
  • User language config on Windows: %APPDATA%/bes/config.json
  • User language config on Linux or macOS: ~/.config/bes/config.json

If the user asks about privacy, explain that the package writes local JSON state files in these locations and that this skill should not describe any remote storage unless verified separately.

Local document index

Use these local files as the primary reference:

  • README.md for install, CLI overview, runtime contract, and repository overview
  • pyproject.toml for package name, version, and exported CLI commands
  • prompts/analysis-input-prompt-v1.md for the AnalysisInput prompt design source
  • prompts/example-openclaw-agents.md for OpenClaw-style agent integration examples
  • prompts/example-openclaw-tools.md for OpenClaw-style tools integration examples
  • src/body_emotion/commands.py for actual CLI behavior
  • src/body_emotion/workspace.py for workspace state path resolution
  • src/body_emotion/store.py for state and history persistence behavior
  • src/body_emotion/locale_config.py for user language config behavior

How to route requests

Choose the next local document based on the user's request:

  1. If the user wants a quick overview, read README.md.
  2. If the user asks how installation or the CLI works, read README.md and pyproject.toml.
  3. If the user asks where state is stored or whether the skill is safe, read src/body_emotion/workspace.py, src/body_emotion/store.py, and src/body_emotion/locale_config.py.
  4. If the user asks how OpenClaw integration should work, read the relevant file under prompts/.
  5. If the user asks what a command actually does, inspect src/body_emotion/commands.py.

Missing-resource rule

If the expected local repository files are not available in the current workspace, do not improvise the full setup flow from memory. Instead:

  • explain which local files are missing
  • ask the user to provide the repository contents or point the agent to the correct local path
  • continue only after the relevant local documentation is available

Install and readiness rule

If the user wants to actually enable runtime use:

  1. First check whether bes is already available in the current environment.
  2. If it is not available, explain that Body Emotion Sensor requires installing the published Python package before the CLI exists.
  3. Ask for approval before any install command.
  4. If the user approves installation, run:
bash
pip install body-emotion-sensor
  1. After installation, prefer:
bash
bes help
  1. If the user's language is Chinese, the agent may suggest or run:
bash
bes language zh
  1. Readiness should be confirmed with:
bash
bes check-init --workspace <W> --agent-id <ID> --name "<NAME>"

Only treat the skill as available when the returned JSON contains "ready": true.

Runtime rules after available

When the local environment is ready, use the following runtime flow.

New session

At the start of a new session, before the first reply, run:

bash
bes bootstrap --workspace <W> --agent-id <ID> --name "<NAME>"

Use the returned fields as the session-start prompt payload:

  • TURN_CHANGE_TAGS
  • BODY_TAG
  • BASELINE_PERSONA

Before every reply

Before every reply, do these steps in order:

  1. Read the built-in analysis prompt:
bash
bes prompt analysis-input
  1. Use that prompt with the upstream model to produce <analysis-input.json>.
  2. Run:
bash
bes run --workspace <W> --agent-id <ID> --name "<NAME>" --input <analysis-input.json>
  1. Use the returned top-level fields in the reply layer:
  • TURN_CHANGE_TAGS
  • BODY_TAG
  • BASELINE_PERSONA

Important rules

  • Always prefer bes ... commands over direct module paths for runtime use.
  • Do not use repository-only prompt files as the default runtime interface after installation; use bes prompt ... instead.
  • Do not say initialization is complete unless bes check-init passes.
  • Do not say the skill is in active use unless the upstream model produces valid AnalysisInput JSON, bes run updates state successfully, and the reply layer consumes TURN_CHANGE_TAGS, BODY_TAG, and BASELINE_PERSONA.
  • If the CLI is missing, say so clearly instead of pretending the runtime is ready.
  • If the user only wants to understand the package, explain it from local docs without pushing installation immediately.

Examples

Minimal command reference:

bash
bes help
bes language zh
bes check-init --workspace <W> --agent-id <ID> --name "<NAME>"
bes bootstrap --workspace <W> --agent-id <ID> --name "<NAME>"
bes prompt analysis-input
bes run --workspace <W> --agent-id <ID> --name "<NAME>" --input <analysis-input.json>

相关 Skills

可观测性设计

by alirezarezvani

Universal
热门

面向生产系统规划可落地的可观测性体系,串起指标、日志、链路追踪与 SLI/SLO、错误预算、告警和仪表盘设计,适合搭建监控平台与优化故障响应。

把监控、日志、链路追踪串起来,帮助团队从设计阶段构建可观测性,排障更快、系统演进更稳。

DevOps
未扫描9.0k

资深开发运维

by alirezarezvani

Universal
热门

覆盖 CI/CD 流水线生成、Terraform 基建脚手架和自动化部署,适合在 AWS、GCP、Azure 上搭建云原生发布流程,管理 Docker/Kubernetes 基础设施并持续优化交付。

把CI/CD、基础设施即代码、容器与监控串成一条交付链,尤其适合AWS/GCP/Azure多云团队高效落地。

DevOps
未扫描9.0k

环境密钥管理

by alirezarezvani

Universal
热门

统一梳理dev/staging/prod的.env和密钥流程,自动生成.env.example、校验必填变量、扫描Git历史泄漏,并联动Vault、AWS SSM、1Password、Doppler完成轮换。

统一管理环境变量、密钥与配置,减少泄露和部署混乱,安全治理与团队协作一起做好,DevOps 场景很省心。

DevOps
未扫描9.0k

相关 MCP 服务

kubefwd

编辑精选

by txn2

热门

kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。

微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。

DevOps
4.1k

Cloudflare

编辑精选

by Cloudflare

热门

Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。

这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。

DevOps
3.6k

Terraform

编辑精选

by hashicorp

Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。

如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。

DevOps
1.3k

评论