SkillAgentSearch skills...

go-dev

Go 开发规范,包含命名约定、错误处理、并发编程、测试规范等。当操作 .go, go.mod, go.sum 文件时自动激活。

Install / Use

npx skills add doccker/cc-use-exp --skill go-dev

Installs into whichever agent you are using.

About this skill
♊

Gemini Rules

Gemini CLI config

Quality Score

63/100

Supported Platforms

Gemini CLI

Tags

Our assessment of go-dev

go-dev scores 63/100 on our quality scale, 3981st of 4,617 Development & Engineering skills we index.

Its Gemini Rules is 1.4 KB long, split into 6 sections with 3 code examples: moderately detailed.

It has no GitHub stars yet, so there is no community track record; judge it on its content.

Substance
20/30
Structure
16/20
Description
12/15
Adoption
0/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so go-dev is actively maintained.
  • Our last check on 2026-10-18 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-23. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

go-dev compared with similar skills

All 4 of these similar skills score higher than go-dev; compare them before choosing.

SkillScoreStarsUpdatedFormat
go-dev (this skill)by doccker6302mo agoGemini Rules
taste-skillby Leonxlnx100110.6ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10069.8ktodayCLAUDE.md
claude-howtoby luongnv8910046.6k2d agoCLAUDE.md
algorithmic-artby anthropics100177.9k44d agoSKILL.md

Frequently asked questions

How do I install go-dev?
Run npx skills add doccker/cc-use-exp. The install tabs above show the steps for each supported agent.
Which AI agents does go-dev work with?
It is written for Gemini CLI, as a Gemini Rules file. Other agents that read the same format can often use it too.
Is go-dev safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is go-dev still maintained?
The repository was last updated about 2 months ago, so go-dev is actively maintained.

name: go-dev description: Go 开发规范,包含命名约定、错误处理、并发编程、测试规范等。当操作 .go, go.mod, go.sum 文件时自动激活。

<instructions>

Go 开发规范

参考来源: 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)
}

// ❌ 差:忽略错误
result, _ := doSomething()

错误包装: 使用 %w 保留错误链,用 errors.Is() / errors.As() 检查。


并发编程核心原则

  • 优先使用 channel 通信。
  • 启动 goroutine 前必须明确:谁来等待它结束?如何通知它停止?
  • 必须使用 context.Context 控制生命周期。
// ✅ 使用 context 控制协程
func process(ctx context.Context) error {
    done := make(chan error, 1)
    go func() { done <- doWork() }()

    select {
    case err := <-done:
        return err
    case <-ctx.Done():
        return ctx.Err()
    }
}

性能优化建议

| 场景 | 解决方案 | |------|---------| | 循环中拼接字符串 | 使用 strings.Builder | | 未预分配 slice | make([]T, 0, cap) | | N+1 查询 | 批量查询 + 内存匹配 | | 无限制并发 | 使用 semaphore 或 worker pool |


📋 本回复遵循:go-dev - [章节]

</instructions>

Related Skills

View on GitHub
GitHub Stars0
CategoryDevelopment
Updated2mo ago
Forks0

Trust signals

80/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium1 low
go-dev — Gemini Rules: Install & Safety Check | SkillAgent