# Send DCG Guard to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "dcg-guard",
    "name": "DCG Guard",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/StarenseN/dcg-guard",
    "canonicalUrl": "https://clawhub.ai/StarenseN/dcg-guard",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/dcg-guard",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dcg-guard",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "AGENT_INSTRUCTIONS.md",
      "SKILL.md",
      "index-windows-hybrid.ts",
      "index.ts",
      "install.sh",
      "openclaw.plugin.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "dcg-guard",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T08:25:46.168Z",
      "expiresAt": "2026-05-09T08:25:46.168Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dcg-guard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dcg-guard",
        "contentDisposition": "attachment; filename=\"dcg-guard-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "dcg-guard"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/dcg-guard"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/dcg-guard",
    "downloadUrl": "https://openagent3.xyz/downloads/dcg-guard",
    "agentUrl": "https://openagent3.xyz/skills/dcg-guard/agent",
    "manifestUrl": "https://openagent3.xyz/skills/dcg-guard/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/dcg-guard/agent.md"
  }
}
```
## Documentation

### DCG Guard

An OpenClaw plugin that hard-blocks dangerous shell commands before they execute. Works on any OpenClaw installation (Windows, macOS, Linux, local, VPS, anywhere). No binary dependencies required.

### What It Does

Intercepts every exec/bash tool call via OpenClaw's before_tool_call plugin event. Pipes the command through DCG (Dangerous Command Guard). Safe commands pass silently with zero overhead. Dangerous commands are blocked before execution.

Blocked (Unix): rm -rf ~, git push --force, git reset --hard, git clean -fd, git branch -D
Blocked (Windows): Remove-Item -Recurse -Force, rd /s /q, del /s, Format-Volume, reg delete HKLM
Allowed: ls, cat, echo, git status, npm install, dir, Get-ChildItem

### Install

# After clawhub install dcg-guard:
bash install.sh

Or manually:

# 1. Install DCG binary
curl -sSL https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh | bash

# 2. Link plugin into OpenClaw
openclaw plugins install -l /path/to/dcg-guard
openclaw gateway restart

### How It Works

Agent calls exec with a command
Plugin intercepts via before_tool_call (runs before execution)
Command is checked against built-in rules (cross-platform, <1ms, no subprocess)
If no built-in match and DCG binary is installed, command is piped to DCG (~27ms)
Safe: silent passthrough, agent never knows the plugin exists
Dangerous: { block: true } returned to OpenClaw, command never executes

v1.1.0: Built-in rules work without the DCG binary. DCG binary is optional (adds extra unix rules). Windows fully supported out of the box.

### Security

No shell interpolation. Commands are passed to DCG via stdin using execFileSync (not execSync). No injection risk.
Fail-open. If DCG binary is missing or crashes, commands pass through. The plugin never deadlocks your agent.
Zero dependencies. Only requires the DCG binary (single Go binary, no runtime deps).

### Configuration

Optional, in openclaw.json under plugins.entries.dcg-guard.config:

{
  "enabled": true,
  "dcgBin": "/custom/path/to/dcg"
}

Default DCG path: ~/.local/bin/dcg

Override with env var: DCG_BIN=/path/to/dcg

### Agent Instructions (optional)

Add to your workspace AGENTS.md:

When a command is blocked by DCG Guard, do NOT retry it.
Ask the user for explicit permission before attempting any alternative.
The block exists because the command is destructive or irreversible.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: StarenseN
- Version: 1.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T08:25:46.168Z
- Expires at: 2026-05-09T08:25:46.168Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/dcg-guard)
- [Send to Agent page](https://openagent3.xyz/skills/dcg-guard/agent)
- [JSON manifest](https://openagent3.xyz/skills/dcg-guard/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/dcg-guard/agent.md)
- [Download page](https://openagent3.xyz/downloads/dcg-guard)