Antigravity bash pro

From boisenoise/skills-collections · View interactive version

Antigravity bash pro is an AI agent skill from the GitHub repository boisenoise/skills-collections. Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts.

How to use this skill

Skill file

Use this skill when

Do not use this skill when

Instructions

  1. Define script inputs, outputs, and failure modes.
  2. Apply strict mode and safe argument parsing.
  3. Implement core logic with defensive patterns.
  4. Add tests and linting with Bats and ShellCheck.

Safety

Focus Areas

Approach

Compatibility & Portability

Readability & Maintainability

Safety & Security Patterns

Performance Optimization

Documentation Standards

Modern Bash Features (5.x)

Bash 5.x versions share transformations, shopt options and redirection behavior.

wall clock, not a monotonic benchmark timer.

CI/CD Integration

Security Scanning & Hardening

Observability & Logging

Quality Checklist

Output

Essential Tools

Static Analysis & Formatting

Testing Frameworks

Modern Development Tools

CI/CD & Automation

Common Pitfalls to Avoid

Dependency Management

Advanced Techniques

References & Further Reading

Style Guides & Best Practices

Tools & Frameworks

Security & Advanced Topics

Example

#!/usr/bin/env bash
set -Eeuo pipefail
umask 077
task_tmpdir=$(mktemp -d) || exit 1
trap 'rm -rf -- "$task_tmpdir"' EXIT
printf '%s\n' 'example' > "$task_tmpdir/input.txt"
[[ -s "$task_tmpdir/input.txt" ]] || exit 1

The directory is created before installing cleanup. Quote/validate approved paths

before deletion: -- stops option parsing but does not prevent deleting a wrong

absolute path. Strict mode and an ERR trap do not catch every failure context.

Limitations

Primary language support: CodeQL supported languages.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.