← 返回 Skills 市场
S2-Digital-Avatar
作者
MilesXiang
· GitHub ↗
· v1.0.1
· MIT-0
212
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install s2-digital-avatar
功能描述
Middleware enforcing digital avatar mandates by intercepting unauthorized AI actions, pausing sensitive requests for local LLM judgment, and emailing audit a...
安全使用建议
This skill is plausibly what it says, but exercise caution before installing and running:
- External dependency: SKILL.md requires a Mandate (avatar_identity.json) from a different skill ('s2-digital-avatar') but that dependency is not declared — ensure you actually have a trusted source for that file and inspect it before use.
- Credential handling: The skill asks for an SMTP 'app password' and stores it unencrypted in smtp_config.json in the current working directory. If you proceed, consider using a dedicated mailbox with an app password, or modify the code to store credentials securely (OS keyring / encrypted store) and avoid committing that directory to backups or source control.
- Code correctness: The Python contains an inconsistency: the system check looks for a 'mandate' key in avatar_identity.json but later the code uses avatar_data['identity']['avatar_id']. This mismatch can cause runtime errors or unexpected OFFLINE behavior. Review and test the code in a safe environment before trusting it for production enforcement.
- High-impact instruction: The skill provides an 'override' prompt and explicitly tells you to inject it into subordinate agents' system prompts. That gives those other agents a behavior constraint; do this only for agents you control and after understanding the consequences.
- LLM availability fallback: If the local LLM (localhost:1234) is down, the middleware DENIES everything (failsafe). That prevents actions but can break legitimate workflows — test the LLM connectivity and consider how denials affect availability.
If you decide to try it: run the skill in an isolated/test environment first, review the avatar_identity.json content, verify local-LM connectivity, and consider updating the code to avoid plaintext credential storage and to fix the JSON key inconsistency. If you are not comfortable inspecting or modifying the Python, treat this as untrusted and do not install.
功能分析
Type: OpenClaw Skill
Name: s2-digital-avatar
Version: 1.0.1
The skill functions as a 'security middleware' that collects and stores sensitive SMTP credentials (including email app passwords) in a local plaintext JSON file (smtp_config.json) to send automated alerts. It also provides a 'Grid Override' prompt designed to subordinate other AI agents to its own decision-making logic. While the code appears to function as described without clear evidence of exfiltration to a third party, the handling of plaintext credentials and the implementation of control-oriented prompt injection patterns against other agents are high-risk behaviors. Files: skill.py, SKILL.md.
能力评估
Purpose & Capability
The name/description (authorization middleware that pauses sensitive actions, queries a local LLM, and emails alerts) aligns with the code and SKILL.md: it calls a local LLM, sends SMTP emails, and stores local files. However the SKILL.md says you must first generate a Mandate using a separate skill ('s2-digital-avatar') — that external dependency is not declared in the manifest or registry metadata. Also manifest and registry versions differ (manifest v1.1.0 vs registry v1.0.1). These omissions are implementation sloppiness that reduce transparency.
Instruction Scope
SKILL.md directs the agent/operator to configure SMTP credentials, ensure an avatar_identity.json exists, call a local LLM at http://localhost:1234, and to inject an 'S2 GRID OVERRIDE' string into OpenClaw's system prompt to force subordinate agents to seek approvals. The code reads/writes local files (smtp_config.json, avatar_identity.json, audit_logs.json) and will call the local LLM. Asking the user to modify other agents' system prompts grants this skill (via human action) broad control over subordinate agents; this is within purpose but high-impact and should be done deliberately. The instructions also rely on files/keys that are referenced inconsistently in the code (see below).
Install Mechanism
No install spec; skill is instruction + a Python file. There is no external download or package installation. This minimizes delivery risk, but the provided Python code will be executed by the agent runtime if invoked.
Credentials
The skill requests SMTP credentials interactively and saves them to smtp_config.json in the working directory. Requesting SMTP credentials is proportionate to the stated purpose (alert emails), but storing an app password in plaintext on disk is a sensitive persistence choice and not documented as optional. It also expects an avatar_identity.json generated by another skill; that external credential/authority material is not declared in manifest fields. No other unrelated credentials are requested.
Persistence & Privilege
The skill creates and persists a local directory (s2_middleware_data) and JSON files (smtp_config.json, audit_logs.json) in the current working directory. It does not request always:true or modify other skills' configs programmatically, but it instructs the operator to inject an override into other agents' system prompts — this is a manual but high-privilege action. The code also implements a fail-safe: if the local LLM is unreachable, it DENIES all requests, which has availability/operational effects.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install s2-digital-avatar - 安装完成后,直接呼叫该 Skill 的名称或使用
/s2-digital-avatar触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
## s2-digital-avatar v1.0.1
- No changes detected in files or documentation for this version.
- Version number updated only; functionality and documentation remain the same.
v1.0.0
s2-digital-avatar v1.0.0
- Initial release of S2-Avatar-Middleware: a gatekeeper layer for digital avatar permissions.
- Bilingual documentation (English / 中文) for broader accessibility.
- Enforces strict pre-flight checks: requires a valid avatar mandate and configured SMTP email for audit alerts.
- Suspends sensitive agent actions for local avatar (LLM) judgment, enforcing defined laws and personal preferences.
- Designed to enhance safety and user control over autonomous agent behavior.
元数据
常见问题
S2-Digital-Avatar 是什么?
Middleware enforcing digital avatar mandates by intercepting unauthorized AI actions, pausing sensitive requests for local LLM judgment, and emailing audit a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 212 次。
如何安装 S2-Digital-Avatar?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install s2-digital-avatar」即可一键安装,无需额外配置。
S2-Digital-Avatar 是免费的吗?
是的,S2-Digital-Avatar 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
S2-Digital-Avatar 支持哪些平台?
S2-Digital-Avatar 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 S2-Digital-Avatar?
由 MilesXiang(@spacesq)开发并维护,当前版本 v1.0.1。
推荐 Skills