运维安全详细规范。当涉及系统配置变更、核心服务重启、文件权限修改时激活。要求提供风险评估和回滚方案。
Scanned 9/5/2026
Install to Claude Code
npx -y skills add doccker/cc-use-exp --skill ops-safety --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Ops Safety?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/doccker-ops-safety-28c91265)More formats (shields.io, HTML) on the badges page.
---
name: ops-safety
description: 运维安全详细规范。当涉及系统配置变更、核心服务重启、文件权限修改时激活。要求提供风险评估和回滚方案。
---
<instructions>
# 运维安全详细规范
在执行任何可能影响生产环境稳定性的命令前,必须遵循本规范。
---
## 🚨 风险分级与评估
| 等级 | 操作类型 | 要求 |
|------|---------|------|
| **高** | 磁盘分区、内核参数修改、全局防火墙变更 | **必须** 等待用户二次确认 ⏸️ |
| **中** | 服务重启、关键配置覆盖、权限递归修改 | 必须说明回滚方案并备份原文件 |
| **低** | 日志查看、单文件只读操作、临时目录清理 | 直接执行并报告结果 |
---
## 🛡️ 回滚方案模板
任何高/中风险变更必须附带回滚步骤:
1. **备份状态**:`cp config.conf config.conf.bak_$(date +%F)`
2. **恢复命令**:`mv config.conf.bak_xxx config.conf && systemctl restart xxx`
---
## ⚠️ 核心禁止项
- ❌ 禁止在未确认原文件存在的情况下直接 `mv` 或 `rm`。
- ❌ 禁止使用 `>` 覆盖重要配置文件。必须先 `cat` 原内容,再生成新内容并备份。
- ❌ 禁止在故障排除期间修改与故障点无关的“性能优化”参数。
---
> 📋 本回复遵循:`ops-safety` - [章节]
</instructions>Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!