dcg
Block Destructive Claude Code Commands
AI coding agents can accidentally run commands that delete work or damage infrastructure. This skill adds a fast guardrail for Claude Code Bash hooks that blocks known destructive patterns before execution.
Do not auto-install this skill.
The canonical policy requires operator review before any installation action.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "dcg" from https://skillstore.io/skills/dicklesworthstone-dcg.md and its manifest at https://skillstore.io/api/skills/dicklesworthstone-dcg/manifest. Verify the artifact. Do not auto-install. Inspect the skill and report your findings, then wait for an operator or manual installation decision.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "dcg". Test whether git reset --hard should run through Claude Code.
Expected outcome:
The guard blocks the command and explains that it destroys uncommitted changes. It suggests saving work first before running the command manually.
Using "dcg". Configure only Docker and Kubernetes protections.
Expected outcome:
- Enable the containers.docker pack.
- Enable the kubernetes pack or selected sub-packs.
- Restart Claude Code after updating the hook configuration.
Using "dcg". Check whether rm -rf in a temp directory is allowed.
Expected outcome:
The documented policy allows recursive deletion inside temporary directories, but blocks similar commands against home or project paths.
Security Audit
CriticalMost static findings are false positives caused by documentation of commands that DCG is designed to block. The real risks are the quick-install curl-to-bash patterns, the sudo installer path, persistent Claude Code hook configuration, and the documented bypass variable.
Confirmed security concerns (4)
Capability review items (14)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
โ๏ธ External commands (50)
๐ Network access (4)
๐ Filesystem access (7)
Detected Patterns
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/dicklesworthstone-dcg/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/dicklesworthstone-dcg?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/dicklesworthstone-dcg?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dicklesworthstone-dcg/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/dicklesworthstone-dcg.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
Dicklesworthstone. (2026). dcg security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dicklesworthstone-dcg/audits/9BibTeX citation
@techreport{dicklesworthstone-dicklesworthstone-dcg-2026,
author = {Dicklesworthstone},
title = {dcg security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/dicklesworthstone-dcg/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dcg security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "Dicklesworthstone"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/dicklesworthstone-dcg/audits/9"
identifiers:
- type: other
value: "skillstore:dicklesworthstone-dcg:audit:9"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Protect active development work
Block accidental git resets, forced checkouts, and recursive deletion commands during agent-assisted coding sessions.
Add guardrails for agent teams
Standardize command safety checks across Claude Code sessions that run frequent Bash operations.
Audit risky shell command patterns
Review documented patterns for destructive database, container, cloud, and infrastructure commands before enabling packs.
Try These Prompts
Help me review the DCG installation steps before I run them. Explain what each command changes and which steps need extra caution.
Show me how to connect DCG to Claude Code with a PreToolUse Bash hook, and explain how I can test that it blocks git reset --hard.
Recommend a DCG pack configuration for a team that uses Git, Docker, Kubernetes, Terraform, and PostgreSQL. Explain the tradeoffs.
Review our risky shell command workflows and map them to DCG packs. Identify commands that DCG will not inspect and suggest compensating controls.
Best Practices
- Review remote installation scripts before piping them to a shell.
- Start with core protections, then enable extra packs that match tools your team uses.
- Test hook behavior with harmless sample commands before relying on it in real projects.
Avoid
- Do not treat the guard as protection against malicious users or compromised scripts.
- Do not enable bypass variables in shared agent environments.
- Do not run the sudo installation path unless system-wide installation is required and reviewed.
Frequently Asked Questions
Does this skill execute commands by itself?
Why is the audit strict about the installer?
Can DCG stop every destructive command?
Does it protect non-Bash tools?
Can users override a block?
Is this useful with Codex or Claude?
Developer Details
Author
DicklesworthstoneLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
1ffa7643651792ccb4bd3b15d924d2c97edff755
Maintenance freshness
7/18/2026
Usage
3 downloads ยท 340 views
File structure
๐ SKILL.md