cc-ops-safety

Enforces risk assessment and rollback planning for shell, deployment, and database operations.

1.0k|109|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/doccker/cc-use-exp --skill cc-ops-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cc-ops-safety
Source: https://github.com/doccker/cc-use-exp/tree/main/.codex/skills/cc-ops-safety
Command: npx skills add https://github.com/doccker/cc-use-exp --skill cc-ops-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI assistants often execute environment-sensitive operations—shell commands, service restarts, container changes, database writes—without first assessing blast radius or planning rollback, leading to irreversible production incidents.

Core Features & Use Cases

  • Risk-First Workflow: Distinguishes read-only checks from write actions, requiring risk and rollback explanation before any high-impact or irreversible operation.
  • Environment Boundary Control: Enforces explicit separation between local, test, staging, and production environments so commands are never applied to the wrong target.
  • On-Demand Reference Guides: Provides detailed references for risk assessment, rollback thinking, environment scoping, and destructive actions (deletion, migration, DDL, permission changes).
  • Use Case: Before running a database migration or restarting a production service, the assistant first evaluates impact scope, states the rollback path, executes in reversible steps, and performs minimal post-change verification.

Quick Start

Ask the assistant to restart a production service or run a database migration, and it will first assess the risk, explain the rollback plan, and proceed in verifiable steps.

Frequently Asked Questions about cc-ops-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make an AI assistant safer when running shell commands?

Apply an operations safety skill that forces read-only checks before write actions and requires risk explanation for destructive commands. This skill separates inspection steps from modification steps and prefers smaller blast-radius operations.

What should an AI check before running a database migration?

Before a migration, the assistant should identify the target environment, assess whether the change is reversible, and prepare a backup or rollback path. Destructive actions like DDL, batch writes, and permission changes always require impact explanation first.

Does this skill handle coding style or code review tasks?

No. The skill explicitly excludes language style rules, formal review output formats, and general implementation details. It only activates for command execution, deployment, service, container, database, or environment-sensitive operations.

How does the skill distinguish production from local environments?

Local commands default to the local environment, while remote hosts, containers, and database instances must have their target environment stated explicitly. This prevents mixing local test commands with production operations.

When should rollback planning happen in AI-assisted operations?

Rollback planning happens before executing any change, not after failure. Operations that cannot be naturally reversed require prepared backups or recovery steps covering configuration restore, service restart, and effect verification.