alizainx/intelligence-systems-skills/bash-posix-hardened

Claude Code and agent skill by alizainx/intelligence-systems-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Hardened Bash / POSIX shell scripting (`set -Eeuo pipefail`), NUL-delimited path handling, atomic lockdirs, and `shellcheck` compliance.

Install

npx vskill@latest install alizainx/intelligence-systems-skills/bash-posix-hardened

SKILL.md

The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/bash-posix-hardened.

bash-posix-hardened (ISS-028)

1. First-Principles Invariant

  • Bourne/Korn Safe-Quoting Law: Start every script with set -Eeuo pipefail, IFS=$'\n\t', and umask 077, quote 100% of expansions ("${var}"), and register trap cleanup EXIT INT TERM ERR.

2. Fast-Pass Low-Token Protocol (Web & Coding Agents)

  • Pass arbitrary filenames and dynamic arguments via Bash arrays (cmd=("${args[@]}")) and NUL-delimited streams (find ... -print0 | while IFS= read -r -d '' f; do ...).

3. Zero-Bug & Zero-Vulnerability Guards

  1. Never use eval, unquoted $var, for f in $(ls ...), or cat file | grep; use globs (for f in ./*.txt) and -- option terminators (rm -f -- "$target").
  2. Create temporary workspaces exclusively via tmp_dir="$(mktemp -d)" cleaned up in the EXIT trap.
  3. Acquire single-instance locks atomically via flock -n 9 or mkdir /var/lock/job.lock (never test -f + touch TOCTOU races).
  4. Check pipeline statuses explicitly when commands inside if or || suppress set -e.
  5. Validate zero warnings under shellcheck -s bash -o all.

4. Verification Gate

  • bash -n script.sh && shellcheck -s bash script.sh

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/bash-posix-hardened/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/bash-posix-hardened)

Something wrong with this skill or its page? Tell us.