Agent Plugins Marketplace
All plugins

block-destructive-commands

v0.2.0

Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.call hook with a Bash matcher that returns { deny } without calling next.

Claude Code

By claude-code-templatesLicense: MIT31.6k GitHub starsUpdated 2 hours ago

Directory evidence

Runtimes
Claude Code
Parsed components
0 skill or MCP entries
Source updated
Sep 24, 2026
Manifest status
Canonical path parsed

The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology

Install block-destructive-commands for Claude Code

Installs for the current user
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install block-destructive-commands@agent-plugin-marketplace

Paste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.

The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.

Get the source manually
git clone https://github.com/davila7/claude-code-templates

Clone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is cli-tool/components/mods/security/block-destructive-commands/.

Plugin files

cli-tool/components/mods/security/block-destructive-commands/
└── .claude-plugin/plugin.json

Plugin manifests1

cli-tool/components/mods/security/block-destructive-commands/.claude-plugin/plugin.json
{
  "name": "block-destructive-commands",
  "version": "0.2.0",
  "description": "Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.call hook with a Bash matcher that returns { deny } without calling next.",
  "author": {
    "name": "claude-code-templates",
    "url": "https://www.aitmpl.com"
  },
  "repository": "https://github.com/davila7/claude-code-templates",
  "license": "MIT",
  "keywords": [
    "mod",
    "function-hooks",
    "security"
  ],
  "userConfig": {
    "patterns": {
      "type": "string",
      "title": "Extra patterns",
      "description": "Comma-separated regex sources to deny on top of the built-in rules, e.g. \\bkubectl\\s+delete\\b",
      "default": ""
    }
  }
}

If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.

[block-destructive-commands on Agent Plugins Marketplace](https://pluginsmp.com/plugins/block-destructive-commands)