본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크