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.
npx skills add Vingedal/bjorn-skills --skill tsqlt-testinggit clone --depth 1 https://github.com/Vingedal/bjorn-skillsWrote 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.
[](https://agentmods.dev/skills/vingedal/bjorn-skills/tsqlt-testing)<a href="https://agentmods.dev/skills/vingedal/bjorn-skills/tsqlt-testing"><img src="https://agentmods.dev/badge/skills/vingedal/bjorn-skills/tsqlt-testing/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.
<a href="https://agentmods.dev/skills/vingedal/bjorn-skills/tsqlt-testing"><img src="https://agentmods.dev/badge/skills/vingedal/bjorn-skills/tsqlt-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.01343 |
| Opus 5 | $0.00037 | $0.00672 |
| Sonnet 5 | $0.00015 | $0.00269 |
| Haiku 4.5 | $0.00007 | $0.00134 |
Grade A, and why
tsqlt-testing 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing & running tSQLt tests
tSQLt is a unit-testing framework that runs inside SQL Server. Tests live in the database alongside the code they exercise.
How a tSQLt test is structured
- A test class is a schema, created once per file:
EXEC tSQLt.NewTestClass '<ClassName>'; - A test is a stored procedure named
[<ClassName>].[test <description>]— thetestprefix is required. - Each test runs inside a transaction that tSQLt rolls back automatically: tests never persist data and need no teardown.
- An optional
[<ClassName>].SetUpprocedure runs before every test in the class. - Structure each test Assemble → Act → Assert (AAA).
The loop (do this every time)
- Find or create the test class. A new class is a new file
<Name>Tests.class.sqlthat starts withEXEC tSQLt.NewTestClass '<Name>Tests';thenGO. - Write the test procedure with
CREATE PROCEDURE <Class>.[test ...]and AAA comments. - Isolate dependencies so the test exercises only the code under test:
tSQLt.FakeTable— replace a table with an empty, constraint-free copy you populate yourself.tSQLt.FakeFunction— replace a function with a fake of the same signature.tSQLt.SpyProcedure— replace a procedure with a logging stub (optionally still call the original). Seereference/isolation-and-mocking.md.
- Assert with the right assertion (
reference/assertions.md). Most common:AssertEquals(scalars),AssertEqualsTable(row data),ExpectException(errors).
Then deploy the class and run it (EXEC tSQLt.Run '<Class>' / EXEC tSQLt.RunAll) — see
reference/running-and-results.md. Use whatever deploy/run tooling the project provides; check its README
or CLAUDE.md. Iterate until green.
Two habits that keep tests honest:
- Write to the spec, not the code. Assert what the test's name promises (the requirement). A correct
test that fails is revealing a bug — don't soften it to match buggy code. See
reference/test-conventions.md. - Fake minimally. Insert only the columns the behaviour reads (a single key column is often enough to
materialise a row), and fake only the tables/procedures the code touches. See
reference/isolation-and-mocking.md.
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 88 lines · 75 tokens per session scan A 2e471dd0830f
tsqlt-testing is a skill published in the GitHub repository Vingedal/bjorn-skills (1 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 1,343 once invoked, about $0.0004 per session on Opus 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-31.
Other skills, from other repositories
adding-dbt-unit-test
Creates unit test YAML definitions that mock upstream model inputs and validate expected outputs. Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt.
review-ugc-render
Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates setfinalrender — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops…
test-generator
A test-writing helper that creates unit or integration tests from the code's actual behavior and contracts. Unit tests check small pieces of code, while integration tests check how real components work together.
testing-r-packages
Best practices for writing R package tests using testthat version 3+. Use when writing, organizing, or improving tests for R packages. Covers test structure, expectations, fixtures, snapshots, mocking, and modern testthat 3 patterns including self-sufficient tests, proper cleanup with withr, and snapshot testing.
r-package-development
R package development with devtools, testthat, and roxygen2. Use when the user is working on an R package, running tests, writing documentation, or building package infrastructure.
111-java-maven-dependencies
Use when you need to add or evaluate Maven dependencies that improve code quality or domain modeling — including nullness annotations (JSpecify), static analysis (Error Prone + NullAway), functional programming (VAVR), architecture testing (ArchUnit), or money and currency support (JavaMoney) — and want a…