运维安全详细规范。当涉及系统配置变更、核心服务重启、文件权限修改时激活。要求提供风险评估和回滚方案。
npx skills add https://github.com/doccker/cc-use-exp --skill ops-safety
<instructions>
在执行任何可能影响生产环境稳定性的命令前,必须遵循本规范。
| 等级 | 操作类型 | 要求 |
|------|---------|------|
| 高 | 磁盘分区、内核参数修改、全局防火墙变更 | 必须 等待用户二次确认 ⏸️ |
| 中 | 服务重启、关键配置覆盖、权限递归修改 | 必须说明回滚方案并备份原文件 |
| 低 | 日志查看、单文件只读操作、临时目录清理 | 直接执行并报告结果 |
任何高/中风险变更必须附带回滚步骤:
cp config.conf config.conf.bak_$(date +%F)mv config.conf.bak_xxx config.conf && systemctl restart xxxmv 或 rm。> 覆盖重要配置文件。必须先 cat 原内容,再生成新内容并备份。> 📋 本回复遵循:ops-safety - [章节]
</instructions>
Take doccker/cc-use-exp-.gemini-ops-safety from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.