SKILL

safety-guard

通过三种模式防范破坏性操作:Careful 拦截危险命令(rm -rf、git push --force、DROP TABLE)以请求确认,Freeze 将写入锁定到一个目录,Guard 结合两者。提示性:智能体自行应用这些规则;不附带任何钩子。在生产系统上工作、自主运行智能体、限制对某个目录的编辑,或在迁移、部署和数据变更期间使用。

机器翻译
查看英文原文

Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard combines both. Advisory: the agent applies these rules itself; no hook ships with it. Use when working on production systems, running agents autonomously, restricting edits to a directory, or during migrations, deploys, and data changes.

适用对象:软件开发与测试。自动收录 · 待核查。

在 Claude Code 中使用

该组合的专门教程待补充,尚未核实适配。

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

选择已有说明的 AI 工具,或在页面加载后保存待办及提出教程请求。

查看原作者说明 ↗