Install any skill in seconds. Free to start, no credit card required.
Get Started Free →doccker/go-dev
Go 开发规范,包含命名约定、错误处理、并发编程、测试规范等
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
4 fixed17 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I have a Go interface with a single method 'Execute()'. What is the idiomatic Go naming convention for this interface?
| Checked | Without skill | With skill |
|---|---|---|
| Names the single-method interface Executer | Missed | Passed |
The instructions your model reads when the skill loads.
参考来源: Effective Go、Go Code Review Comments、uber-go/guide
goimports -w . # 格式化并整理 import
go vet ./... # 静态分析
golangci-lint run # 综合检查(推荐)
go test -v -race -cover ./... # 测试(含竞态检测和覆盖率)
| 类型 | 规则 | 示例 |
|---|---|---|
| 包名 | 小写单词,不用下划线 | user, orderservice |
| 变量/函数 | 驼峰命名,缩写词一致大小写 | userID, HTTPServer |
| 接口 | 单方法用方法名+er | Reader, Writer |
禁止: common, util, base 等无意义包名。
必须处理错误,严禁忽略:
// ✅ 好:添加上下文包装
if err != nil {
return fmt.Errorf("failed to query user %d: %w", userID, err)
}
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.