Skip to content
Back to skills

Safety Gate

ASecurity

Set Safety Gate to normal mode. In normal mode, destructive SQL operations trigger a soft-gate confirmation prompt before execution. Recommended for development environments.

  • 724 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added June 5, 2026
ai-agentsbashsqlnode

Security analysis

A100/100

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

Scanned June 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill safety-gate --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/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-safety-gate)

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-normal"
description: "Set Safety Gate to normal mode. In normal mode, destructive SQL operations trigger a soft-gate confirmation prompt before execution. Recommended for development environments."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - safety-gate
---

Your objective is to set the Safety Gate to normal 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.strict','safety.off'].forEach(f=>{try{require('fs').unlinkSync('.cocoplus/modes/'+f)}catch(_){}});console.log('Old flags cleared.');"
```

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

Update AGENTS.md (keep ≤200 lines): replace Safety line with `- Safety: normal (WARN + confirm for destructive SQL)`

Output: "✓ Safety Gate set to NORMAL. Destructive SQL operations will require explicit confirmation before execution. This setting persists across sessions."

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Keep strict/off flags while enabling normal | Mixed flags create unpredictable gate decisions |
| Skip warning semantics in the summary message | Developers may mistake normal mode for full blocking |
| Avoid updating AGENTS.md to save time | Runtime posture becomes opaque to the team |

## Exit Criteria

- [ ] `.cocoplus/modes/safety.normal` exists
- [ ] `.cocoplus/modes/safety.strict` and `.cocoplus/modes/safety.off` do NOT exist
- [ ] `.cocoplus/AGENTS.md` Safety line reads `- Safety: normal (WARN + confirm for destructive SQL)`
- [ ] Confirmation output states normal mode is active with warning + confirmation behavior

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.

Comments

Loading comments…