golang-skills

作者 cxuu已验证

AI Agent Skills for idiomatic, production-ready Go code, distilled from Google, Uber, Community

147
Stars
18
Forks
HTML
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/cxuu/golang-skills

快速入门

使用 golang-skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Agent Skills For Go

AI Agent Skills for writing idiomatic, production-quality Go code. 20 modular skills teach AI coding assistants Go best practices derived from:

Skills are tuned following agentskills.io best practices: content the agent already knows is omitted, procedural decision trees guide multi-step tasks, 48 reference files load on demand via progressive disclosure, 8 bundled scripts automate common checks, and 4 asset templates ensure consistent output.

Skills Included

SkillDescription
go-code-reviewSystematic checklist for reviewing Go code and PR submissions
go-concurrencyGoroutine lifecycle, channels, mutexes, parallelization, thread-safety
go-contextContext.Context placement, cancellation, deadlines, request-scoped data
go-control-flowIdiomatic conditionals, loops, switch/break behavior, guard clauses
go-data-structuresSlices, maps, arrays — allocation with new vs make, append, copying
go-declarationsVariable/const/type declarations, var vs :=, iota enums, shadowing
go-defensiveAPI boundary hardening, defer cleanup, Must functions, time handling
go-documentationDoc comments, package docs, godoc formatting, runnable examples
go-error-handlingError strategy decisions, wrapping (%v vs %w), sentinels, logging patterns
go-functional-optionsFunctional options pattern for constructors with optional config
go-functionsFunction ordering, signature formatting, Printf verbs, Stringer interface
go-genericsWhen to use generics, constraints, common pitfalls, type aliases
go-interfacesInterface design, abstractions, embedding, "accept interfaces return structs"
go-lintingLinters, golangci-lint setup, nolint directives, CI/CD integration
go-loggingStructured logging with slog, log levels, request-scoped context, migration
go-namingNaming decision flow for packages, types, functions, variables, receivers
go-packagesPackage organization, imports, package size, CLI/flag patterns
go-performanceString optimization, capacity hints, benchmarking, strconv over fmt
go-style-coreFormatting, nesting reduction, style principles, fallback style guide
go-testingTable-driven tests, subtests, test helpers, assertions, test organization

Bundled Scripts

8 scripts automate common Go checks. All support --help, --json for structured output, and meaningful exit codes (0 = clean, 1 = issues found, 2 = error). Analysis scripts support --limit to cap output size, and destructive scripts require --force to overwrite existing files.

ScriptSkillPurpose
pre-review.shgo-code-reviewRun gofmt + go vet + golangci-lint before review
check-naming.shgo-namingDetect SCREAMING_SNAKE, Get-prefixed getters, bad package names
check-docs.shgo-documentationFind exported symbols missing doc comments
check-errors.shgo-error-handlingCatch bare returns, string comparison on errors, log-and-return
check-interface-compliance.shgo-interfacesFind interfaces missing compile-time verification
bench-compare.shgo-performanceRun benchmarks with optional benchstat comparison
setup-lint.shgo-lintingGenerate .golangci.yml with recommended linters
gen-table-test.shgo-testingScaffold a table-driven test file

Quick Install

Using npx skills (Recommended)

The easiest way to install across any AI coding agent. Supports Cursor, Codex, OpenCode, Cline, GitHub Copilot, Windsurf, Roo Code, and 25+ more agents.

npx skills add cxuu/golang-skills --all

Claude Code

# Add the marketplace (one time)
/plugin marketplace add cxuu/golang-skills

# Install the skills
/plugin install golang-skills@cxuu-golang-skills

Cursor (Native Remote Rule)

  1. Open Cursor Settings (Cmd+Shift+J on Mac, Ctrl+Shift+J on Windows/Linux)
  2. Navigate to RulesAdd RuleRemote Rule (Github)
  3. Enter: https://github.com/cxuu/golang-skills

How It Works

These skills follow the Agent Skills open standard, which works across multiple AI coding tools. When you're writing Go code:

  1. Automatic activation: The AI agent loads relevant skills based on context (e.g., go-naming when you're writing a new function)
  2. Procedural guidance: Decision trees and step-by-step procedures for multi-step tasks like code review and error strategy selection
  3. Progressive disclosure: Core rules load immediately; 48 reference files load on demand when specific situations arise
  4. Automation: 8 bundled scripts handle repetitive checks so the agent focuses on higher-level guidance
  5. Conditional cross-references: Skills link to each other with "when" conditions to avoid unnecessary context loading
  6. Rule ownership: docs/RULE_OWNERSHIP.md keeps duplicated guidance out of non-owner skills

Project Structure

.
├── skills/
│   └── go-*/
│       ├── SKILL.md      # Core rules (< 225 lines each)
│       ├── references/   # Detailed guidance, loaded on demand
│       ├── scripts/      # Automation scripts and helpers
│       └── assets/       # Output templates (4 skills)
├── evals/
│   ├── evals.json        # Trigger and quality eval definitions
│   ├── files/            # Sample Go files for quality evals
│   └── fixtures/         # Test fixtures for script/eval coverage
├── docs/                 # Repository maintenance notes
├── .github/workflows/    # CI validation
└── source/               # Original style guide sources

Provenance and Compatibility

Bundled upstream source snapshots live under source/. Each source file keeps its own inline provenance header, and THIRD_PARTY_NOTICES.md summarizes the source path, upstream project, URL, license, and copyright at the repository level.

Go-version-sensitive guidance is tracked in COMPATIBILITY.md. When a skill recommends a standard-library API that depends on a specific Go release, the guidance should name the minimum Go version and include an older fallback where that helps users on maintained but older toolchains.

License

Project-authored skill files, scripts, assets, docs, and evals are licensed under the Apache License, Version 2.0. See LICENSE for details. Bundled upstream snapshots under source/ retain their upstream licenses; see THIRD_PARTY_NOTICES.md.

常见问题

What is golang-skills?

golang-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by cxuu. AI Agent Skills for idiomatic, production-ready Go code, distilled from Google, Uber, Community. It has 147 GitHub stars.

Is golang-skills safe to use?

Yes. golang-skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install golang-skills?

Clone the repository with "git clone https://github.com/cxuu/golang-skills" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is golang-skills written in?

golang-skills is primarily written in HTML. It is open-source under cxuu on GitHub, so you can review or fork the full source.

Are there alternatives to golang-skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh golang-skills against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
golang-skills — Claude Code AI Skill | SkillTip