CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

golang-patterns

用于构建健壮、高效且可维护的Go应用程序的惯用Go模式、最佳实践和约定。

1.07x
Quality

63%

Does it follow best practices?

Impact

96%

1.07x

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-CN/skills/golang-patterns/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 body is a well-organized, highly actionable catalog of Go patterns with excellent executable examples, but it is a monolithic ~675-line document that largely restates standard Go knowledge Claude already possesses. Splitting into lean overview plus one-level-deep references and cutting well-known material would substantially improve token efficiency.

Suggestions

Split the body into a lean SKILL.md overview (key principles + navigation) and one-level-deep reference files, e.g. references/error-handling.md, references/concurrency.md, references/tooling.md.

Remove or drastically condense patterns Claude already knows well (strings.Builder vs concatenation, io.Reader/Writer definitions, gofmt usage) and keep only project-specific or non-obvious conventions.

Move the full .golangci.yml config and the go command cheat sheet into a separate reference file, keeping only the project's canonical commands inline.

DimensionReasoningScore

Conciseness

At ~675 lines, the body extensively catalogs standard Go knowledge Claude already has — error wrapping with %w, worker pools, context timeouts, sync.Pool, strings.Builder, functional options, io.Reader — which is re-teaching known material rather than adding new information. The code-heavy format avoids padded prose, but the sheer volume of familiar content is noticeably wasteful of the context window.

2 / 5

Actionability

Examples are concrete, executable, and copy-paste ready with consistent Good/Bad contrasts covering the common cases: 'results := make([]Result, 0, len(items))', the errgroup FetchAll example, the GracefulShutdown function, and the full .golangci.yml config. Minor fragments (undefined process/job helpers) are acceptable pattern illustrations.

5 / 5

Workflow Clarity

As a pattern catalog there is no multi-step process to sequence, and the sections (core principles, error handling, concurrency, interfaces, packaging, tooling) are clearly organized with unambiguous guidance. It falls just short of 5 because no activation-to-application workflow (e.g., how to sequence a code review against these patterns) is given; there are no destructive or batch operations that would require validation checkpoints.

4 / 5

Progressive Disclosure

The skill is a single monolithic ~675-line SKILL.md with no bundle files (no references/, scripts/, or assets/ exist). Section headers provide reasonable structure, but content that clearly belongs in separate reference files — the full pattern catalog, the .golangci.yml config, the tooling command list — is inlined, matching 'Some structure but could be better organized; content that should be separate is inline'.

3 / 5

Total

14

/

20

Passed

Description

48%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 clearly identifies its Go niche but reads as a topic label rather than a capability statement: it enumerates no concrete actions and provides no 'use when' trigger guidance. Adding explicit triggers and one or two specific capabilities would materially improve it.

Suggestions

Add an explicit trigger clause, e.g. 'Use when writing, reviewing, or refactoring Go code, or when designing Go packages/modules' (the body's 何时激活 section already contains these triggers — surface them in the description).

Replace generic descriptors ('最佳实践和约定') with concrete capabilities such as error-wrapping patterns, worker pools, graceful shutdown, or project-layout conventions.

Include common synonym terms like 'golang' and 'Go modules' so natural user phrasings match the description.

DimensionReasoningScore

Specificity

The description "用于构建健壮、高效且可维护的Go应用程序的惯用Go模式、最佳实践和约定" names the domain clearly but lists no concrete actions — "patterns, best practices, and conventions" are generic descriptors, matching the anchor 'Names the domain but actions are minimal or generic'.

2 / 5

Completeness

The 'what' is stated clearly (idiomatic Go patterns and conventions), but the 'when' is entirely absent — there is no 'Use when...' clause or equivalent trigger guidance, which caps completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

"Go" and "Go应用程序" are relevant keywords a user might say, but common variations and synonyms such as "golang", "Go code", or "Go module" are missing, matching 'Some relevant keywords but missing common variations or synonyms'.

3 / 5

Distinctiveness Conflict Risk

The Go-specific niche is clear and unlikely to trigger for unrelated skills, though it could overlap with general coding-standards or code-review skills — matching 'Mostly distinct; minor overlap risk with closely related skills'.

4 / 5

Total

12

/

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 (675 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository

xu-xiang/everything-claude-code-zh

Path

docs/zh-CN/skills/golang-patterns/SKILL.md

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.