bats-testing-patterns

23399 stars 2594 forks
60
D

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.

Marketplace
Also in: testing ci cd

Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security

Installation for Agentic Skill

View all platforms →
skilz install wshobson/agents/bats-testing-patterns
skilz install wshobson/agents/bats-testing-patterns --agent opencode
skilz install wshobson/agents/bats-testing-patterns --agent codex
skilz install wshobson/agents/bats-testing-patterns --agent gemini

First time? Install Skilz: pip install skilz

Works with 22+ AI coding assistants

Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...

View All Agents
Download Agent Skill ZIP

Extract and copy to ~/.claude/skills/ then restart Claude Desktop

1. Clone the repository:
git clone https://github.com/wshobson/agents
2. Copy the agent skill directory:
cp -r agents/plugins/shell-scripting/skills/bats-testing-patterns ~/.claude/skills/

Need detailed installation help? Check our platform-specific guides:

Related Agentic Skills

Agentic Skill Details

Repository
agents
Stars
23399
Forks
2594
Type
Technical
Meta-Domain
cloud infrastructure
Primary Domain
linux
Market Score
60

Agent Skill Grade

D
Score: 60/100 Click to see breakdown

Score Breakdown

Spec Compliance
12/15
PDA Architecture
12/30
Ease of Use
18/25
Writing Style
6/10
Utility
16/20
Modifiers: -4

Areas to Improve

  • Monolithic structure needs PDA refactoring
  • Missing explicit TOC for long file
  • No workflow checklists

Recommendations

  • Focus on improving Pda (currently 12/30)
  • Address 1 high-severity issues first
  • Add trigger phrases to description for discoverability

Graded: 2026-01-05

Developer Feedback

I took a look at your bats-testing-patterns skill and wanted to share some thoughts.

Links:

The TL;DR

You're at 60/100, which puts you in D territory (needs work). This is based on Anthropic's best practices for skill design. Your strongest area is Spec Compliance (12/15) – the metadata and structure are solid. The real drag is Progressive Disclosure Architecture (12/30) – that's where you're leaving the most points on the table.

What's Working Well

  • Solid triggers – "unit tests," "shell scripts," "TDD," and "CI/CD" clearly signal when to use this. That's good discoverability.
  • Comprehensive pattern coverage – You're addressing a real gap here. Assertions, mocking, fixtures, and CI integration all deserve their place.
  • Useful test_helper.sh template – That helper pattern is production-ready and shows someone actually built this, not just theorized about it.
  • Good spec compliance – Your frontmatter is clean, hyphen-case naming is correct, and the structure follows the rules.

The Big One: Monolithic File Structure

Here's the thing: 631 lines in a single SKILL.md is killing your PDA score (and that's -10 points you're leaving on the table). When a file gets that long, it becomes a reference manual, not a skill guide. Developers have to scroll through installation details, basic patterns, and advanced CI integration all at once.

The fix is straightforward: Split this into a primary guide + reference files:

SKILL.md (100-150 lines) - Overview, quick start, when to use
references/
  ├── installation.md
  ├── assertion-patterns.md
  ├── mocking-and-stubs.md
  ├── fixtures.md
  └── ci-integration.md

This keeps your main file ...

Report Security Issue

Found a security vulnerability in this agent skill?