matchers

matchers is a skill for Claude Code from onsi/gomega. It costs 163 tokens per session (2,215 once invoked), scanned A, original, MIT.

A reference guide to Gomega’s built-in matchers, which are test expressions used to check whether a value meets an expectation. It covers equality, empty values, errors, channels, and other common checks.

In plain words
What is it for?
Use it when writing Go tests with Gomega to compare values, check errors, verify channels, test presence or emptiness, and build composed assertions.
Why use it?
It helps you choose specific checks that produce clearer test failures than broad comparisons. Matchers can also be negated or combined for more detailed assertions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gomega plugin — 12 skills shipped together

Good fit Use it when writing Go tests with Gomega to compare values, check errors, verify channels, test presence or emptiness, and build composed assertions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onsi/gomega/matchers
About the project

Gomega is a Go library for writing test assertions with matchers, including support for asynchronous checks and several specialized testing sub-libraries. It is used by Go developers, especially alongside the Ginkgo behavior-driven testing framework, to express and evaluate test expectations. The catalogue entries are Claude Code skills and a plugin that help agents use Gomega's matchers and testing idioms.

onsi/gomega · 2,355 stars · on GitHub · onsi.github.io

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 onsi/gomega --skill matchers
Clone the repo
git clone --depth 1 https://github.com/onsi/gomega

Made for: Claude Code.

Or install gomega, the plugin that ships this one along with the rest of its 12 skills.

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 matchers

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/onsi/gomega/matchers"><img src="https://agentmods.dev/badge/skills/onsi/gomega/matchers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,215 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00163 $0.02215
Opus 5 $0.00081 $0.01107
Sonnet 5 $0.00033 $0.00443
Haiku 4.5 $0.00016 $0.00221

Measured 9d ago against content hash b35213dc2eb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

matchers 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 9d 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.

plugins/gomega/skills/matchers/SKILL.md · 127 lines

How it starts

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

Gomega matcher catalog

Full reference: https://onsi.github.io/gomega/#provided-matchers. Assumes dot-import.

Three rules: prefer the most specific matcher — it produces far better failure messages. Every matcher is negatable (NotTo/ShouldNot). Many matchers accept other matchers as arguments (e.g. ContainElement(ContainSubstring("x"))) — compose freely. Anything taking a format string, args ...any runs fmt.Sprintf on it.

Asserting Equivalence

  • Equal(expected) — deep equality via reflect.DeepEqual; type-strict (actual and expected must be the same type). The default; reach for something more specific first.
  • BeEquivalentTo(expected) — like Equal but converts actual's type to expected's first. Laxer and risky5.1 matches BeEquivalentTo(5) via truncation. Never use with numbers (use BeNumerically); fine for type aliases.
  • BeComparableTo(expected, options ...cmp.Option) — deep equality via go-cmp (github.com/google/go-cmp); pass cmp.Options to ignore fields, compare unexported, set tolerances, etc.
  • BeIdenticalTo(expected)== identity; for primitives, or to assert two pointers point to the same memory.
  • BeAssignableToTypeOf(expected) — succeeds if actual is assignable to a variable of expected's type. Asserts type, not value.

Asserting Presence

  • BeNil() — actual is nil. Gotcha: a non-nil interface holding a nil concrete pointer is not nil.
  • BeZero() — actual is the zero value for its type (or nil).
  • BeEmpty() — actual (string/array/map/chan/slice/iterator) has zero length.

Asserting Truthiness

BeTrue/BeFalse require a bool (no "truthiness" — use ShouldNot(BeNil())/ShouldNot(BeZero()) for presence).

  • BeTrue() — actual is true. Weak failure message; prefer BeTrueBecause.
  • BeFalse() — actual is false. Prefer BeFalseBecause.
  • BeTrueBecause(reason, args...)BeTrue with an explanatory message. Best practice.
  • BeFalseBecause(reason, args...)BeFalse with an explanatory message. Best practice.

Read the full file on GitHub · 127 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. 9d ago First seen · 127 lines · 163 tokens per session scan A b35213dc2eb3

Subscribe to this mod's changes

matchers is a skill published in the GitHub repository onsi/gomega (2,355 stars, last pushed 12d ago), licensed MIT. It adds 163 tokens to every session and 2,215 once invoked, about $0.0008 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-30.