SKILLEMALL.ai

CB Bash

Writes, debugs, and hardens Bash shell scripts — quoting, arrays, strict mode, traps, argument parsing, and macOS/Linux portability. Use when writing or reviewing any script, one-liner, cron job, deploy script, container entrypoint, or CI step; when a script breaks on spaces in filenames, exits silently, ignores set -e, hangs, or returns the wrong exit code; when quoting, IFS, globs, arrays, heredocs, process substitution, trap, getopts, or mapfile misbehave; when shellcheck flags SC2086 and friends; when unbound variable, bad substitution, command not found, ambiguous redirect, or unexpected end of file show up; when a script works by hand but fails under cron, systemd, sudo, or a CI runner; or when porting between macOS bash 3.2, GNU/Linux, WSL, and POSIX sh. Not for interactive zsh or fish configuration, not for PowerShell, and not for host-level cron, systemd, or permission failures (linux).

ClawHub Agent Skills author: Iván v1.0.6 MIT-0 23 files body ≈ 4 204 tokens Open the sourceclawhub.ai analyzed 3 d ago

As a process B 66/100 · Nearly there — weak spots: inputs and preconditions, running it twice

GeneratorSoftware developmentInfrastructuretype and topics are labelled automatically from the skill text
JSON
Technical rating
C
74/100
safety, quality, tests
Safety 60%
70
Quality 40%
80
Run on models
none yet
Process rating
B
66/100
Nearly there
Inputs and preconditions w 11
0
Running it twice w 4
30
When it triggers w 12
50
the three weakest of ten parameters · all ten

What is at stake

Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.

Dangerous commands medium severity

Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.

If you install

The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.

For the author

Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.

How to improve

    For the model run — optional
    • Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
    • A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.

    Guard findings · 14

    ✓ No critical or high findings

    Medium and low: 14
    • medium Dangerous commands cmd-persistence cron.md:33
      Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition)
      - Files in `/etc/cron.d/` are ignored by `run-parts` if the filename contains a dot — `backup.sh` there never runs, `backup` does. `/etc/cron.d` and `/etc/crontab` also take a USER field before the co
      detector
    • medium Dangerous commands cmd-persistence cron.md:81
      Persistence mechanism (cron / launchd / scheduled task / autorun registry) (quoted — discussed, not commanded)
      - `~/Library/LaunchAgents/<label>.plist` for user jobs, `/Library/LaunchDaemons/` for system ones; `StartCalendarInterval` for a schedule, `StartInterval` for "every N seconds", `RunAtLoad` for boot
      quoted
    • medium Dangerous commands cmd-persistence cron.md:85
      Persistence mechanism (cron / launchd / scheduled task / autorun registry) (quoted — discussed, not commanded)
      - Reload after editing: `launchctl unload` then `launchctl load` the plist; editing alone changes nothing
      quoted
    • medium Dangerous commands cmd-pipe-to-shell SKILL.md:189
      Downloads and executes remote code from an unrecognised host (pipe to shell) (quoted — discussed, not commanded)
      - **Safety posture**: whether scripts may `sudo`, dry-run first, banned constructs (`eval`, `curl | sh`, `rm -rf` on a variable) — affects `security.md` and destructive workflows
      quoted
    • low Dangerous commands cmd-cron-mention cron.md:35
      Mentions editing / listing crontab (quoted — discussed, not commanded)
      - `crontab -e` validates syntax; copying a file over `/var/spool/cron/…` by hand does not
      quoted
    • low Dangerous commands cmd-privilege debugging.md:75
      Privilege escalation / world-writable permissions (quoted — discussed, not commanded)
      - Redirection is done by YOUR shell before sudo runs: `sudo cmd > /root/out` fails on permissions; `cmd | sudo tee /root/out >/dev/null` works.
      quoted
    • low Dangerous commands cmd-background-process processes.md:79
      Starts a background / autostarted process (quoted — discussed, not commanded)
      - `nohup cmd &` survives a hangup but still shares the terminal's session; `setsid cmd` starts a new session, fully detached
      quoted
    • low Dangerous commands cmd-background-process processes.md:80
      Starts a background / autostarted process (quoted — discussed, not commanded)
      - `disown -h %1` removes a running job from the shell's SIGHUP list without stopping it — the fix when you forgot `nohup`
      quoted
    • low Dangerous commands cmd-privilege quoting.md:59
      Privilege escalation / world-writable permissions (detector / deny-list definition)
      - `su -c`, `bash -c`, `sudo sh -c`, `xargs sh -c`, `find -exec sh -c` — same hop, same fix. With `find`, keep the data out of the string: `find . -exec sh -c 'process "$1"' _ {} \;` passes the filenam
      detector
    • low Dangerous commands cmd-pipe-to-shell security.md:15
      Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation table row; documentation of a security skill)
      | `bash <(curl …)`, `curl … \| sh` | Executes whatever the server returns, including a truncated download | Download, verify a published checksum or signature, inspect, then run |
      tablesecurity skill
    • low Dangerous commands cmd-privilege security.md:45
      Privilege escalation / world-writable permissions (negated — the text forbids it)
      - Never `chmod 777` a temp path to "fix permissions"; set the umask (`umask 077`) before creating instead
      negated
    • low Dangerous commands cmd-privilege security.md:52
      Privilege escalation / world-writable permissions (documentation of a security skill)
      - Setuid on a shell script does nothing on Linux — the kernel ignores it, and every workaround (wrapper binaries, `sudo` shims) is a privilege-escalation surface. Grant a narrow `sudo` rule for one ex
      security skill
    • low Dangerous commands cmd-privilege SKILL.md:205
      Privilege escalation / world-writable permissions (documentation table row)
      | `sudo cmd > /root/out` | the redirection is performed by YOUR shell before sudo runs — permission denied | `cmd \| sudo tee /root/out >/dev/null` |
      table

    A further 1 matches are quotations in this security skill's documentation and are not counted as findings.

    Files scanned: 23. Evidence is masked. Grey chips explain why severity was lowered.

    Against the Agent Skills spec

    • warning name-format name should be kebab-case (lowercase letters, digits, hyphens)
    • note frontmatter-key unknown frontmatter key "slug"
    • note frontmatter-key unknown frontmatter key "homepage"
    • note frontmatter-key unknown frontmatter key "changelog"

    Process rating: all ten parameters 66/100

    • 0Inputs and preconditions. Does not say what the process needs to start
    • 30Running it twice. 10 mutating operations with no state check
    • 50When it triggers. No condition that starts the skill
    • 60Tools and files. Uses tools (bash, web, python) that frontmatter does not declare
    • 60Result and completion. Output format stated, no completion criterion
    • 70Execution cost. Instruction body is 4204 tokens
    • 100Steps. 52 steps
    • 100Failures and branches. 1 branches, has a failure section
    • 100Consistency. Name and required fields are in place
    • 100Progress reporting. Reports progress
    • medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
    • low 14 top-level sections: this looks like several domains in one skill

    Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.

    Quality signals

    • +5Description has no quoted example phrases that should trigger the skill
    • +3Description length 908: 120–800 characters recommended
    • +1No license
    • +2Single-language instructions
    • +4Description says when NOT to use the skill
    • +4Structure: 14 headings
    • +3Step-by-step instructions: 52 items
    • +3Output format is stated explicitly
    • +4Has examples (1 code blocks)

    Quality base 70; lint remarks subtract, signals add up to 100. Result: 80.

    External checks

    ClawHub: clean
    This is a Bash scripting guidance skill with disclosed local preference storage and no hidden execution, exfiltration, or persistence behavior.
    LLM: benign (high) · VirusTotal: · 26 Jul 2026