More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Shell Script Safety Check

    1

    rm -rf "$DIR/"* deletes everything when DIR is empty, and one eval "$cmd" lets anyone who controls the text run commands.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Shell Script Safety Check

    Shell Script Safety Check

    Example session with this skill installed

    Check this project with shell-script-safety-check.

    • Read your context and instructions
    • Compiled the shell script safety

    $ python3 scripts/check_shell.py examples/risky
    BLOCK scripts/deploy.sh:5 S02 SECRET_IN_SCRIPT
    DEPLOY_TOKEN="<redacted>"
    Why: A password, token or key is written in the script (an assignment, curl -u user:password, an Authorization header, mysql -pPASSWORD, sshpass -p or --password=). Everyone with the repository can use it, and command-line passwords also show up in ps output and shell history.
    Safer: Read secrets from the environment or a secret manager (${API_TOKEN:?}), use files with 600 permissions (~/.my.cnf, ~/.netrc) instead of command-line passwords, and change the secret that was committed.

    BLOCK scripts/deploy.sh:11 S03 RM_RF_CAN_HIT_ROOT
    BLOCK scripts/deploy.sh:18 S01 EVAL_OF_VARIABLE
    REVIEW scripts/deploy.sh:3 S16 TRACE_SHOWS_SECRETS
    REVIEW scripts/deploy.sh:8 S11 DOWNLOAD_PIPED_TO_SHELL
    REVIEW scripts/deploy.sh:8 S13 TLS_OR_HOST_CHECK_OFF
    REVIEW scripts/deploy.sh:10 S17 CD_NOT_CHECKED
    REVIEW scripts/deploy.sh:14 S12 UNQUOTED_VARIABLE_IN_FILE_COMMAND
    REVIEW scripts/deploy.sh:20 S14 WORLD_WRITABLE
    REVIEW scripts/deploy.sh:21 S15 PREDICTABLE_TEMP_FILE
    REVIEW scripts/deploy.sh:22 S13 TLS_OR_HOST_CHECK_OFF

    (Each finding also has Why and Safer lines, as in the first one.)
    Verdict: BLOCK. Checked 1 file, 1 with shell script content.
    This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    rm -rf "$DIR/"* deletes everything when DIR is empty, and one eval "$cmd" lets anyone who controls the text run commands. This skill finds those and eight other shell script mistakes before you run or ship your scripts, and tells you how to fix each one.

    Your agent runs a scanner on .sh, .bash and .zsh files, scripts with a shell shebang (such as bin/deploy and git hooks) and shell startup files. It skips comments, knows single and double quotes, treats heredoc bodies as data, and knows the usual guards (${DIR:?}, [ -n "$DIR" ], || exit, set -e). It never runs the script. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.

    What it checks

    BLOCK

    • S01: eval of a variable or argument
    • S02: passwords and tokens in assignments, curl -u, Authorization headers, mysql -p or sshpass
    • S03: rm -r on "$DIR/"* or $DIR/ when DIR may be empty, or rm -rf /

    REVIEW

    • S11: curl or wget piped into a shell
    • S12: unquoted variables in rm, mv, cp, chmod and chown
    • S13: curl -k, wget --no-check-certificate or StrictHostKeyChecking=no
    • S14: chmod 777, o+w or umask 000
    • S15: writes to fixed file names in /tmp
    • S16: set -x in a script that uses secrets
    • S17: cd without a check before rm -r

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason and safer approach for each rule
    • A risky and a safe example deploy script, and the real report the scanner produces on the risky one

    Limits It reads each script line by line: sourced files, functions from other files and commands built across several variables are not followed, and shell code inside Dockerfiles, CI YAML or Makefiles is not read. NOT FLAGGED is not a guarantee.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Static check of shell script text. Sourced files and commands built across variables are not followed. NOT FLAGGED is not a guarantee.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example script includes a clearly fake, inert token (not-a-real-...) for the scanner to find. It is never run.

    Listed7 days ago
    Updated4 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It reads your scripts as text. It never runs them or any command in them.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    New in Security