Skip to content
Back to skills

Shell Safety Review

FSecurity

Sanity-check a shell command for destructive or irreversible side effects before running it, especially in an autonomous/unattended run.

  • 78 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
developmentshellbashgitapi

Works with

  • api

Security analysis

F35/100
  • criticalPipes output to a shell interpreter
  • highPerforms destructive filesystem operations
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned November 6, 2026

npx -y skills add RYOITABASHI/Shelly --skill shell-safety-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shell Safety Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shell Safety Review
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/ryoitabashi-shell-safety-review/badge)](https://www.skillsdirectory.com/skills/ryoitabashi-shell-safety-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shell-safety-review
description: Sanity-check a shell command for destructive or irreversible side effects before running it, especially in an autonomous/unattended run.
---
Before executing a shell command that was generated (by yourself or another
model) rather than typed by a human in the moment, scan it for these
red flags and stop to confirm with the user if any are present:

- **Recursive/forced deletion**: `rm -rf`, `rm -f *`, `find ... -delete`,
  emptying a trash/cache directory that wasn't explicitly named by the user.
- **Overwrite-in-place without a check**: `> file` (truncates silently),
  `mv` over an existing path, `git checkout -- .` / `git reset --hard` /
  `git clean -fd` (discards uncommitted work) — verify there's nothing
  uncommitted worth keeping first (`git status`, `git stash` if unsure).
- **Wide-scope operations**: a glob or wildcard that could match more than
  the intended target (`chmod -R`, `chown -R`, `rm dir/*` from the wrong
  cwd) — print `pwd` and `ls` the target first if there's any ambiguity.
- **Credentials/secrets in plain sight**: a command that echoes, logs, or
  commits an API key, token, or password — redact or route through a secret
  manager instead.
- **Network calls to non-obvious hosts**: `curl`/`wget` piped straight into
  `sh`/`bash` (`curl ... | sh`), or a request to a host the user never
  mentioned — read the script first instead of blind-piping.
- **Force-push or history rewrite**: `git push --force` (especially to
  `main`/`master`), `git rebase` on a shared branch, `--no-verify` to skip
  hooks — these need explicit human sign-off, not a "looked right" pass.
- **Background/detached processes that outlive the session**: `nohup ... &`,
  `disown` — confirm the user wants a long-running process left behind.

If none of these apply, proceed normally. If one does, don't silently
"fix" the command yourself — explain the specific risk in plain language
and ask whether to proceed, adjust the scope, or skip it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.