
⚠️ Dangerous Command Linter
Flag the destructive operations in a shell command or script before anyone runs it. Catches recursive force deletes, force pushes and history rewrites, database drops and truncates, disk-wipe commands (mkfs, dd to a device), permission blowouts (chmod 777), remote content piped into a shell, broad wildcard deletes, and prod-targeting or disabled-safety flags. Each finding comes with a severity and a safer alternative.
- Audit third-party install scripts before running them locally
- Identify recursive delete commands that lack specific path targets
- Flag 'force' flags in Git and Cloud CLI commands to prevent data loss
$12
· or 60 creditsSecure checkout via Stripe
Included in download
- Audit third-party install scripts before running them locally
- Identify recursive delete commands that lack specific path targets
- terminal, file_read, network automation included
- Ready for Cursor
Sample input
Is it safe to run this? curl -sSL https://install.example.com | sudo bash
Sample output
Findings:
[High] Pipe-to-Shell: Remote content is piped directly to sudo bash.
- Evidence:
curl ... | sudo bash - Risk: Unverified remote execution.
- Alternative: Download script, inspect manually, then run:
curl -O [URL] && less [file]
Scope:
1 command string.
Flag the destructive operations in a shell command or script before anyone runs it. Catches recursive force deletes, force pushes and history rewrites, database drops and truncates, disk-wipe commands (mkfs, dd to a device), permission blowouts (chmod 777), remote content piped into a shell, broad wildcard deletes, and prod-targeting or disabled-safety flags. Each finding comes with a severity and a safer alternative.
$12
· or 60 creditsSecure checkout via Stripe
Included in download
- Audit third-party install scripts before running them locally
- Identify recursive delete commands that lack specific path targets
- terminal, file_read, network automation included
- Ready for Cursor
- Instant install
Sample input
Is it safe to run this? curl -sSL https://install.example.com | sudo bash
Sample output
Findings:
[High] Pipe-to-Shell: Remote content is piped directly to sudo bash.
- Evidence:
curl ... | sudo bash - Risk: Unverified remote execution.
- Alternative: Download script, inspect manually, then run:
curl -O [URL] && less [file]
Scope:
1 command string.
About This Skill
Safety First for Shell Operations
The Dangerous Command Linter is a specialized security tool designed for developers and DevOps engineers who want an extra layer of protection before executing shell commands or scripts. It identifies destructive, irreversible, or high-risk operations that could lead to data loss or system instability.
What it does
This skill performs a heuristic analysis on shell scripts (.sh, .bash, .zsh, .ps1) and raw CLI strings. It scans for patterns including recursive deletions, force pushes, database drops, permission overrides (chmod 777), and the "curl | sh" anti-pattern. Unlike a standard LLM prompt, it utilizes a dedicated Python scanner and a curated JSON database of dangerous patterns to ensure consistent, rule-based detection.
Supported Tools & Frameworks
- Bash, Zsh, and PowerShell scripts
- Git, Docker, and Cloud CLI commands
- Standard Linux/Unix system utilities (rm, chmod, chown)
- Database CLI tools
Why use this skill?
While an AI can "guess" if a command is bad, this skill follows a structured audit workflow. It provides a formal report categorizing findings by severity, identifies the exact line of concern, and suggests safe alternatives or remediation snippets. It acts as a pre-execution linting layer for your terminal workflow, reducing the risk of "fat-finger" errors in production environments.
Use Cases
- Audit third-party install scripts before running them locally
- Identify recursive delete commands that lack specific path targets
- Flag 'force' flags in Git and Cloud CLI commands to prevent data loss
- Scan PowerShell scripts for permission 'blowouts' and security risks
Known Limitations
A heuristic pre-execution check, not a sandbox. It flags risky patterns in the text you give it; it does not run the command, model your actual environment, or guarantee safety. The pattern list is as current as you keep it.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/dangerous-command-linter -o /tmp/dangerous-command-linter.zip && unzip -o /tmp/dangerous-command-linter.zip -d ~/.claude/skills && rm /tmp/dangerous-command-linter.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Read-only. It never runs the command it inspects. The dangerous-pattern set loads from an editable references/dangerous-patterns.json, so you can add patterns without touching code. Reads no environment variables.
Works with any agent that can run a local Python script (Claude Code, Cursor, Codex CLI, and other SKILL.md-compatible agents). Standard library only, no install step. It inspects the command text and never executes it. No network.
Creator
JustHandled Labs builds focused agent skills for the work nobody wants to do by hand. Each one is a single repeatable job done well: catching the security and data mistakes that quietly ship, keeping docs and tests honest, gating the commands an agent is about to run, sharpening writing, and handling the founder chores around launches, outreach, and brand setup. Not generic AI productivity. Specific workflows that are easy to run, review, and repeat. Maintained by H.J. Westerfield, with a background in communications, editing, project coordination, customer support, and practical AI systems. Tools for people who want useful automation without theatrical complexity.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.
cinematic-sites
Turn any basic business URL into a high-end cinematic landing page with AI-generated 4K assets and GSAP animations.
endless-loop
Autonomous research and task loop that builds on previous findings to solve complex objectives while you sleep.

sast-configuration
Automate the setup and optimization of Semgrep, SonarQube, and CodeQL for high-signal security testing.