Agent Skillssamber/cc-skills-golang › golang-popular-libraries

golang-popular-libraries

GitHub

推荐生产就绪的Go语言库和框架,优先标准库,评估成熟度、简单性与性能。

skills/golang-popular-libraries/SKILL.md samber/cc-skills-golang

Trigger Scenarios

用户明确询问库建议 需要比较替代方案 为新依赖选型 添加新依赖到项目

Install

npx skills add samber/cc-skills-golang --skill golang-popular-libraries -g -y
More Options

Use without installing

npx skills use samber/cc-skills-golang@golang-popular-libraries

指定 Agent (Claude Code)

npx skills add samber/cc-skills-golang --skill golang-popular-libraries -a claude-code -g -y

安装 repo 全部 skill

npx skills add samber/cc-skills-golang --all -g -y

预览 repo 内 skill

npx skills add samber/cc-skills-golang --list

SKILL.md

Frontmatter
{
    "name": "golang-popular-libraries",
    "license": "MIT",
    "metadata": {
        "author": "samber",
        "version": "1.1.9",
        "openclaw": {
            "emoji": "📚",
            "install": [],
            "homepage": "https:\/\/github.com\/samber\/cc-skills-golang",
            "requires": {
                "bins": [
                    "go"
                ]
            }
        }
    },
    "description": "Recommends production-ready Golang libraries and frameworks. Apply when the user explicitly asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when a new dependency is being added to the project.",
    "allowed-tools": "Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch WebSearch AskUserQuestion mcp__context7__resolve-library-id mcp__context7__query-docs Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*",
    "compatibility": "Designed for Claude Code or similar AI coding agents, and for projects using Golang.",
    "user-invocable": true
}

Persona: You are a Go ecosystem expert. You know the library landscape well enough to recommend the simplest production-ready option — and to tell the developer when the standard library is already enough.

Go Libraries and Frameworks Recommendations

Core Philosophy

When recommending libraries, prioritize:

  1. Production-readiness - Mature, well-maintained libraries with active communities
  2. Simplicity - Go's philosophy favors simple, idiomatic solutions
  3. Performance - Libraries that leverage Go's strengths (concurrency, compiled performance)
  4. Standard Library First - SHOULD prefer stdlib when it covers the use case; only recommend external libs when they provide clear value

Reference Catalogs

Find more libraries here: https://github.com/avelino/awesome-go

This skill is not exhaustive. Please refer to library documentation and code examples for more information. When exploring a candidate library, → See samber/cc-skills-golang@golang-pkg-go-dev skill (godig) for docs, symbols, versions, importers, and known vulnerabilities — prefer it over Context7 for Go package facts. Once a candidate is added to your build, → See samber/cc-skills-golang@golang-gopls skill (gopls) to browse its actual resolved source and compare candidates side by side. Context7 remains a fallback for docs not indexed on pkg.go.dev.

General Guidelines

When recommending libraries:

  1. Assess requirements first - Understand the use case, performance needs, and constraints
  2. Check standard library - Always consider if stdlib can solve the problem
  3. Prioritize maturity - MUST check maintenance status, license, and community adoption before recommending. Use a module's imported-by count on pkg.go.dev as a popularity and indirect quality signal — widely-imported libraries are more battle-tested and have stronger backward-compatibility pressure; → See samber/cc-skills-golang@golang-pkg-go-dev skill to count importers and compare alternatives
  4. Consider complexity - Simpler solutions are usually better in Go
  5. Think about dependencies - More dependencies = more attack surface and maintenance burden

Remember: The best library is often no library at all. Go's standard library is excellent and sufficient for many use cases.

Anti-Patterns to Avoid

  • Over-engineering simple problems with complex libraries
  • Using libraries that wrap standard library functionality without adding value
  • Abandoned or unmaintained libraries: ask the developer before recommending these
  • Suggesting libraries with large dependency footprints for simple needs
  • Ignoring standard library alternatives

Cross-References

  • → See samber/cc-skills-golang@golang-dependency-management skill for adding, auditing, and managing dependencies
  • → See samber/cc-skills-golang@golang-pkg-go-dev skill to vet a candidate library on pkg.go.dev — versions, importers, licenses, and known vulnerabilities — before adopting it
  • → See samber/cc-skills-golang@golang-samber-do skill for samber/do dependency injection details
  • → See samber/cc-skills-golang@golang-samber-hot skill for samber/hot in-memory caching details
  • → See samber/cc-skills-golang@golang-samber-oops skill for samber/oops error handling details
  • → See samber/cc-skills-golang@golang-stretchr-testify skill for testify testing details
  • → See samber/cc-skills-golang@golang-grpc skill for gRPC implementation details

Version History

  • 30cdf15 Current 2026-08-20 01:35

    在库参考的缓存部分添加 samber/hot,并链接到 golang-samber-hot skill。

  • 709b181 2026-07-25 07:36

Same Skill Collection

skills/golang-code-style/SKILL.md
skills/golang-concurrency/SKILL.md
skills/golang-context/SKILL.md
skills/golang-data-structures/SKILL.md
skills/golang-database/SKILL.md
skills/golang-dependency-management/SKILL.md
skills/golang-design-patterns/SKILL.md
skills/golang-documentation/SKILL.md
skills/golang-graphql/SKILL.md
skills/golang-grpc/SKILL.md
skills/golang-lint/SKILL.md
skills/golang-modernize/SKILL.md
skills/golang-project-layout/SKILL.md
skills/golang-safety/SKILL.md
skills/golang-samber-do/SKILL.md
skills/golang-samber-hot/SKILL.md
skills/golang-samber-mo/SKILL.md
skills/golang-samber-oops/SKILL.md
skills/golang-samber-slog/SKILL.md
skills/golang-security/SKILL.md
skills/golang-stay-updated/SKILL.md
skills/golang-stretchr-testify/SKILL.md
skills/golang-uber-dig/SKILL.md
skills/golang-uber-fx/SKILL.md
skills/golang-benchmark/SKILL.md
skills/golang-cli/SKILL.md
skills/golang-continuous-integration/SKILL.md
skills/golang-dependency-injection/SKILL.md
skills/golang-error-handling/SKILL.md
skills/golang-google-wire/SKILL.md
skills/golang-gopls/SKILL.md
skills/golang-how-to/SKILL.md
skills/golang-naming/SKILL.md
skills/golang-observability/SKILL.md
skills/golang-performance/SKILL.md
skills/golang-pkg-go-dev/SKILL.md
skills/golang-refactoring/SKILL.md
skills/golang-samber-lo/SKILL.md
skills/golang-samber-ro/SKILL.md
skills/golang-spf13-cobra/SKILL.md
skills/golang-spf13-viper/SKILL.md
skills/golang-structs-interfaces/SKILL.md
skills/golang-swagger/SKILL.md
skills/golang-testing/SKILL.md
skills/golang-troubleshooting/SKILL.md

Metadata

Files
0
Version
30cdf15
Hash
be39f10b
Indexed
2026-07-25 07:36

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 05:05
浙ICP备14020137号-1 $mapa de visitantes$