首页 / Skills 目录 / 精选索引 / Safety Guard — Prevent Destructive Operations
loulanyue / awesome-claude-notes

Safety Guard — Prevent Destructive Operations

- When working on production systems - When agents are running autonomously (full-auto mode) - When you want to restrict edits to a specific directory - During sensitive operations (migrations, deploys, data changes)

core - 许可证明确许可证 MIT高风险265 Stars更新 2026-07-17
  • A许可证宽松许可证,通常可商用
  • B维护最近 30 天内更新
  • D安全命中高危行为,需逐行审阅
仓库
loulanyue/awesome-claude-notes
目录
skills/safety-guard
质量分
58.00
安全规则命中
3 项,使用前请阅读 SKILL.md

打开 Skill 目录 查看 SKILL.md 原文 在目录中搜索

安装到你的 Agent

命令默认装到 ~/.claude/skills/(Claude Code 全局目录)。Codex / Cursor 等其他 Agent 请换成它们各自的 skills 目录;只对当前项目生效时改成 .claude/skills/。运行前请先看一眼下面的安全体检。

只装 SKILL.md(最快)
mkdir -p ~/.claude/skills/safety-guard-prevent-destructive-operations && curl -fsSL https://raw.githubusercontent.com/loulanyue/awesome-claude-notes/8481e67a3d17d5a2a0821901029862b526477b18/skills/safety-guard/SKILL.md -o ~/.claude/skills/safety-guard-prevent-destructive-operations/SKILL.md
连同附件一起装(推荐)
git clone --depth 1 --filter=blob:none --sparse https://github.com/loulanyue/awesome-claude-notes /tmp/safety-guard-prevent-destructive-operations-src && git -C /tmp/safety-guard-prevent-destructive-operations-src sparse-checkout set skills/safety-guard && cp -r /tmp/safety-guard-prevent-destructive-operations-src/skills/safety-guard ~/.claude/skills/safety-guard-prevent-destructive-operations

在本页阅读 SKILL.md

原文实时取自 GitHub(按提交哈希锁定的版本)。命中安全规则的行会被标红,并附中文解释。

安全体检报告

高风险 命中 3 条安全规则,许可证判定:宽松许可证。

  • 高危删除命令包含 rm -rf 类不可逆命令。destructive_rm
  • 提权包含 sudo / 管理员权限相关操作。privilege_escalation
  • 修改执行权限会给文件加上可执行权限。exec_permission

许可证:MIT · 通常可商用,保留版权声明即可。

评估基于对公开 SKILL.md 的自动扫描,不替代人工审阅,也不构成法律建议。

本站只保存元数据与外链,不转存 SKILL.md 正文。引用或商用前请自行确认上游许可证与权限边界。数据快照来自公开仓库,可能滞后于上游。