Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Ops Safety

ASecurity

运维安全规范。当用户执行系统级命令(sysctl、iptables、systemctl、Docker 配置、数据库 DDL) 或进行服务器运维操作时触发。 包含命令风险说明模板、回滚方案要求、问题排查原则、Docker/Cloudflare/数据库场景规则等。

1,035 stars
0 votes
0 copies
0 views
Added 5/28/2026
ai-agentsdocker

Security Analysis

A92/100
mediumUses curl or wget to download content

Scanned 5/28/2026

Install to Claude Code

$npx -y skills add doccker/cc-use-exp --skill ops-safety --agent claude-code

Installs 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.

Security grade badge for Ops Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/doccker-ops-safety/badge)](https://www.skillsdirectory.com/skills/doccker-ops-safety)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: ops-safety
description: >-
  运维安全规范。当用户执行系统级命令(sysctl、iptables、systemctl、Docker 配置、数据库 DDL)
  或进行服务器运维操作时触发。
  包含命令风险说明模板、回滚方案要求、问题排查原则、Docker/Cloudflare/数据库场景规则等。
---

# 运维安全规则

> 防止因不完整的操作导致系统故障。

---

## 1. 系统级命令规则

在给出任何系统级命令(sysctl、firewalld、iptables、systemctl 等)之前,必须先说明:

| 项目 | 说明 |
|------|------|
| **影响范围** | 这个命令会影响什么(网络、Docker、服务等) |
| **风险等级** | 高/中/低 |
| **回滚方案** | 完整的回滚步骤,包括所有依赖服务的重启 |
| **需要重启的服务** | 明确列出 |

---

## 2. 回滚方案要求

回滚方案必须包含以下步骤,缺一不可:

| 步骤 | 说明 | 示例 |
|------|------|------|
| 1. 恢复配置 | 删除或还原配置文件 | `rm -f /etc/sysctl.d/99-xxx.conf` |
| 2. 重载配置 | 重新加载系统配置 | `sysctl --system` |
| 3. 重启服务 | 重启所有受影响的服务 | `systemctl restart docker` |
| 4. 恢复应用 | 重启依赖的应用 | `docker-compose up -d` |
| 5. 验证恢复 | 确认服务正常 | `curl -I http://127.0.0.1:80` |

---

## 3. 问题排查原则

### 不扩散问题

如果 A 配置导致问题:
- ✅ 先彻底恢复 A
- ❌ 不要去改 B、C、D

### 最小改动原则

- 只修改必要的配置
- 一次只改一个变量
- 改完验证后再进行下一步

### 不动正常配置

- 用户明确说某配置正常,不要建议修改
- 不要"顺手"优化其他配置

---

## 4. 特定场景规则

### Docker 相关

修改以下配置后,必须提示重启 Docker:
- 内核网络参数(sysctl)
- iptables / firewalld 规则
- Docker daemon 配置

### 数据库操作

执行以下操作前必须提示备份:
- 表结构修改(ALTER TABLE)
- 批量数据更新(UPDATE/DELETE 无 WHERE 或影响大量数据)
- 数据库迁移

---

## 5. 禁止行为

| 禁止 | 说明 |
|------|------|
| ❌ 问题未解决时改其他配置 | 不要扩散问题 |
| ❌ 不完整的回滚方案 | 必须包含服务重启步骤 |
| ❌ 无风险说明的系统命令 | 必须先说明再执行 |
| ❌ 未经确认执行高风险命令 | 必须等用户确认 |
| ❌ 同时修改多个配置 | 一次一个,验证后再下一个 |

---

## 6. 风险等级定义

| 等级 | 定义 | 示例 |
|------|------|------|
| **高** | 可能导致服务中断、数据丢失 | 内核参数、防火墙、数据库DDL |
| **中** | 可能影响部分功能 | 应用配置、环境变量 |
| **低** | 影响范围小,易回滚 | 日志级别、非核心配置 |

Attribution

docckerdoccker
View sourceMore from doccker →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →