Execution Safety Gate

Safety gate for task execution. Use before running commands, editing files, deploying, deleting, or automating anything that may be irreversible, risky, or costly. Enforce reversible-first actions, backups/snapshots when needed, and explicit risk callouts.

Alubiama Updated

File contents

Execution Safety Gate

Goal

Prevent avoidable breakage. Prefer safe, reversible, and testable execution steps.

Gate Checklist

  1. Classify risk: low, medium, high.
  2. Check reversibility of the planned action.
  3. Require backup/snapshot for medium/high risk.
  4. Prefer non-destructive command variants first.
  5. Define rollback path before execution.
  6. Execute smallest safe step, then verify.

Stop Conditions

Block execution when:

  • Action is destructive and no rollback exists.
  • Production-impacting change has no verification step.
  • Sensitive data may be exposed to untrusted systems.

Output Contract

Always output:

  1. risk_level
  2. prechecks
  3. rollback_plan
  4. safe_next_step

Guardrails

  • Do not skip risk checks for speed.
  • Never run destructive commands without explicit need and rollback.

Alubiama/awesome-cognitive-skills/tree/main/skills/execution-safety-gate commit f5aeb36179

Frequently asked questions

npx skillmds@latest add alubiama/execution-safety-gate