CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

golang-patterns

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

Quality

60%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
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

50%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 catalog of Go conventions with abundant complete code examples and concrete tooling commands, making it highly actionable (4). Its main weaknesses are token efficiency — it extensively re-teaches standard Go idioms Claude already knows across ~675 lines with a redundant summary table (2) — and the absence of any workflow sequencing, validation checkpoints, or file-level structure for progressive disclosure (3/3).

Suggestions

Trim sections that restate textbook Go idioms Claude already knows (worker pools, context timeout, functional options, sync.Pool, preallocation, strings.Builder); lead with the quick-reference table plus only project-specific deviations and non-obvious conventions, cutting the file to a fraction of its current length.

Move the full .golangci.yml configuration and the '基本命令' tooling catalog into a references/ file (e.g., references/tooling.md) linked from a short section, establishing one-level-deep progressive disclosure.

Add a concrete validation workflow with checkpoints, e.g., after writing or refactoring Go code: 'go vet ./... && go test -race ./... && golangci-lint run; fix and re-run until clean', and update the stale 'i, url := i, url' loop-variable capture idiom (unnecessary since Go 1.22).

DimensionReasoningScore

Conciseness

The ~670-line body extensively restates textbook Go idioms Claude already knows (worker pools, context timeouts, errgroup, functional options, sync.Pool, strings.Builder, preallocation, gofmt/go test commands), and the "快速参考" table repeats earlier sections nearly verbatim. Code is dense with no tutorial-prose padding (above anchor 1), but the redundancy is pervasive rather than occasional (below anchor 3's 'some unnecessary explanation').

2 / 5

Actionability

Concrete, mostly executable guidance throughout: complete function definitions (LoadConfig, FetchWithTimeout, WorkerPool, NewServer with options), exact commands ('go test -race ./...'), a full .golangci.yml, and a project layout tree. Minor gaps keep it from 5: snippets reference undefined placeholder types (db, Job, Result, process()) and the errgroup example uses the stale 'i, url := i, url' loop-variable capture.

4 / 5

Workflow Clarity

This is a reference catalog rather than a multi-step workflow: the '何时激活' section gives clear activation triggers, but no sequenced process or validation checkpoints exist (e.g., no 'after refactoring: go vet, go test -race, golangci-lint' loop despite listing those commands). At ~670 lines the simple-skill exception does not apply, and there are no steps to sequence above anchor 3.

3 / 5

Progressive Disclosure

No bundle files exist (no references/, scripts/, or assets/), so everything — including the full linter config, the tooling command catalog, and the detailed pattern library — is inlined in a single ~675-line SKILL.md. Internal section structure is good (above anchor 2's 'minimal structure'), but content that clearly belongs in separate reference files is inline with zero external references, matching anchor 3 rather than 4.

3 / 5

Total

12

/

20

Passed

Description

53%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 and specifically names the Go domain and what the skill provides, with only minor conflict risk against other Go-related skills (4 on distinctiveness). However, it lists no concrete actions and completely lacks a 'when to use' trigger clause, capping specificity, trigger term quality, and completeness at 3.

Suggestions

Add an explicit 'Use when...' clause with natural trigger phrases, e.g., 'Use when writing, reviewing, or refactoring Go code, designing Go packages/modules, or when the user mentions Go/Golang best practices.'

Include one or two concrete actions in the description (e.g., 'Review and refactor Go code, design package layouts, and configure linters according to idiomatic conventions') so it reads as capabilities rather than only content categories.

Add the 'Golang' synonym and concrete trigger keywords users naturally say (Go, Golang, Go 代码审查, 重构) to improve trigger term coverage.

DimensionReasoningScore

Specificity

The description names the domain ('Go应用程序') and enumerates three specific content deliverables ('惯用Go模式、最佳实践和约定') plus target qualities ('健壮、高效且可维护'), but contains no concrete actions or verbs (nothing like 'review Go code' or 'refactor'). It is more informative than anchor 2's bare domain-plus-generic-verb ('Processes PDF files') but lists no specific actions, so it does not reach anchor 4.

3 / 5

Completeness

The 'what' is clear (provides idiomatic Go patterns, best practices, and conventions for building robust applications), but the 'when' is entirely absent — there is no 'Use when...' clause or equivalent explicit trigger guidance, which per the judging guidelines caps completeness at 3. It cannot score 4 because the 'when' is not merely under-specified, it is missing outright.

3 / 5

Trigger Term Quality

Natural terms users would say are present ('Go', '惯用Go模式', '最佳实践'), but coverage is thin: the common 'Golang' variation is missing and there is no use-when phrasing such as 'writing, reviewing, or refactoring Go code'. This matches anchor 3 ('some relevant keywords but missing common variations or synonyms') rather than 4's 'good keyword coverage'.

3 / 5

Distinctiveness Conflict Risk

The description is clearly scoped to a Go niche ('用于构建...Go应用程序的惯用Go模式'), making it mostly distinct with only minor overlap risk against narrower Go skills (e.g., Go testing or project-scaffolding skills). It falls short of anchor 5 because distinct trigger phrases are absent — without a when-clause, activation cannot be fully differentiated from related skills.

4 / 5

Total

13

/

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 (676 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

affaan-m/ECC

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.