write-bats-test

write-bats-test is a skill for Claude Code from DailybotHQ/deepworkplan-skill. It costs 33 tokens per session (340 once invoked), scanned A, original, MIT.

A helper for adding Bats tests to shell scripts. Bats is a testing framework for Bash programs.

In plain words
What is it for?
Use it when changing setup.sh or context.sh to add tests, run the existing test suite, and keep tests isolated from the developer's home folder.
Why use it?
It helps confirm that changes to setup or context scripts still produce the expected files, JSON, and exit codes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

Good fit Use it when changing setup.sh or context.sh to add tests, run the existing test suite, and keep tests isolated from the developer's home folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dailybothq/deepworkplan-skill/write-bats-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DailybotHQ/deepworkplan-skill --skill write-bats-test
Clone the repo
git clone --depth 1 https://github.com/DailybotHQ/deepworkplan-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-bats-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/dailybothq/deepworkplan-skill/write-bats-test/github.svg)](https://agentmods.dev/skills/dailybothq/deepworkplan-skill/write-bats-test)
Your own site
<a href="https://agentmods.dev/skills/dailybothq/deepworkplan-skill/write-bats-test"><img src="https://agentmods.dev/badge/skills/dailybothq/deepworkplan-skill/write-bats-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-bats-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/dailybothq/deepworkplan-skill/write-bats-test"><img src="https://agentmods.dev/badge/skills/dailybothq/deepworkplan-skill/write-bats-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00340
Opus 5.5 $0.00013 $0.00136
Sonnet 5.5 $0.00007 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured 1mo ago against content hash a2cd5cb467e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-bats-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/write-bats-test/SKILL.md · 42 lines

What it actually says

Write Bats Test

Goal

Cover new or changed shell behavior with a bats-core test that matches the existing convention in tests/.

When to use

When setup.sh or skills/deepworkplan/shared/context.sh gains or changes behavior (a new flag, a new detection branch, a new output field).

Steps

  1. Read the existing tests to match style and helpers: tests/setup-sh.bats, tests/context-sh.bats.
  2. Add @test cases for the new behavior. Use a throwaway HOME/temp dir for any filesystem effect so the suite never touches the developer's ~/.claude.
  3. Keep assertions on observable contract: emitted JSON fields from context.sh, created symlink names from setup.sh, exit codes.
  4. Run bats tests/ and iterate until green.

Validation

bats tests/ passes, including the new cases, and the suite leaves no artifacts outside its temp dirs.

Notes

Tests must run on bash 3.2. Prefer testing the public contract (flags, symlink names, JSON keys) over internal implementation so refactors don't churn the suite.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 42 lines · 33 tokens per session scan A a2cd5cb467e7

Subscribe to this mod's changes

write-bats-test is a skill published in the GitHub repository DailybotHQ/deepworkplan-skill (23 stars, last pushed 3d ago), licensed MIT. It adds 33 tokens to every session and 340 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gsd-add-tests

Generate tests for a completed phase based on UAT criteria and implementation.

open-gsd/gsd-core · 18 tokens

implementation-standards

Reference material with coding standards (defensive coding, error handling, testing patterns). Loaded on demand by the Developer sub-agent (.github/agents/developer.md); not directly invokable.

attilaszasz/sdd-pilot · 44 tokens

archunit-rules

Encode architecture invariants as ArchUnit rules. Use when defining or reviewing layer boundaries, package dependencies, naming conventions, or cross-module access.

loiane/specs-driven-development-spring-angular · 33 tokens

jacoco-coverage-policy

JaCoCo configuration and policy enforcement — 90% line+branch floor, 95% target, 95% on new code. Use when wiring JaCoCo into the Maven build or interpreting jacoco.xml.

loiane/specs-driven-development-spring-angular · 51 tokens

three-tier-testing

Use when setting up test infrastructure, adding tests, reorganizing test directories, or reviewing test structure. Triggers include creating test files, discussing test strategy, separating unit from integration tests, or when tests need external services like databases or Docker.

ouob-tw/LoopAgentTeams · 52 tokens

specx-tests

Add or refine tests for specx Python services. Use when creating unit tests for use cases/services, integration tests for FastAPI controllers or infrastructure adapters, e2e smoke tests, architecture import guardrails, DI override tests, pytest fixtures, or coverage and boundary checks.

maksimzayats/specx · 58 tokens