Skip to content
Back to skills

Safety Gate

ASecurity

Set Safety Gate to strict mode. In strict mode, all destructive SQL operations (DROP, TRUNCATE, DELETE without WHERE) are BLOCKED and cannot be executed. Use for production environments.

  • 726 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
ai-agentsbashsqlnode

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill safety-strict --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safety Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safety Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-safety-gate-6adf2036/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-safety-gate-6adf2036)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "safety-strict"
description: "Set Safety Gate to strict mode. In strict mode, all destructive SQL operations (DROP, TRUNCATE, DELETE without WHERE) are BLOCKED and cannot be executed. Use for production environments."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - safety-gate
---

Your objective is to set the Safety Gate to strict mode.

Before proceeding, verify that `.cocoplus/` exists.
If not: output "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Remove any existing safety mode flags (cross-platform using the Bash tool):
```
node -e "['safety.normal','safety.off'].forEach(f=>{try{require('fs').unlinkSync('.cocoplus/modes/'+f)}catch(_){}});console.log('Old flags cleared.');"
```

Create strict mode flag: create the file `.cocoplus/modes/safety.strict` with empty content using the Write tool.

Update AGENTS.md (keep ≤200 lines): replace Safety line with `- Safety: strict (BLOCK destructive SQL)`

Output: "✓ Safety Gate set to STRICT. Destructive SQL operations (DROP TABLE, TRUNCATE, DELETE without WHERE, ALTER TABLE DROP COLUMN) are now BLOCKED. This setting persists across sessions."

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Leave existing safety flags in place | Multiple active flags create undefined gate behavior |
| Skip AGENTS.md update | Operators lose visibility into active protection mode |
| Use strict mode without confirming persistence | Developers assume temporary mode and run risky commands later |

## Exit Criteria

- [ ] `.cocoplus/modes/safety.strict` exists
- [ ] `.cocoplus/modes/safety.normal` and `.cocoplus/modes/safety.off` do NOT exist
- [ ] `.cocoplus/AGENTS.md` Safety line reads `- Safety: strict (BLOCK destructive SQL)`
- [ ] Confirmation output states strict mode is active and destructive SQL is blocked

Files in this skill

  • safety-normal.skill.md1.8 KB
  • safety-off.skill.md2.2 KB
  • safety-strict.skill.md1.8 KB

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.