Bats Shell Testing Patterns
wshobson/agents
Writes unit tests for shell scripts with Bats: error-condition tests, fixtures and mocks, cross-shell checks, parallel runs, helper files and CI integration.
A skill your agent uses when verifying a fresh deployment, gating a CI pipeline before full test runs, checking that core user flows are reachable after a release, or building a minimal health-check…
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kid-sid/claude-spellbook smoke-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/smoke-testing .claude/skills/smoke-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .claude/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kid-sid/claude-spellbook smoke-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/smoke-testing .agents/skills/smoke-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .agents/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kid-sid/claude-spellbook smoke-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/smoke-testing .cursor/skills/smoke-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .cursor/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kid-sid/claude-spellbook.git --path skills/smoke-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kid-sid/claude-spellbook smoke-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/smoke-testing .gemini/skills/smoke-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .gemini/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kid-sid/claude-spellbook smoke-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/smoke-testing .github/skills/smoke-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .github/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kid-sid/claude-spellbook --skill smoke-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kid-sid/claude-spellbook smoke-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/smoke-testing .opencode/skills/smoke-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "smoke-testing" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/smoke-testing into .opencode/skills/smoke-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
smoke-testingA skill your agent uses when verifying a fresh deployment, gating a CI pipeline before full test runs, checking that core user flows are reachable after a release, or building a minimal health-check…
Smoke Testing is an agent skill from kid-sid/claude-spellbook. Use when verifying a fresh deployment, gating a CI pipeline before full test runs, checking that core user flows are reachable after a release, or building a minimal health-check suite for a new service.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering UX design, CI/CD and Unit testing. The repository describes itself as: A curated collection of skills, prompts, and workflows that extend Claude's capabilities — your personal grimoire for AI-powered development. The licence is MIT.
Read from SKILL.md and the folder at commit a7c2ac9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python, typescript, go and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Smoke Testing loads about 1.7k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 530 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kid-sid/claude-spellbook at commit a7c2ac9, republished under its MIT licence (© kid-sid). 530 words, ~1,731 tokens.
.claude/skills/smoke-testing/SKILL.md (or your agent's skills folder).A minimal test pass that confirms the critical paths of an application work before investing in deeper testing.
Smoke tests cover the happy path only — the shortest route through each critical feature.
| Layer | What to check |
|---|---|
| API / Backend | Health endpoint returns 200, auth flow succeeds, main CRUD endpoints respond |
| Frontend | App loads without JS errors, login page renders, primary navigation works |
| Database | Connection succeeds, a simple read query returns data |
| External services | Auth provider, payment gateway, email service are reachable |
| Workers / queues | Worker process starts, picks up a test job, completes without error |
| Test type | Breadth | Depth | Speed | When to run |
|---|---|---|---|---|
| Smoke | Wide | Shallow | Seconds–1 min | Every deploy |
| Sanity | Narrow | Medium | Minutes | After targeted fixes |
| Integration | Medium | Deep | Minutes | Every commit / PR |
| Regression | Full | Deep | Minutes–hours | Nightly / pre-release |
import httpx
import pytest
BASE_URL = "https://staging.example.com"
@pytest.fixture(scope="session")
def client():
return httpx.Client(base_url=BASE_URL, timeout=10)
def test_health(client):
r = client.get("/health")
assert r.status_code == 200
def test_login(client):
r = client.post("/auth/login", json={"email": "smoke@test.com", "password": "test"})
assert r.status_code == 200
assert "token" in r.json()
def test_list_users(client):
token = client.post("/auth/login", json={"email": "smoke@test.com", "password": "test"}).json()["token"]
r = client.get("/api/v1/users", headers={"Authorization": f"Bearer {token}"})
assert r.status_code == 200const BASE = process.env.SMOKE_BASE_URL ?? "http://localhost:3000";
let token: string;
beforeAll(async () => {
const res = await fetch(`${BASE}/auth/login`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email: "smoke@test.com", password: "test" }),
});
token = (await res.json()).token;
});
test("health check", async () => {
const res = await fetch(`${BASE}/health`);
expect(res.status).toBe(200);
});
test("list users returns 200", async () => {
const res = await fetch(`${BASE}/api/v1/users`, {
headers: { Authorization: `Bearer ${token}` },
});
expect(res.status).toBe(200);
});package smoke_test
import (
"net/http"
"testing"
)
var base = "https://staging.example.com"
func get(t *testing.T, path string) *http.Response {
t.Helper()
resp, err := http.Get(base + path)
if err != nil {
t.Fatalf("request failed: %v", err)
}
return resp
}
func TestHealth(t *testing.T) {
resp := get(t, "/health")
if resp.StatusCode != http.StatusOK {
t.Errorf("want 200, got %d", resp.StatusCode)
}
}
func TestHomePage(t *testing.T) {
resp := get(t, "/")
if resp.StatusCode != http.StatusOK {
t.Errorf("want 200, got %d", resp.StatusCode)
}
}Run smoke tests as a dedicated job that gates the full test suite:
# .github/workflows/ci.yml
jobs:
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run smoke tests
run: pytest tests/smoke/ -m smoke --timeout=60
env:
SMOKE_BASE_URL: ${{ vars.STAGING_URL }}
full-tests:
needs: smoke # only runs if smoke passes
runs-on: ubuntu-latest
steps:
- run: pytest tests/ --ignore=tests/smoke/Tag smoke tests explicitly so they can run in isolation:
# Python — use pytest marks
@pytest.mark.smoke
def test_health(): ...
# run only smoke
# pytest -m smoke// TypeScript — use jest testPathPattern or describe label
describe("[smoke]", () => {
test("health", ...);
});
// jest --testNamePattern="\[smoke\]"500 hides broken payloads; assert on response shape too.@pytest.mark.smoke, [smoke], //go:build smoke) so they can run in isolationneeds: or equivalent gateSMOKE_BASE_URL (or equivalent) is configurable via environment variable — no hardcoded URLs© kid-sid, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/smoke-testing of kid-sid/claude-spellbook.
Open the folder on GitHubat commit a7c2ac9
Smoke Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Smoke Testing this skillkid-sid/claude-spellbook | 189 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Bats Shell Testing Patternswshobson/agents | 40k | 12 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Simple Modern Uvjlevy/simple-modern-uv | 301 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Migrate Vstest To Mtprunceel/ReactiveProperty | 944 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Code PatternsAedelon/claude-code-blueprint | 120 | — | ~1.2k | Automated safety check: Pass | Custom licence | |
| Gating Deid Leakagemaziyarpanahi/openmed | 5.5k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 |
wshobson/agents
Writes unit tests for shell scripts with Bats: error-condition tests, fixtures and mocks, cross-shell checks, parallel runs, helper files and CI integration.
jlevy/simple-modern-uv
Start, selectively modernize, fully migrate, or update Python projects using simple-modern-uv practices: uv, ruff, BasedPyright, pytest, GitHub Actions CI, and tag-driven PyPI publishing.
runceel/ReactiveProperty
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP).
Aedelon/claude-code-blueprint
Reference patterns for REST APIs, pytest/vitest testing, Docker multi-stage builds, GitHub Actions CI/CD, PostgreSQL, TypeScript generics, Python async, and React Server Components.
maziyarpanahi/openmed
Add a CI gate that fails the build when an OpenMed de-identification model's recall on a held-out PHI set drops below threshold or any critical identifier leaks.
microsoft/testfx
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP).
kid-sid/claude-spellbook
A skill your agent uses when building or reviewing UI components for keyboard and screen reader compatibility, adding ARIA to custom widgets, auditing a page for WCAG AA conformance, or preparing…
kid-sid/claude-spellbook
A skill your agent uses when building, wiring, or debugging an Agentex agent — choosing agent type, configuring acp.py and manifest.yaml, using adk.messages or adk.state, or resolving…
kid-sid/claude-spellbook
A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…
kid-sid/claude-spellbook
A skill your agent uses when building or refactoring Angular applications — choosing between signals, RxJS, and NgRx for state, configuring routing with guards and lazy loading, optimizing change…
kid-sid/claude-spellbook
A skill your agent uses when designing new REST endpoints, reviewing an existing API contract, adding pagination or filtering, planning a versioning strategy, or building a public or partner-facing…
kid-sid/claude-spellbook
A skill your agent uses when implementing login flows, issuing or validating JWTs, setting up OAuth2/OIDC with a provider, designing role-based or attribute-based access control, securing API…
Categories
A skill your agent uses when verifying a fresh deployment, gating a CI pipeline before full test runs, checking that core user flows are reachable after a release, or building a minimal health-check…. Smoke Testing is an agent skill from kid-sid/claude-spellbook. Use when verifying a fresh deployment, gating a CI pipeline before full test runs, checking that core user flows are reachable after a release, or building a minimal health-check suite for a new service.
Smoke Testing fits situations like: verifying a fresh deployment; gating a CI pipeline before full test runs; checking that core user flows are reachable after a release; building a minimal health-check suite for a new service.
Run `npx skills add kid-sid/claude-spellbook --skill smoke-testing -a claude-code`. Or copy the skill folder (skills/smoke-testing in kid-sid/claude-spellbook) into .claude/skills/smoke-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kid-sid/claude-spellbook --skill smoke-testing -a codex`. Or copy the skill folder (skills/smoke-testing in kid-sid/claude-spellbook) into .agents/skills/smoke-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kid-sid/claude-spellbook --skill smoke-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smoke-testing, .gemini/skills/smoke-testing, .github/skills/smoke-testing and .opencode/skills/smoke-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Smoke Testing is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Smoke Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Smoke Testing: Bats Shell Testing Patterns (wshobson/agents, 40k stars), Simple Modern Uv (jlevy/simple-modern-uv, 301 stars), Migrate Vstest To Mtp (runceel/ReactiveProperty, 944 stars) and Code Patterns (Aedelon/claude-code-blueprint, 120 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kid-sid (a GitHub user) maintains it in kid-sid/claude-spellbook, which has 189 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on August 5, 2026.
Source: kid-sid/claude-spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.