AGENT SKILL

golang-popular-libraries

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.

License 许可
MIT
所属仓库
rockcookies/skills
最近更新
2026-11-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
golang-popular-libraries
license
MIT
metadata
{ "author": "samber", "version": "1.2.0", "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, Codex or similar harness, and for projects using Golang.
user-invocable
true

02 资源文件 4

03 SKILL.md 正文

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

04 同仓库更多 Skills

rockcookies
rockcookies/skills

Kami 专业文档排版

kami

使用 Kami 模板排版专业文档:简历、一页纸、白皮书、信件、作品集和幻灯片。当用户要求做 PDF / 排版 / 简历 / 一页纸 / PPT / slides,或创建 Kami 落地页时使用。不适用于审查或重新设计现有产品网站。

内容创作者文档处理
★ 1
rockcookies
rockcookies/skills

hierarchical-agents-md

层级 AGENTS.md / README.md:init、update、audit、reorganize、trim。 初始化 Agent 指令、代码改动后同步文档、检查文档漂移、重组仓库文档层级、精简规则与 Skills。 Not for 写业务代码或生成文档站点。

★ 1
rockcookies
rockcookies/skills

VueUse 组合式函数应用

vueuse-functions

在合适的地方应用 VueUse 组合式函数(composables),以构建简洁、可维护的 Vue.js / Nuxt 功能。

软件开发工程师前端开发与界面实现
★ 1
rockcookies
rockcookies/skills

Vue.js 测试最佳实践

vue-testing-best-practices

用于 Vue.js 测试。涵盖 Vitest、Vue Test Utils、组件测试、模拟(mocking)、测试模式,以及用于 E2E 测试的 Playwright。

测试工程师测试与质量保障
★ 1
rockcookies
rockcookies/skills

Vue Router 路由最佳实践

vue-router-best-practices

Vue Router 4 模式、导航守卫、路由参数以及路由与组件生命周期的交互。

软件开发工程师前端开发与界面实现
★ 1
rockcookies
rockcookies/skills

Pinia 状态管理最佳实践

vue-pinia-best-practices

Pinia store、状态管理模式、store 配置以及 store 的响应式处理。

软件开发工程师前端开发与界面实现
★ 1