golang-stretchr-testifyComprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify.
Install via ClawdBot CLI:
clawdbot install samber/golang-stretchr-testifyGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Calls external URL not in known-safe list
https://github.com/samber/cc-skills-golangAudited Apr 16, 2026 · audit v1.0
Generated Oct 5, 2026
A backend engineering team building REST APIs in Go uses testify's assert and require packages to write executable specifications for HTTP handlers. They leverage require for preconditions like database connections and assert for validating response payloads, ensuring tests fail fast on setup issues while collecting all verification failures.
A fintech company uses testify/mock to isolate their billing logic from third-party payment providers like Stripe. They define mock interfaces with argument matchers and call modifiers to simulate success, failure, and timeout scenarios, then verify expectations with AssertExpectations to catch accidental calls.
A platform team organizes integration tests for multi-tenant data repositories using testify/suite. They share expensive setup (connection pools, migrations, fixtures) in SetupSuite, reset state per-test in SetupTest, and use s.Require() for critical assertions that would otherwise cause cascading failures.
An e-commerce engineering team validates asynchronous order processing pipelines using assert.Eventually and EventuallyWithT. They poll for job completion status within timeouts, using rich assertions inside the polling function to verify multiple response fields once the system converges.
A consulting firm in review mode audits an enterprise Go codebase for testify misuse, identifying swapped argument orders, inappropriate require usage in loops, and missing AssertExpectations calls. They standardize patterns across teams using the is/must naming convention and documented rules.
The testify skill is distributed as part of a free open-source skill library (cc-skills-golang) maintained by an individual author. It drives adoption through GitHub visibility and ecosystem goodwill, with sustainability from GitHub Sponsors and corporate backers.
The skill functions as high-quality educational content that attracts Go developers to a broader platform offering courses, tutorials, and premium testing resources. Free access to the skill acts as top-of-funnel for paid depth content.
Skills like this are bundled or referenced by AI coding agent platforms (Claude Code, Cursor, etc.) to improve Go testing assistance. The skill acts as a value-add feature increasing platform retention and enterprise adoption of AI-assisted development tools.
💬 Integration Tip
Ensure the `gotests` binary is installed via `go install github.com/cweill/gotests/...@latest` and that projects import github.com/stretchr/testify; leverage Context7 MCP lookups for up-to-date testify API details beyond what the skill covers.
Scored Oct 5, 2026
Control desktop applications on Windows — launch, close, focus, resize, move windows, simulate keyboard/mouse input, manage processes, control VSCode, read clipboard, and capture screen info. Use when the user wants to interact with any running program, switch windows, type text, press shortcuts, open files in VSCode, manage running processes, or get system display information.
Conduct rigorous, adversarial code reviews with zero tolerance for mediocrity. Use when users ask to "critically review" my code or a PR, "critique my code", "find issues in my code", or "what's wrong with this code". Identifies security holes, lazy patterns, edge case failures, and bad practices across Python, R, JavaScript/TypeScript, SQL, and front-end code. Scrutinizes error handling, type safety, performance, accessibility, and code quality. Provides structured feedback with severity tiers (Blocking, Required, Suggestions) and specific, actionable recommendations.
Pragmatic coding standards for writing clean, maintainable code — naming, functions, structure, anti-patterns, and pre-edit safety checks. Use when writing new code, refactoring existing code, reviewing code quality, or establishing coding standards.
Claude Code integration for OpenClaw. This skill provides interfaces to: - Query Claude Code documentation from https://code.claude.com/docs - Manage subagents and coding tasks - Execute AI-assisted coding workflows - Access best practices and common workflows Use this skill when users want to: - Get help with coding tasks - Query Claude Code documentation - Manage AI-assisted development workflows - Execute complex programming tasks
Plan, draft, version, and refine written content with enforced versioning and quality audits.
Use when writing tests, creating test strategies, or building automation frameworks. Invoke for unit tests, integration tests, E2E, coverage analysis, performance testing, security testing.