bash-defensive-patterns
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security
Installation for Agentic Skill
View all platforms →skilz install wshobson/agents/bash-defensive-patternsskilz install wshobson/agents/bash-defensive-patterns --agent opencodeskilz install wshobson/agents/bash-defensive-patterns --agent codexskilz install wshobson/agents/bash-defensive-patterns --agent geminiFirst time? Install Skilz: pip install skilz
Works with 22+ AI coding assistants
Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...
Extract and copy to ~/.claude/skills/ then restart Claude Desktop
git clone https://github.com/wshobson/agentscp -r agents/plugins/shell-scripting/skills/bash-defensive-patterns ~/.claude/skills/Need detailed installation help? Check our platform-specific guides:
Related Agentic Skills
shell-scripting-fundamentals
by TheBushidoCollective
Use when writing or modifying Bash/shell scripts. Covers script structure, variables, quoting, conditionals, and loops with modern best practices.
shell-scripting
by sammcj
Practical bash scripting guidance emphasising defensive programming, ShellCheck compliance, and simplicity. Use when writing shell scripts that nee...
search
by memorysaver
This skill should be used when the user needs to search for information, find files,look up content online, or retrieve data without providing inpu...
shell-scripting
by einverne
Specialized knowledge of Bash and Zsh scripting, shell automation, command-line tools, and scripting best practices. Use when the user needs to wri...
Agentic Skill Details
- Repository
- agents
- Stars
- 23399
- Forks
- 2594
- Type
- Technical
- Meta-Domain
- cloud infrastructure
- Primary Domain
- linux
- Market Score
- 66
Agent Skill Grade
D Score: 66/100 Click to see breakdown
Score Breakdown
Areas to Improve
- No Progressive Disclosure Architecture
- Missing Table of Contents
- Verbose Code Examples
Recommendations
- Focus on improving Pda (currently 14/30)
- Address 1 high-severity issues first
- Add trigger phrases to description for discoverability
Graded: 2026-01-05
Developer Feedback
I took a look at your bash-defensive-patterns skill and wanted to share some thoughts.
Links:
The TL;DR
You're at 66/100, which puts you in D territory. This is evaluated against Anthropic's best practices for agentic skills. Your strongest area is Spec Compliance (12/15) — the metadata and naming are solid. But Progressive Disclosure Architecture (14/30) is where you're losing the most points. The skill's a flat 534-line file that loads entirely every time, which isn't efficient for how agentic systems work.
What's Working Well
- Solid metadata: Your triggers ('production-grade scripts', 'CI/CD pipelines', 'fault tolerance') are specific and searchable. The skill name follows conventions perfectly.
- Comprehensive coverage: You actually cover the critical patterns — strict mode, error trapping, signal handling. This addresses a real gap in defensive Bash practices.
- Clear organization: Numbered patterns and section headers make manual navigation reasonable, even if it could be better.
- Practical scope: Good balance between providing complete patterns and letting users adapt them to their needs.
The Big One: Progressive Disclosure Architecture
This is your biggest opportunity. Right now, all 10 patterns plus advanced techniques live in one massive file. Users get everything whether they need it or not.
Here's the fix: Break it into a layered structure:
- Create a
references/directory with pattern-specific files:strict-mode.md,error-trapping.md,argument-parsing.md,cleanup-patterns.md, etc. - Reduce
SKILL.mdto an 80-line overview that summarizes each pattern and links to the references - This way, the main file ...
Browse Category
More cloud infrastructure Agentic SkillsReport Security Issue
Found a security vulnerability in this agent skill?
Report Security Issue
Thank you for helping keep SkillzWave secure. We'll review your report and take appropriate action.
Note: For critical security issues that require immediate attention, please also email security@skillzwave.ai directly.