Skills for Real Engineers. Straight from my .agents directory.
bash-defensive-patterns
Agent skill fromrmyndharis/antigravity-skills
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.
How to install bash-defensive-patterns
npx skills add rmyndharis/antigravity-skills# or add only this skill to Claude Code: copy the folder
skills/bash-defensive-patterns/
# into
~/.claude/skills/bash-defensive-patterns/ (all projects)
.claude/skills/bash-defensive-patterns/ (one project)
1# Bash Defensive Patterns23Comprehensive guidance for writing production-ready Bash scripts using defensive programming techniques, error handling, and safety best practices to prevent common pitfalls and ensure reliability.45## Use this skill when67- Writing production automation scripts8- Building CI/CD pipeline scripts9- Creating system administration utilities10- Developing error-resilient deployment automation11- Writing scripts that must handle edge cases safely12- Building maintainable shell script libraries13- Implementing comprehensive logging and monitoring14- Creating scripts that must work across different platforms1516## Do not use this skill when1718- You need a single ad-hoc shell command, not a script19- The target environment requires strict POSIX sh only20- The task is unrelated to shell scripting or automation2122## Instructions23241. Confirm the target shell, OS, and execution environment.252. Enable strict mode and safe defaults from the start.263. Validate inputs, quote variables, and handle files safely.274. Add logging, error traps, and basic tests.2829## Safety3031- Avoid destructive commands without confirmation or dry-run flags.32- Do not run scripts as root unless strictly required.3334Refer to `resources/implementation-playbook.md` for detailed patterns, checklists, and templates.3536## Resources3738- `resources/implementation-playbook.md` for detailed patterns, checklists, and templates.
Excerpt shown under the repository's MIT license.
More skills in antigravity-skills
- ▸accessibility-compliance-accessibility-audit
- ▸agent-orchestration-improve-agent
- ▸agent-orchestration-multi-agent-optimize
- ▸ai-engineer
- ▸airflow-dag-patterns
- ▸angular-migration
- ▸anti-reversing-techniques
- ▸antigravity-skills-manager
- ▸api-design-principles
- ▸api-documenter
- ▸api-testing-observability-api-mock
- ▸application-performance-performance-optimization
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
