Skip to content

DAAF-Contribution-Community/daaf / .claude/skills/shell-scripting

shell-scripting

Flagged

Standards for Bash and PowerShell scripts in DAAF: preambles, quoting, error handling, cleanup, testing. Use when writing or reviewing .sh/.ps1 files (hooks, lifecycle, utilities) and the host double-click launcher shims (.bat/.command under scripts/host/). Not runtime safety — that is bash-safety.sh hook.

Security report

Flagged

Static analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.

Commit
99ac264e893419a8ea8202bd1c70fa3b456d44b0
Content hash
15bd8c0c7dd6e6785701adde0c38f8b10df6b13871d6a4eb1d176e5eb5ec2ea3
Scanned
2026-11-17
Scanner version
skillxone-scan-1.0.0
Policy version
0.1-draft
Decision
6 open critical or high findings.
Verification expires
Not applicable

Findings (6 high)

  • highCMD-REMOTE-PIPE-SHELLreferences/gotchas.md:705

    A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.

    **The problem:** A `.ps1` script containing non-ASCII characters (em-dashes, curly quotes) requires a UTF-8 BOM for PowerShell 5.1 to interpret them correctly. When the script is executed via `irm URL | iex`, `Invoke-Expression` does not s…

    Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.

    Report as false positive

  • highCMD-EVAL-FETCHEDreferences/gotchas.md:714

    Content fetched from the network is evaluated as code.

    **Why it happens:** The UTF-8 BOM is three invisible bytes (`EF BB BF`) at the start of the file. When PowerShell reads a BOM-encoded file via `Get-Content` or dot-sourcing, it recognizes and strips the BOM. But `Invoke-Expression` receive…

    Suggested fix: Never evaluate downloaded content. Ship the code with the skill so it can be reviewed.

    Report as false positive

  • highCMD-REMOTE-PIPE-SHELLreferences/gotchas.md:718

    A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.

    **Severity:** High. The `irm | iex` pattern is the standard installation/setup one-liner. Any BOM-encoded script distributed this way will fail on every execution, and the error message gives no hint about encoding.

    Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.

    Report as false positive

  • highNET-DNS-EXFILreferences/gotchas.md:913

    A DNS lookup is built from command output, a known way to smuggle data out through DNS.

    if (@($errs).Count -gt 0) { Write-Host "Could not read $(@($errs).Count) folder(s) -- $n is a LOWER BOUND" }

    Suggested fix: Remove it.

    Report as false positive

  • highCMD-REMOTE-PIPE-SHELLreferences/powershell-standards.md:45

    A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.

    **Why:** Non-ASCII characters in a `.ps1` file require a UTF-8 BOM (byte order mark) for PowerShell 5.1 to interpret them correctly. The BOM is invisible but prepends three bytes (`EF BB BF`) to the file. When the script is executed via `i…

    Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.

    Report as false positive

  • highCMD-REMOTE-PIPE-SHELLSKILL.md:98

    A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.

    │ ├─ irm | iex fails with BOM error → ./references/gotchas.md (UTF-8 BOM)

    Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.

    Report as false positive

Checks run

  • prompt-injection
  • dangerous-commands
  • credentials
  • network
  • file-access
  • integrity

Checks skipped

  • dependencies: No dependency manifest in the skill directory.
  • gitleaks: gitleaks is not installed on this host.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall