
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@answerdotaiAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| repo stars | ★ 6 |
|---|---|
| Last updated | July 26, 2026 |
| Repository | AnswerDotAI/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:
- Intercepts bash commands before execution
- Validates them against safecmd's allowlist using AST parsing
- Auto-approves safe commands (no permission prompt)
- 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