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-hardenedSKILL.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', andumask 077, quote 100% of expansions ("${var}"), and registertrap 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
- Never use
eval, unquoted$var,for f in $(ls ...), orcat file | grep; use globs (for f in ./*.txt) and--option terminators (rm -f -- "$target"). - Create temporary workspaces exclusively via
tmp_dir="$(mktemp -d)"cleaned up in theEXITtrap. - Acquire single-instance locks atomically via
flock -n 9ormkdir /var/lock/job.lock(nevertest -f+touchTOCTOU races). - Check pipeline statuses explicitly when commands inside
ifor||suppressset -e. - 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
- SKILL.md in the repositoryCheckingskills/bash-posix-hardened/SKILL.md
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
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/bash-posix-hardened)