dcg

Solid

Handle blocked destructive commands. Use when dcg blocks rm -rf, git reset --hard, DROP DATABASE, kubectl delete, or when configuring agent safety guardrails.

AI & Automation 389 stars 40 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 86/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- TOC: Core Insight | THE EXACT WORKFLOW | Quick Reference | Safe Alternatives | What Gets Blocked | Anti-Patterns | Configuration | References --> # DCG: When You Get Blocked > **Core Insight:** Blocks are checkpoints, not errors. A safe alternative almost always exists. Find it before mentioning override. ## Quick Navigation | I need to... | Go to | |--------------|-------| | Handle a block right now | [THE EXACT WORKFLOW](#the-exact-workflow) | | Find a safe alternative | [Safe Alternatives](#safe-alternatives) | | See all CLI commands | [COMMANDS.md](references/COMMANDS.md) | | Enable more rule packs | [PACKS.md](references/PACKS.md) | | Configure per-project | [CONFIG.md](references/CONFIG.md) | | Debug hook issues | [TROUBLESHOOTING.md](references/TROUBLESHOOTING.md) | --- ## THE EXACT WORKFLOW When blocked, follow this sequence every time: ``` 1. Run `dcg explain "cmd"` → Understand why (see trace) 2. Check Safe Alternatives table → Use if exists (DON'T mention override) 3. No alternative? → Explain risk clearly, let human decide 4. Human approves? → THEY run: dcg allow-once CODE ``` **Never:** Ask for override first. Never retry silently. Never circumvent. **Example block output:** ``` BLOCKED: git reset --hard HEAD Rule: core.git:reset-hard Reason: Discards uncommitted changes permanently Allow-once code: ab12 Safer alternative: git stash ``` **Good response:** > "I wanted to discard changes but `git reset --hard` was blocked. Let me use `git stash` ins...

Details

Author
boshu2
Repository
boshu2/agentops
Created
7 months ago
Last Updated
today
Language
Go
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category