कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

dcg-guard

starensen द्वारा

Coding Agents & IDEs
459clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Hard-blocks dangerous shell commands (rm -rf, git push --force, etc.) before execution via OpenClaw's.

विवरण

यह स्किल क्या करती है

DCG Guard intercepts every shell command before execution and blocks dangerous ones like `rm -rf`, `git push --force`, and Windows equivalents such as `Remove-Item -Recurse -Force`. Safe commands pass through silently with no added latency. Built-in rules work without the DCG binary; the binary is optional and adds extra Unix-specific checks.

Blocks commands before they reach the shell, so dangerous operations never execute, unlike post-execution logging or manual review workflows.

इसे कब इस्तेमाल करें

  • Blocking accidental recursive deletions during agent file cleanup tasks
  • Preventing force pushes to shared git repositories
  • Stopping irreversible Windows registry deletes in automated workflows
  • Catching destructive git branch deletions before they run
  • Guarding against disk format commands in agent sessions

उदाहरण वर्कफ़्लो

इनपुट

User asks: Clean up the project by removing all build artifacts

एजेंट
  1. 1

    Agent calls exec tool with rm -rf ./dist

  2. 2

    DCG Guard intercepts the call via before_tool_call hook

  3. 3

    Command is checked against built-in dangerous command rules

  4. 4

    Command matches the rm -rf pattern and is flagged as dangerous

  5. 5

    Plugin returns { block: true } to OpenClaw, command never executes

आउटपुट

Command blocked; agent is notified and must request explicit user permission before retrying

इंस्टॉलेशन

clawhub install starensen/dcg-guard

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक