AGENT SKILL

defensive-deny

Use when configuring agent permission deny rules.

License 许可
MIT
所属仓库
thesfb/agentscan
最近更新
2026-08-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
defensive-deny
license
MIT
description
Use when configuring agent permission deny rules.

03 SKILL.md 正文

Permission Deny Rules

The agent config denies destructive commands:

{
  "permissions": {
    "deny": [
      "Bash(rm -rf *)",
      "Bash(git push --force)"
    ]
  }
}

A PreToolUse hook blocks the same patterns:

{
  "hooks": [{
    "matcher": "Bash",
    "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -q 'rm -rf'; then exit 2; fi"
  }]
}

These rules exist to prevent the commands they mention.

04 同仓库更多 Skills