In short.
golang-stretchr-testify is a Go testing skill for developers using AI coding assistants, but its advice on comparing pointers is internally inconsistent. It provides concrete patterns for choosing assert or require, verifying mock calls, organizing suites and checking asynchronous behavior. Its 11 evaluation scenarios describe expected behavior rather than demonstrated results, and supported Go and testify versions are unspecified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected skills/golang-stretchr-testify folder at commit d68d80aec298e1b74b37c2a472c002b5217248b3: SKILL.md, references/mock.md and evals/evals.json. It also includes the repository root LICENSE as the accompanying notice outside the folder. Other repository skills, external library implementations, assistant hosts and integration documentation are excluded. Installation, generated code, runtime behavior and evaluation outcomes are not assessed; no execution results are supplied.
The overview
Identity
golang-stretchr-testify is an instruction package in samber/cc-skills-golang, with samber listed as its metadata author. It is intended for an assistant to load while writing or reviewing Go tests that use github.com/stretchr/testify.
The folder contains SKILL.md, references/mock.md and evals/evals.json. The original resource is available at [https://github.com/samber/cc-skills-golang/tree/main/skills/golang-stretchr-testify].
Assessment
The strongest material translates testing intentions into specific patterns: stop after a failed prerequisite, verify that expected mock calls happened, and include the launcher that makes suite tests discoverable. This makes it a useful reference for teams already using testify.
Its technical guidance needs review before adoption. SKILL.md describes Equal as deep equality, then claims that pointer arguments compare addresses; evaluation scenario 9 rewards the latter claim. The supplied material does not resolve that conflict or establish improved assistant performance.
Users
Beginners who already understand basic Go tests can use the examples to distinguish prerequisites from independent checks and understand mock verification. Experienced developers can use the same material when reviewing error-chain assertions, argument matchers, retry expectations and suite setup.
The skill specifically targets codebases importing testify. It assumes familiarity with Go functions, interfaces and the testing package, and offers less direct value to projects that do not use testify.
Capabilities
Assertion coverage includes assert versus require, equality and collection checks, wrapped-error checks, JSON comparison, numeric tolerances, Eventually and EventuallyWithT. Suite guidance explains shared and per-test setup, teardown, suite.Run and require-style checks inside suites.
The mock reference covers embedding mock.Mock, forwarding arguments through Called, matching arguments with MatchedBy, configuring call counts and side effects, returning different results on successive calls, removing expectations and verifying interactions. The skill also recommends testifylint, but its configuration is delegated to a separate skill.
Using it
Requirements
Metadata lists go and gotests as required binaries and declares compatibility with Claude Code, Codex or a similar harness. The intended project uses github.com/stretchr/testify. No minimum Go version, testify version or verified host-version matrix is specified.
The allowed-tools declaration includes file editing, Go and Git commands, documentation retrieval, agents and language-server tools. Companion skills and integrations for godig, gopls and Context7 are referenced, but their files and setup instructions are outside this folder. How each host interprets these declarations is not demonstrated.
Mechanism
The resource works through written instructions and examples. Its metadata declares a user-invocable skill associated with Go files, while the body defines writing and review modes and directs the assistant toward particular testing conventions.
The separate mock reference supplies more detailed patterns. The evaluation JSON defines 11 task scenarios with expected behaviors, including the specific is and must variable names. These are evaluation specifications; no runner, generated answers or execution results are included in the selected folder.
Setup
Obtain the skill folder with its relative file structure intact so references/mock.md remains available beside SKILL.md. A revision-specific source location is [https://github.com/samber/cc-skills-golang/tree/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-stretchr-testify]. Exact host-specific installation paths and invocation commands are not supplied.
Match the declared go and gotests binary requirements and make the skill available through the chosen assistant's skill-loading mechanism. Metadata names github.com/cweill/gotests/...@latest as the gotests installation target, which does not pin a reproducible dependency version. Successful installation across the named hosts is not established.
Example
For a configuration parser, the skill creates is := assert.New(t) and must := require.New(t). It checks must.NoError(err) and must.NotNil(cfg) before checking values such as is.Equal(8080, cfg.Port). The intended benefit is to stop when the result cannot safely be inspected while allowing independent value checks to report multiple failures.
For retry testing, the mock reference sets two expectations on the same method and arguments: an error return marked Once(), followed by a successful return marked Once(). AssertExpectations(t) then checks that the expected calls occurred. These are illustrative patterns with no supplied execution results.
Assessment & evidence
Limitations
The pointer-comparison contradiction affects both the instructional text and evaluation scenario 9. There is also an overbroad statement that argument order is always expected, actual: the resource's own ErrorIs examples and evaluation criteria use err, target. These rules need to be interpreted per assertion.
The EventuallyWithT example records an error with assert.NoError and then reads resp.Status without a guard. If the client returns a nil response with an error, that example could dereference nil. This is a risk inferred from the code, not an observed failure.
Examples depend on application-specific types and functions, so they need adaptation. Runtime correctness, host compatibility, version compatibility and improvements to generated tests are not established by the supplied files.
Reasoning
The practical value comes from connecting a testing mistake to a concrete consequence: a failed prerequisite can make later checks unsafe, omitted expectation verification can miss an absent call, and a missing suite launcher can leave suite methods unexecuted.
The evaluation cases show which behaviors the author wants an assistant to produce, including stylistic preferences such as is and must naming. They do not demonstrate correctness or effectiveness. Because scenario 9 repeats the disputed pointer rule, agreement with every evaluation criterion would not resolve the source's internal inconsistency.
Alternatives
A reasonable alternative is to work directly from Go's testing package and the documentation for the project's testify version. The skill itself keeps testing.T as the entry point and directs readers to library documentation for gaps; the supplied evidence contains no comparative evaluation of this approach.
The resource also points to companion golang-testing and golang-lint skills for broader testing patterns and lint configuration, plus documentation and navigation skills. Those resources are outside the supplied folder, so their quality and suitability are not assessed.
Evidence
The source material consists of SKILL.md, the bundled mock reference, the evaluation JSON and the repository's root MIT licence. The revision-specific main document is [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-stretchr-testify/SKILL.md].
These files establish the instructions, examples, declared compatibility and evaluation criteria. They provide no model answers, evaluation scores, comparative benchmarks or runtime logs. The 11 evaluation cases therefore support claims about intended coverage, not demonstrated performance.
Access & freshness
Costs
The MIT licence permits use and redistribution without stating a licence-fee requirement. The supplied files do not establish assistant subscription charges, API charges, token consumption, setup effort or maintenance costs. Total operating cost and any time savings are unknown.
Rights
SKILL.md declares MIT, and the repository licence names copyright holder Samuel Berthe, 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale of the software and associated documentation, subject to retaining the copyright and permission notices in copies or substantial portions.
The licence disclaims warranties and liability. Terms for external assistants, integrations and dependencies are not established by this notice.
Freshness
The source snapshot was captured on 17 November 2026 at 12:26:25 UTC and is pinned to commit d68d80aec298e1b74b37c2a472c002b5217248b3. That capture time is not an established release or last-maintenance date.
SKILL.md declares skill version 1.3.1 and skill-library-version 1.11.1. Neither identifies a supported testify release. Changes to the repository after this snapshot and compatibility with particular Go or testify releases are unknown.
Actions
Before adopting the guidance, check pointer equality and each assertion's argument order against the project's actual testify version. Guard unsuccessful or nil responses before inspecting fields in asynchronous polling examples.
Start with a small parser test and one mock interaction. Review whether prerequisites stop execution appropriately, expected calls are verified and suites have launchers, then validate the adapted code with the project's Go tests and configured testifylint. Treat the evaluation JSON as specifications until actual results are available.
