StealIt

Bats Testing Patterns

bats-testing-patterns

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.

Install

Run this in your project folder. It works with Claude Code, Cursor, Codex and dozens of other agents.

$ npx skills add wshobson/agents --skill bats-testing-patterns

Needs Node.js. Add -g to install for every project, or -a claude-code to skip the agent picker.

How to use Bats Testing Patterns

Once it's installed, Claude reads this skill on its own whenever a request matches what it's for, so you don't have to mention it by name. In Claude Code you can also run it directly by typing /bats-testing-patterns.

It contains no scripts, only instructions and reference files, so it can't run code on its own.

What the instructions cover

  1. 1When to Use This Skill
  2. 2Detailed patterns and worked examples
  3. 3Testing Error Conditions
  4. 4Test Helper Pattern
  5. 5Integration with CI/CD
  6. 6Best Practices

Section headings from the skill's SKILL.md file.

What's inside · 2 files

  • SKILL.md
  • references/details.md

More from Seth Hobson

See all →

Accessibility Compliance

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA…

Design & UISeth Hobson42k

AI Debt Detector

Use after generating code, after accepting AI suggestions, or when reviewing AI-written modules. Also use when code works but feels brittle, when error handling seems thin, when…

AI & AgentsSeth Hobson42k

Airflow Dag Patterns

Build production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling…

Data & DatabasesSeth Hobson42k

Angular Migration

Migrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning…

FrontendSeth Hobson42k
See all →

Agent BrowserTop pick

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots…

Testing & BrowserVercel46k

TDDTop pick

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Testing & BrowserMatt Pocock313k

Test Driven Development

Use when implementing any feature or bugfix, before writing implementation code

Testing & BrowserJesse Vincent312k

Webapp Testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots…

Testing & BrowserAnthropic187k