CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-stretchr-testify

Comprehensive 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.

89

1.59x
Quality

88%

Does it follow best practices?

Impact

91%

1.59x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

76%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-organized, highly actionable reference with executable code throughout and an appropriately offloaded mock reference file. It lacks an explicit sequenced workflow with validation checkpoints, which is the main gap for a multi-mode testing skill.

Suggestions

Add a short sequenced workflow for each mode (e.g., Write: choose assert/require -> set up mocks -> verify with AssertExpectations -> run testifylint) so the multi-step process is explicit.

Consolidate the sibling-skill navigation pointers into a single Cross-References-style block to tighten the intro paragraph.

Surface the mock reference link in a dedicated 'References' section rather than burying it inside the testify/mock section.

DimensionReasoningScore

Conciseness

Mostly efficient with executable code blocks and minimal over-explanation of basics, though the navigation paragraph pointing to sibling skills and the repeated package list add a little padding that could be trimmed.

4 / 5

Actionability

Provides copy-paste-ready, executable Go code across core assertions, advanced assertions (Eventually, JSONEq, WithinDuration), mock setup, and a complete suite example covering the common cases.

5 / 5

Workflow Clarity

Decision rules ('require for preconditions, assert for verifications') and Common Mistakes give useful guardrails, but there is no explicit sequenced workflow with validation checkpoints for the Write/Review modes.

3 / 5

Progressive Disclosure

SKILL.md serves as an overview and pushes mock detail to a real one-level-deep reference (./references/mock.md) with a clearly signaled link, though the link sits mid-section rather than in a dedicated navigation block.

4 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific description that clearly answers both what and when with concrete trigger phrases and the package import path. It is slightly verbose due to repeating 'Covers...' across two sentences, but content coverage is comprehensive.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities (assert, require, mock, suite) plus specific patterns (Eventually, JSONEq, argument matchers, call verification, suite lifecycle), giving comprehensive coverage rather than vague language.

5 / 5

Completeness

Explicitly states what it covers ('Comprehensive guide to stretchr/testify... Covers assert, require, mock, and suite packages') and when to use it ('Use when writing tests with testify... Apply when the codebase imports github.com/stretchr/testify').

5 / 5

Trigger Term Quality

Includes natural phrases users would say ('writing tests with testify', 'creating mocks', 'setting up test suites', 'choosing between assert and require') plus the import path github.com/stretchr/testify as a file-style identifier.

5 / 5

Distinctiveness Conflict Risk

Tightly scoped to stretchr/testify with the specific import path trigger, giving it a clear niche with minimal overlap risk against other Go skills.

5 / 5

Total

20

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

metadata_field

'metadata' should map string keys to string values

Warning

Total

14

/

16

Passed

Repository
samber/cc-skills-golang
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.