Install Bats Testing Patterns
Pick your agent. Every command is ready to paste.
npx skills add rmyndharis/antigravity-skills --skill bats-testing-patternsThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads bats-testing-patterns when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the bats-testing-patterns skill”. In Codex, type $bats-testing-patterns.
Bats Testing Patterns
Comprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.
Use this skill when
- Writing unit tests for shell scripts
- Implementing TDD for scripts
- Setting up automated testing in CI/CD pipelines
- Testing edge cases and error conditions
- Validating behavior across shell environments
Do not use this skill when
- The project does not use shell scripts
- You need integration tests beyond shell behavior
- The goal is only linting or formatting
Instructions
- Confirm shell dialects and supported environments.
- Set up a test structure with helpers and fixtures.
- Write tests for exit codes, output, and side effects.
- Add setup/teardown and run tests in CI.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Tips for Bats Testing Patterns
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Bats Testing Patterns
What does the Bats Testing Patterns skill do?
Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
How do I install Bats Testing Patterns?
Run "npx skills add rmyndharis/antigravity-skills --skill bats-testing-patterns" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Bats Testing Patterns work in Cursor and Codex?
Yes. Bats Testing Patterns uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Bats Testing Patterns free?
Bats Testing Patterns is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Bats Testing Patterns?
Bats Testing Patterns is published by rmyndharis in the rmyndharis/antigravity-skills repository, together with 29 other skills.




