CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-testing

Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.

72

1.12x
Quality

64%

Does it follow best practices?

Impact

80%

1.12x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./docs/zh-TW/skills/golang-testing/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

63%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.

The content is a well-organized, highly actionable Go testing reference dominated by executable code examples and a clearly sequenced TDD workflow with validation checkpoints. Its weaknesses are length (it re-covers basics Claude already knows) and the complete absence of progressive disclosure — everything lives inline in one ~700-line file with no reference bundle.

Suggestions

Split specialized sections (golden files, mocking, benchmarks, fuzzing, CI/CD integration) into one-level-deep reference files under references/ and keep SKILL.md as a concise overview with clear pointers.

Trim sections that re-explain what Claude already knows, such as the trivial step-by-step TestAdd walkthrough and the basic `go test` flag listing.

Make every code snippet self-contained and compilable, e.g. give the `PostgresUserRepository.GetUser` stub a return statement or elide the production implementation entirely.

DimensionReasoningScore

Conciseness

The body is mostly tight code examples with little prose fluff, but sections like the trivial step-by-step TestAdd walkthrough, the red-green-refactor explainer, and the basic `go test` flag list re-explain concepts Claude already knows, matching the "mostly efficient but could be tightened" anchor. It is below 4 because this redundant material spans several sections of a ~700-line file.

3 / 5

Actionability

Nearly all guidance is executable: complete table-driven test structs, `t.Helper()`/`t.Cleanup()` helpers, `httptest` handler tests, and copy-paste shell commands for coverage and fuzzing. It falls short of 5 because a few snippets are not self-contained or compilable (e.g. the `PostgresUserRepository.GetUser` implementation has no return statement, and `Process`/`Compare`/`generateTestData` are undefined).

4 / 5

Workflow Clarity

The TDD cycle is explicitly sequenced with validation checkpoints ("執行測試 - 驗證失敗" / "驗證通過") and the do/don't best-practices list functions as a checklist, matching the "clear sequence with most checkpoints" anchor. It is not 5 because step 6 (refactor) lacks an explicit re-verification instruction and some sections give patterns without a verify step.

4 / 5

Progressive Disclosure

The body has well-organized section headers, but it is a monolithic ~700-line single file with no bundle files at all, where golden files, mocking, benchmarks, fuzzing, and CI/CD integration each clearly belong in separate reference files. Good sectioning keeps it above the "minimal structure" anchor 2, while the total inlining and complete absence of one-level-deep references keep it below anchor 4.

3 / 5

Total

14

/

20

Passed

Description

66%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.

The description is specific and well-targeted at the Go testing domain, naming five concrete testing patterns with natural trigger keywords. Its main weakness is the absence of any "Use when..." trigger guidance, which limits discoverability and caps completeness.

Suggestions

Add an explicit trigger clause, e.g. "Use when writing Go tests, running benchmarks or fuzz tests, or following a TDD workflow in Go".

Include common user synonyms such as "golang", "unit tests", and ".go test files" to broaden natural trigger matching.

Mention additional covered capabilities such as mocking with interfaces and golden-file tests so the "what" is comprehensive.

DimensionReasoningScore

Specificity

"table-driven tests, subtests, benchmarks, fuzzing, and test coverage" lists five concrete, named patterns, matching the 'several specific actions with minor gaps' anchor; it falls short of 5 because mocking, golden-file tests, and HTTP handler testing are not mentioned.

4 / 5

Completeness

The "what" is clearly stated ("Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage"), but there is no "Use when..." clause or equivalent trigger guidance, which the guidelines explicitly cap at 3. It is above 2 because the "what" is concrete rather than vague.

3 / 5

Trigger Term Quality

Terms like "Go testing", "benchmarks", "fuzzing", and "test coverage" are phrases users naturally say, giving good keyword coverage; common variants like "golang", "unit tests", or "_test.go" are missing, keeping it below the comprehensive anchor 5.

4 / 5

Distinctiveness Conflict Risk

"Go testing" carves out a clear niche that would rarely trigger for non-Go skills, matching "mostly distinct; minor overlap risk"; it is not 5 because the description could still overlap with a generic TDD or unit-testing skill and lacks a distinct explicit trigger phrase.

4 / 5

Total

15

/

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.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (711 lines); consider splitting into references/ and linking

Warning

relative_links

Relative link issues: 1 missing

Warning

Total

14

/

16

Passed

Repository
affaan-m/ECC
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.