
from ordinary-claude-skills223
Practical patterns and examples for writing maintainable unit tests for shell scripts using Bats (Bash Automated Testing System).
Provides a comprehensive guide to using Bats for unit testing shell scripts: installation, file structure, setup/teardown, assertion patterns, fixtures, mocking/stubbing, and CI integration. Includes numerous example test snippets and CI workflow examples to help teams adopt test-driven practices for shell utilities.
Use this skill when you need reliable testing for shell scripts or CI steps: validating scripts across environments, writing regression tests for deployment helpers, or integrating shell tests into GitHub Actions and other CI systems. Good for developers writing cross-shell tools or maintaining critical build scripts.
Useful for code-assistant agents that operate on repositories and CI configs (Copilot, Claude Code, GitHub Copilot). The examples are shell-native and CI-focused.
A comprehensive reference skill for Bats (Bash Automated Testing System) testing patterns. Covers assertions, setup/teardown, mocking, fixtures, CI integration, and best practices with clear code examples. Purely instructional — no bundled scripts to execute. Well-organized content but lacks separation of concerns (no scripts/, references/, output contracts).
Clean skill, no security concerns. Good quality instructional content but limited by being purely reference material with no operational components.