thunderid: Skill for Claude Code

.agent/skills/backend-tests/SKILL.md

backend-tests is a skill for Claude Code from thunder-id/thunderid. It costs 55 tokens per session (888 once invoked), scanned A, original, Apache-2.0.

A set of rules for testing ThunderID's Go backend and its integration and browser-based end-to-end tests. Unit tests check one component with mocked dependencies, while integration tests check components working with the real server.

In plain words
What is it for?
Use it when writing or changing backend unit tests, integration tests, Console end-to-end tests, mocks, or regression tests for bugs.
Why use it?
It helps tests cover normal and failure cases without adding test-only code or using unreliable hand-written mocks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

This is thunder-id/thunderid's own configuration. It tells Claude Code how to work on thunderid itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything thunderid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to thunder-id/thunderid. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thunder-id/thunderid/main/.agent/skills/backend-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/thunder-id/thunderid

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 backend-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/thunder-id/thunderid/backend-tests/github.svg)](https://agentmods.dev/skills/thunder-id/thunderid/backend-tests)
Your own site
<a href="https://agentmods.dev/skills/thunder-id/thunderid/backend-tests"><img src="https://agentmods.dev/badge/skills/thunder-id/thunderid/backend-tests/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 backend-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/thunder-id/thunderid/backend-tests"><img src="https://agentmods.dev/badge/skills/thunder-id/thunderid/backend-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 888 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.00055 $0.00888
Opus 5.5 $0.00022 $0.00355
Sonnet 5.5 $0.00011 $0.00178
Haiku 4.5 $0.00006 $0.00089

Measured 6d ago against content hash 01dc12d9fa33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-tests 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 6d 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.

.agent/skills/backend-tests/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tests

Read with backend/AGENTS.md, which says which test targets to run.

What to Test

  • Cover every case you can with integration tests. They exercise the real server, so they carry the most weight.
  • Unit tests are still required. They test one component with its dependencies mocked, the DB provider included. Do not build a database harness in a unit test: that is an integration scenario.
  • A query with a Postgres variant needs coverage on Postgres too. Integration tests run against Postgres in CI.
  • Cover the failure paths: store errors returning InternalServerError, each validation error, and read-only refusal for declared resources.
  • For a bug fix, add a regression test that fails without the fix when the case can be reproduced in a test.
  • Do not add test-only code to source files (test loaders, ForTest constructors, test flags). Mock the dependency or inject the behaviour from the test.

Mocks

Never hand-write a mock, stub, or fake. Generate it with mockery:

Config in backend/ For Output
.mockery.private.yml interfaces used only inside their package <Interface>_mock_test.go in the package
.mockery.public.yml interfaces other packages depend on backend/tests/mocks/<pkg>mock/

Register interfaces with one entry per package that lists them under interfaces:, not one entry per interface. Run make mockery and commit the output. Regenerate after any interface change. Never edit generated mocks.

Suites

type ExampleServiceTestSuite struct {
	suite.Suite
	mockStore *exampleStoreInterfaceMock
}

func TestExampleServiceTestSuite(t *testing.T) {
	suite.Run(t, new(ExampleServiceTestSuite))
}
  • A new test file uses a testify suite.
  • Tests added to a file that has a suite are suite methods.
  • The suite is named after the file it tests (example_service_test.go holds ExampleServiceTestSuite).
  • Test methods generally don't need comments. Add one only when the test is not self-explanatory or handles a case differently.
  • Use table-driven tests for similar cases, not lint suppressions.
  • Tests that read the server runtime call config.ResetServerRuntime() in SetupTest and TearDownTest.

Read the full file on GitHub · 68 lines

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. 6d ago First seen · 68 lines · 55 tokens per session scan A 01dc12d9fa33

Subscribe to this mod's changes

backend-tests is a skill published in the GitHub repository thunder-id/thunderid (594 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 888 once invoked, about $0.0002 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-10-21.

Related

Other skills, from other repositories

testing-and-ci

Choose and run unit, E2E, Caddyfile fixture, automation, and CI checks for caddy-security. Use for coverage requirements, test evidence, failures, and report workflows; official OP conformance remains opt-in.

greenpau/caddy-security · 50 tokens

go-testing

Use when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff. Also use when a user asks to write a test for a Go function, even if they don't mention specific patterns like table-driven tests or subtests. Does…

cxuu/golang-skills · 80 tokens

go-test-implementation

Use for test-only changes or non-routine fixtures and harnesses, selecting cases and assertions from accepted behavior during implementation.

Dankosik/go-service-template-rest · 29 tokens

principle-testing

Testing strategy and architecture — test pyramid (unit / integration / e2e), test doubles taxonomy (stub / mock / spy / fake), coverage-vs-confidence, mutation testing, flaky-test triage, contract testing, fixtures and test data builders. Distinct from principle-tdd which covers the red-green-refactor micro-cycle.…

lugassawan/swe-workbench · 98 tokens

Go Testing Patterns

Go testing with testing package, table-driven tests, subtests, benchmarks, test fixtures, httptest, and testify assertions.

PramodDutta/qaskills · 29 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

alexastrum/skl · 115 tokens