← 返回 Skills 市场
aibenyclaude-coder

Tetra Scar Safety

作者 aibenyclaude-coder · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
108
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tetra-scar-safety
功能描述
Agent safety that learns from incidents. Reflex arc blocks repeat threats without LLM calls.
安全使用建议
This skill appears to be what it claims: a local safety checker with an append-only incident log. Before installing, consider: (1) audit runs will read files you point it at — do not run audits over root or system directories unless you intend that; (2) safety_scars.jsonl (default ./safety_scars.jsonl) is append-only and may contain incident text that includes secrets or sensitive details — store it with restrictive file permissions, move it to a secure location, or encrypt it if needed; (3) the skill has no network or credential requirements in the provided code, but you should still review the source included in the package before enabling autonomous invocation; (4) for CI/pre-commit use, configure scar file location and retention policy to avoid leaking historical incidents. If you want higher assurance, run the included tests locally and inspect audit/recorded entries to confirm no unexpected behavior.
功能分析
Type: OpenClaw Skill Name: tetra-scar-safety Version: 0.1.0 The 'scar-safety' skill is a security utility designed to protect AI agents by detecting and blocking dangerous commands, secret exposures, and potential injection attacks. It implements a two-layer defense: a static regex-based scanner (targeting patterns like 'rm -rf', 'DROP TABLE', and leaked AWS/GitHub keys) and a 'scar' memory system that records past incidents to prevent recurrence via keyword matching. The code in 'scar_safety.py' is transparent, uses only Python standard library modules, and includes a comprehensive test suite ('test_scar_safety.py'). No evidence of data exfiltration, unauthorized remote execution, or malicious prompt injection was found; the tool's high-privilege actions (like directory auditing) are strictly aligned with its stated purpose as a safety framework.
能力评估
Purpose & Capability
Name/description (learning safety, reflex arc, blocking repeat threats) match the code and SKILL.md. The code implements built-in regex rules, an append-only scar store (safety_scars.jsonl), reflex matching, and CLI/API entry points described in SKILL.md. No unrelated requirements (no cloud creds, no unrelated binaries) are requested.
Instruction Scope
SKILL.md and the code instruct the agent to check actions, record incidents, audit directories, and list scars. This requires reading project files and writing the scar JSONL file; that behavior is coherent with the stated purpose but means the skill will read arbitrary files passed to audit and may persist incident descriptions (which could include secrets) to disk.
Install Mechanism
There is no install spec; the skill is single-file Python and uses only the stdlib. No downloads, third-party packages, or external installers are requested. This minimizes install-time risk.
Credentials
The skill requests no environment variables or external credentials (primaryEnv none). However, it reads filesystem contents during audits and writes an append-only safety_scars.jsonl file in the working directory; those files may contain sensitive information. The requested access is proportional to its purpose but carries privacy risks that the user should consider.
Persistence & Privilege
always:false and normal autonomous invocation are set (no elevated platform privileges). The skill persists scars in an append-only JSONL file (default ./safety_scars.jsonl). That persistent storage is by design but cannot be deleted/modified by the tool and may accumulate sensitive data; the skill does not appear to modify other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tetra-scar-safety
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tetra-scar-safety 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of scar-safety (version 0.1.0): - Introduces a security system that adapts by recording and blocking repeated incidents ("scars"). - Combines static threat detection (regex/heuristic) with incident-based reflex arc for instant blocking. - Implements severity levels: CRITICAL (auto-block), HIGH (warn+confirm), MEDIUM (warn), LOW (log). - CLI and Python API for safety checks, incident recording, directory audits, and scar listing. - Designed for pre-execution safety in AI agents, file writes, network requests, and pre-commit hooks.
元数据
Slug tetra-scar-safety
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Tetra Scar Safety 是什么?

Agent safety that learns from incidents. Reflex arc blocks repeat threats without LLM calls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 108 次。

如何安装 Tetra Scar Safety?

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

Tetra Scar Safety 是免费的吗?

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

Tetra Scar Safety 支持哪些平台?

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

谁开发了 Tetra Scar Safety?

由 aibenyclaude-coder(@aibenyclaude-coder)开发并维护,当前版本 v0.1.0。

💬 留言讨论