🧪
QualityPython

Go Development Standards

by doccker

Go Development Standards is a Quality skill for Claude Code, published by doccker in cc-use-exp.

1K stars105 forkson doccker/cc-use-expAdded 2026/08/21Repository updated 2026/06/30
antigravityclaude-codecodexcursorgemini-cligithub-copilot
Install in seconds
Install Go Development Standards
Copy Go Development Standards into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/doccker/cc-use-exp/tree/main/skills/go-dev ~/.claude/skills/go-dev

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/doccker/cc-use-exp.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/go-dev/SKILL.md in doccker/cc-use-exp
Installs to
~/.claude/skills/go-dev
Collection
One of 23 skills cataloged from this repository
Category
Quality1354 skills

What Go Development Standards does

Go Development Standards describes naming, error handling, concurrency, testing, and performance practices for Go code. Use it when writing or reviewing Go services and libraries.

Go Development Standards is cataloged under Quality on DirSkills. Go Development Standards comes from a repository tagged antigravity, claude-code, codex, cursor and gemini-cli.

Documentation

README

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
常量 导出用驼峰,私有可驼峰或全大写 MaxRetryCount
接口 单方法用方法名+er Reader, Writer

禁止: common, util, base 等无意义包名


import 顺序

import (
    "context"           // 标准库
    "fmt"

    "github.com/gin-gonic/gin"  // 第三方库

    "project/internal/model"     // 项目内部
)

错误处理

必须处理错误,不能忽略:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Go Development Standards

  • What else does doccker publish alongside Go Development Standards?

    Go Development Standards is one of 23 skills that DirSkills catalogs from doccker/cc-use-exp, the repository it ships in. Its siblings there include API Design Safety, Api Design Safety and Api Proxy Safety. Each one is a separate skill with its own page in this directory, installs the same way Go Development Standards does, and is maintained by doccker in that same repository. The rest of the collection is listed on the doccker/cc-use-exp page.

  • How does Go Development Standards compare to other Quality skills?

    Go Development Standards ranks #838 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Go Development Standards against them. Open each page to compare what they document and how they install.

More from doccker/cc-use-exp

Go Development Standards is one of 23 skills cataloged on DirSkills from doccker/cc-use-exp.

See all 23 skills
🛡️
1w ago

API Design Safety

API Design Safety helps you design REST API responses and generated outputs with consistent field semantics, null handling, and status codes. It also checks required fields before exporting files or sending downstream payloads to avoid silent failures.
Quality
1K105
🧩
1w ago

Api Design Safety

Api Design Safety helps prevent REST API response design mistakes such as field mix-ups, ambiguous return types, and inconsistent empty values. Use it when designing or changing API responses and handling returned data.
AI Engineering
1K105
🛡️
1w ago

Api Proxy Safety

Api Proxy Safety defines safe keyword matching for gateways, proxies, WAFs, and CDNs so normal content is not misclassified as an error. It is used when implementing heuristic checks for response bodies, status codes, and error schemas.
DevOps
1K105
1w ago

Async Task Pattern

Async Task Pattern provides a standard triggerAsync/getStatus flow for operations that may run longer than 10 seconds. Use it for batch processing, remote API fan-out, or scans that would otherwise time out or be triggered twice.
Automation
1K105
🐚
1w ago

Bash Style

Bash Style provides shell scripting and command-writing conventions for .sh files, Dockerfiles, Makefiles, YAML, and Markdown bash blocks. Use it to format commands, heredocs, file writes, permissions, and script safety.
Writing
1K105
🧩
1w ago

Code Quality Principles

Code Quality Principles provides a checklist for modular design, refactoring, and code review. Use it to assess module size, call depth, fan-in/fan-out, boundaries, scope cohesion, and predictability.
Quality
1K105