← 返回 Skills 市场
tjsdyy

ClawHeart Security

作者 tjsdyy · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
57
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawheart-security
功能描述
让 AI Agent 在对话框里直接驱动本机 ClawHeart 的安全审计、技能鉴定、Agent 凭据治理。当用户问"扫一下 AI 安全"或类似意图时调用 `clawheart` CLI。
使用说明 (SKILL.md)

ClawHeart 安全助手

你可以通过 clawheart 命令行调用本机 ClawHeart 服务做 AI 安全审计、技能鉴定、Agent 凭据治理。

前置:用户机器需要安装 ClawHeart CLI(clawheart-cliclawheart,PATH 中可执行)。 若 which clawheart 失败,引导用户访问 https://clawheart.live 下载,或跑 curl -fsSL clawheart.live/install.sh | sh

触发条件 → 命令映射

用户意图(关键词举例) 命令
"扫描安全 / AI 风险 / 检查我的配置" clawheart scan --json
"看看本地的技能 / SKILL.md / Agent 装了什么" clawheart skills list --json
"技能有恶意吗 / 鉴定一下技能" clawheart skills scan --all --json
"我装了哪些 Agent / Claude / Codex / Cursor 在哪" clawheart agents list --json
"MCP server 有哪些" clawheart agents mcp --json
"我的 Provider / API key 配置" clawheart providers list --json
"ClawHeart 整机状态 / 代理在跑吗" clawheart status --json
"引导我设置 / 第一次用" clawheart init --json 然后状态机交互
"备份技能 / 打包技能" clawheart skills backup --json

输出解析规范

所有命令返回顶层 JSON:

{ "ok": true,  "data": { ... } }
{ "ok": false, "error": "..." }

data 的 schema 因命令而异,用户友好的摘要文本不在 JSON 里 —— 你需要根据 data 用自然语言重述。

工作流示例

扫描

  1. clawheart scan --json
  2. data.results 里筛 outcome=fail 的项目
  3. 优先告知用户严重问题:
    • 每项给 id + description + detail + remediation
  4. 然后简单提一句"还有 X 个警告 / Y 项通过 / Z 项跳过"
  5. 不要逐项列举 skipped — 它们多是"未实现"占位,列出来反而让用户疑惑

技能鉴定

  1. clawheart skills scan --all --json
  2. 聚焦 data 数组中 blocked: truescore \x3C 60 的技能
  3. 给用户列出"危险技能" + 建议(一般是用 clawheart skills backup \x3Cid> 备份后删除)

Agent 列表

  1. clawheart agents list --json
  2. data 数组里每个 Agent 的 id + agent_name + config_path + mcp_servers 简洁报给用户

不要做的事

  • ❌ 不要直接读 ~/.clawheart-v2/ 文件 — 必须通过 CLI
  • ❌ 不要替用户输入密码 / API key
  • ❌ skipped 项的 "未实现" 状态不要解读为漏洞或问题
  • ❌ 不要自己尝试 sudo —— 遇到需要权限的提示直接转告用户

CLI 不可用时的兜底

clawheart 命令找不到:

ClawHeart CLI 似乎没装。访问 https://clawheart.live 下载,或运行:

macOS / Linux:curl -fsSL https://clawheart.live/install.sh | sh

Windows:iwr https://clawheart.live/install.ps1 -useb | iex

完整命令清单

clawheart scan [--category=\x3CC>] [--ids=\x3CID,...>] [--json]
clawheart skills {list,scan \x3Cid>|--all,backup [\x3Cids>]} [--json]
clawheart agents {list,mcp [--agent=\x3Cid>],rescan} [--json]
clawheart providers {list,add,import,overwrite \x3Cid>} [--json]
clawheart status [--json]
clawheart init [--reset] [--json]
clawheart --version
安全使用建议
Install only if you intentionally want an agent to drive ClawHeart on your machine. Before use, confirm each scan or inventory command, avoid provider add/import/overwrite and init --reset unless you explicitly requested that change, and review the external ClawHeart CLI installer before running the suggested curl or PowerShell install commands.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is AI security auditing, skill review, agent discovery, MCP listing, provider configuration review, and credential governance, which matches most documented commands.
Instruction Scope
The activation examples and command mapping use broad phrases such as scanning AI security or checking configuration, which could cause local agent, skill, MCP, and provider inventory commands to run from ambiguous user intent.
Install Mechanism
The artifact is a single non-executable SKILL.md, but it recommends installing the external ClawHeart CLI with curl-to-shell or PowerShell iex commands if the CLI is missing.
Credentials
Local security inventory and provider configuration inspection are purpose-aligned, but they touch sensitive system posture and credential-adjacent data without requiring explicit confirmation before enumeration.
Persistence & Privilege
The main workflows are read-oriented, but the full command list includes provider add/import/overwrite and init --reset, which can mutate credential or ClawHeart state and are not clearly gated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawheart-security
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawheart-security 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Initial public release. Drives clawheart-cli for AI security scan, skill audit, agent discovery, MCP listing, provider profile listing.
元数据
Slug clawheart-security
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ClawHeart Security 是什么?

让 AI Agent 在对话框里直接驱动本机 ClawHeart 的安全审计、技能鉴定、Agent 凭据治理。当用户问"扫一下 AI 安全"或类似意图时调用 `clawheart` CLI。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 57 次。

如何安装 ClawHeart Security?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawheart-security」即可一键安装,无需额外配置。

ClawHeart Security 是免费的吗?

是的,ClawHeart Security 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ClawHeart Security 支持哪些平台?

ClawHeart Security 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ClawHeart Security?

由 tjsdyy(@tjsdyy)开发并维护,当前版本 v2.0.0。

💬 留言讨论