返回顶部
a

agent-safety

Outbound safety for autonomous AI agents — scans YOUR output before it leaves the machine. Git pre-commit hooks that automatically block commits containing API keys, tokens, PII, or secrets. Unlike inbound scanners (Skillvet, IronClaw), this protects against what YOU accidentally publish. Use when committing to git repos, publishing to GitHub, or running periodic system health checks. Automated enforcement at the git level — not prompts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
717
下载量
0
收藏
概述
安装方式
版本历史

agent-safety

# Agent Safety Automated safety tools for autonomous AI agents. The principle: **don't rely on prompts for safety — automate enforcement.** All scripts are in this skill's `scripts/` directory. When OpenClaw loads this skill, resolve paths relative to this file's location. ## Pre-Publish Security Scan Scans files for secrets, PII, and internal paths before publishing. ```bash bash scripts/pre-publish-scan.sh <file-or-directory> ``` **Detects:** - API keys (AWS, GitHub, Anthropic, OpenAI, generic patterns) - Private keys (PEM blocks), Bearer tokens, hardcoded passwords - Email addresses, phone numbers, SSNs, credit card patterns - Physical addresses, name fields - Home directory paths, internal config paths **Exit 0** = clean. **Exit 1** = blocking issues found, do not publish. ## Git Pre-Commit Hook Install once per repo. Automatically scans staged files on every commit: ```bash bash scripts/install-hook.sh <repo-path> ``` - Scans staged content (what's being committed, not working tree) - Blocks commit if secrets or SSNs found - Flags PII for review - Only bypassed with explicit `git commit --no-verify` **Install this on every repo you work with.** It's the real guardrail. ## Health Check System monitoring for disk, workspace, security, and updates: ```bash bash scripts/health-check.sh ``` **Checks:** Disk usage, workspace size, memory file growth, OpenClaw version, macOS updates, firewall status, SIP status. Run periodically (every few heartbeats). Watch for warnings. ## Rules 1. Run pre-publish scan before ANY external publish action 2. Install pre-commit hook on EVERY repo you work with 3. Blocking issues (secrets, SSNs) must be fixed — no override 4. Review items (emails, paths) need human judgment 5. If a secret was ever committed, it's compromised — rotate immediately

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-safety-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-safety-1776419934 技能

通过命令行安装

skillhub install agent-safety-1776419934

下载 Zip 包

⬇ 下载 agent-safety v1.0.0

文件大小: 8.4 KB | 发布时间: 2026-4-17 18:21

v1.0.0 最新 2026-4-17 18:21
Initial release of agent-safety: automated outbound safety tools for autonomous AI agents.

- Scans output for secrets, tokens, PII, and internal paths before files leave your machine.
- Includes a git pre-commit hook to block commits with API keys, passwords, or sensitive info.
- Provides a pre-publish security scanner for files and directories.
- Adds a health-check script for monitoring system and workspace security.
- Designed for automated enforcement at the git level; does not rely on prompts.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部