Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Answer.AI avatar

Safecmd

  • 6 repo stars
  • Updated July 26, 2026
  • AnswerDotAI/claude-plugins

Auto-approve safe bash commands using safecmd's allowlist validation

About

safecmd is a Claude Code skill in the Security category. Auto-approve safe bash commands using safecmd's allowlist validation

  • safecmd
  • Security
  • AI-coding skill

Safecmd by the numbers

  • Data as of Jul 26, 2026 (Skillselion catalog sync)
/plugin marketplace add AnswerDotAI/claude-plugins
/plugin install safecmd@answerdotai

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars6
Last updatedJuly 26, 2026
RepositoryAnswerDotAI/claude-plugins

What it does

Auto-approve safe bash commands using safecmd's allowlist validation

README.md

safecmd Claude Code Plugin

Auto-approve safe bash commands in Claude Code using safecmd's allowlist.

Prerequisites

Install safecmd:

pip install safecmd

Installation

claude /plugin install https://github.com/AnswerDotAI/safecmd/tree/main/claude-plugin

Or install from local path:

claude /plugin install /path/to/safecmd/claude-plugin

How It Works

This plugin adds a PreToolUse hook for the Bash tool that:

  1. Intercepts bash commands before execution
  2. Validates them against safecmd's allowlist using AST parsing
  3. Auto-approves safe commands (no permission prompt)
  4. Falls through to normal permission prompt for disallowed commands

Configuration

The allowlist is configured via safecmd's config file:

  • Linux: ~/.config/safecmd/config.ini
  • macOS: ~/Library/Application Support/safecmd/config.ini

See safecmd documentation for details on customizing the allowlist.

Related skills

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.