← Back to Plugins
Tools

Cc Skills Golang

samber By samber ⭐ 3674 stars 👁 26 views ▲ 0 votes

๐Ÿง‘โ€๐ŸŽจ A collection of Golang agentic skills that works

README

# Agent Skills for production-ready Golang projects

AI agent skills are reusable instruction sets that extend your coding assistant with domain-specific expertise, loaded on demand so they don't bloat your context. This repository covers **Go-specific** skills only (language, testing, security, observability, etc.); for dev workflow skills (git conventions, CI/CD, PR reviews) you'll want to add a separate skills plugin.

For non-Golang skills, please visit [cc-skills](https://github.com/samber/cc-skills).

<!-- prettier-ignore-start -->

> [!IMPORTANT]
> Bootstrapped with Claude Code by distilling my Go project commits. **Edited, tested, reviewed and reworked by a human**.
>
> **No AI slop here.** AI-made skills are useless.
>
> Built for Claude Code, Codex, Gemini, Copilot, Antigravity, Cursor...

<!-- prettier-ignore-end -->

<img width="1414" height="491" alt="image" src="https://github.com/user-attachments/assets/620b5835-c1ba-4ea9-bf47-2293b58b879e" />

## ๐Ÿš€ How to use

**Install with [skills](https://skills.sh/) CLI** (universal, works with any [Agent Skills](https://agentskills.io)-compatible tool):

```bash
npx skills add https://github.com/samber/cc-skills-golang --all
# or a single skill:
npx skills add https://github.com/samber/cc-skills-golang --skill golang-performance
```

<!-- prettier-ignore-start -->

<details>
<summary>Claude Code</summary>

```bash
/plugin marketplace add samber/cc
/plugin install cc-skills-golang@samber
```

</details>

<details>
<summary>Openclaw</summary>

Copy skills into the cross-client discovery directory:

```bash
git clone https://github.com/samber/cc-skills-golang.git ~/.openclaw/skills/cc-skills-golang
# or in workspace:
git clone https://github.com/samber/cc-skills-golang.git ~/.openclaw/workspace/skills/cc-skills-golang
```

</details>

<details>
<summary>Gemini CLI</summary>

```bash
gemini extensions install https://github.com/samber/cc-skills-golang
```

Update with `gemini extensions update cc-skills-golang`.

</details>

<details>
<summary>Cursor</summary>

Copy skills into the cross-client discovery directory:

```bash
git clone https://github.com/samber/cc-skills-golang.git  ~/.cursor/skills/cc-skills-golang
```

Cursor auto-discovers skills from `.agents/skills/` and `.cursor/skills/`.

</details>

<details>
<summary>Copilot</summary>

Copy skills into the cross-client discovery directory:

```bash
/plugin install https://github.com/samber/cc-skills-golang
# or
git clone https://github.com/samber/cc-skills-golang.git ~/.copilot/skills/cc-skills-golang
```

Copilot auto-discovers skills from `.copilot/skills/`.

</details>

<details>
<summary>OpenCode</summary>

Copy skills into the cross-client discovery directory:

```bash
git clone https://github.com/samber/cc-skills-golang.git ~/.agents/skills/cc-skills-golang
```

OpenCode auto-discovers skills from `.agents/skills/`, `.opencode/skills/`, and `.claude/skills/`.

</details>

<details>
<summary>Codex (OpenAI)</summary>

Install the plugin via the Codex CLI:

```bash
codex plugin add github:samber/cc-skills
```

Update with `codex plugin update cc-skills`. Falls back to a manual clone if the marketplace path is unavailable:

```bash
git clone https://github.com/samber/cc-skills.git ~/.agents/skills/cc-skills
```

Codex auto-discovers skills from `~/.agents/skills/` and `.agents/skills/`.

</details>

<details>
<summary>Antigravity</summary>

Clone and symlink into the cross-client discovery path:

```bash
git clone https://github.com/samber/cc-skills-golang.git ~/.antigravity/skills/cc-skills-golang
```

Update with `cd ~/.antigravity/skills/cc-skills-golang && git pull`.

</details>

<!-- prettier-ignore-end -->

## ๐Ÿงฉ Skills

These skills are designed as **atomic, cross-referencing units**. A skill may reference conventions defined in another (e.g. error-handling rules that affect logging live in `golang-error-handling`, not `golang-observability`). Installing only a subset will give you a partial and potentially inconsistent view of the guidelines. For best results, install all general-purpose skills together.

```
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚             Golang Skills              โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                            โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ–ผ                 โ–ผ                      โ–ผ                      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Code Quality โ”‚ โ”‚ Arch & Designโ”‚ โ”‚    QA & Perf    โ”‚ โ”‚    Project Start     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ code-style   โ”‚ โ”‚ design-patt  โ”‚ โ”‚ testing         โ”‚ โ”‚ project-layout       โ”‚
โ”‚ naming       โ”‚ โ”‚ concurrency  โ”‚ โ”‚ benchmark       โ”‚ โ”‚ popular-libs         โ”‚
โ”‚ error-handl  โ”‚ โ”‚ context      โ”‚ โ”‚ performance     โ”‚ โ”‚ cli                  โ”‚
โ”‚ safety       โ”‚ โ”‚ dep-inject   โ”‚ โ”‚ troubleshoot    โ”‚ โ”‚ continuous-integ.    โ”‚
โ”‚ structs-ifaceโ”‚ โ”‚ data-structs โ”‚ โ”‚ observability   โ”‚ โ”‚ stay-updated         โ”‚
โ”‚ documentationโ”‚ โ”‚ database     โ”‚ โ”‚                 โ”‚ โ”‚ dep-management       โ”‚
โ”‚ lint         โ”‚ โ”‚ modernize    โ”‚ โ”‚                 โ”‚ โ”‚ gopls                โ”‚
โ”‚ security     โ”‚ โ”‚ refactoring  โ”‚ โ”‚                 โ”‚ โ”‚ pkg-go-dev           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚                      Framework / Library Skills                         โ”‚
    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
    โ”‚   APIs       โ”‚      DI        โ”‚  Frameworks  โ”‚  samber/*   โ”‚  Testing  โ”‚
    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
    โ”‚ grpc         โ”‚ google-wire    โ”‚ spf13-cobra  โ”‚ samber-lo   โ”‚ stretchr- โ”‚
    โ”‚ graphql      โ”‚ uber-dig       โ”‚ spf13-viper  โ”‚ samber-mo   โ”‚  testify  โ”‚
    โ”‚ swagger      โ”‚ uber-fx        โ”‚              โ”‚ samber-ro   โ”‚           โ”‚
    โ”‚              โ”‚                โ”‚              โ”‚ samber-do   โ”‚           โ”‚
    โ”‚              โ”‚                โ”‚              โ”‚ samber-hot  โ”‚           โ”‚
    โ”‚              โ”‚                โ”‚              โ”‚ samber-slog โ”‚           โ”‚
    โ”‚              โ”‚                โ”‚              โ”‚ samber-oops โ”‚           โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

```

- โญ๏ธ Recommended
- โœ… Published
- ๐Ÿ‘ท Work in progress
- โŒ To-do
- โšก Command available
- ๐Ÿง  Ultrathink automatically
- ๐Ÿค– Ultracode automatically
- โš™๏ธ Overridable (see doc below)
- **Description (tok)**: weight of the `description` field from YAML frontmatter, always loaded into Claude's context for skill triggering
- **SKILL.md (tok)**: weight of the full `SKILL.md` file loaded when the skill triggers
- **Directory (tok)**: weight of all files in the skill directory (SKILL.md + referenced markdown files)

**General purpose:**

<!-- markdownlint-disable table-column-style -->

|  | Skill | Flags | Error rate gap | Description (tok) | SKILL.md (tok) | Directory (tok) |
| --- | --- | --- | --- | --- | --- | --- |
| โญ๏ธ | โœ… `golang-code-style` | โšก ๐Ÿค– โš™๏ธ | -40% | 114 | 2,358 | 2,974 |
| โญ๏ธ | โœ… `golang-data-structures` | โšก | -39% | 93 | 2,608 | 6,327 |
| โญ๏ธ | โœ… `golang-database` | โšก โš™๏ธ | -38% | 97 | 2,721 | 7,243 |
| โญ๏ธ | โœ… `golang-design-patterns` | โšก โš™๏ธ | -37% | 80 | 2,694 | 9,400 |
| โญ๏ธ | โœ… `golang-documentation` | โšก ๐Ÿค– โš™๏ธ | -53% | 75 | 3,163 | 11,876 |
| โญ๏ธ | โœ… `golang-error-handling` | โšก ๐Ÿค– โš™๏ธ | -26% | 141 | 1,734 | 4,693 |
| โญ๏ธ | โœ… `golang-how-to` | โšก | โ€” | 184 | 4,210 | 17,583 |
| โญ๏ธ | โœ… `golang-modernize` | โšก ๐Ÿค– | -43% | 104 | 3,486 | 15,145 |
| โญ๏ธ | โœ… `golang-naming` | โšก โš™๏ธ | -23% | 159 | 3,031 | 7,399 |
| โญ๏ธ | โœ… `golang-refactoring` | โšก ๐Ÿง  ๐Ÿค– โš™๏ธ | โ€” | 245 | 3,835 | 20,392 |
| โญ๏ธ | โœ… `golang-safety` | โšก | -58% | 78 | 2,614 | 5,384 |
| โญ๏ธ | โœ… `golang-testing` | โšก ๐Ÿง  ๐Ÿค– โš™๏ธ | -32% | 115 | 4,270 | 8,822 |
| โญ๏ธ | โœ… `golang-troubleshooting` | โšก ๐Ÿง  ๐Ÿค– | -32% | 173 | 2,993 | 18,035 |
| โญ๏ธ | โœ… `golang-security` | โšก ๐Ÿง  ๐Ÿค– | -32% | 85 | 3,187 | 21,623 |
|  | โœ… `golang-benchmark` | โšก ๐Ÿง  | -50% | 102 | 3,153 | 33,396 |
|  | โœ… `golang-cli` | โšก | -43% | 125 | 2,338 | 6,153 |
|  | โœ… `golang-concurrency` | โšก ๐Ÿค– โš™๏ธ | -39% | 72 | 2,196 | 6,826 |
|  | โœ… `golang-context` | โšก โš™๏ธ | -34% | 82 | 1,211 | 4,021 |
|  | โœ… `golang-continuous-integration` | โšก | -59% | 177 | 3,542 | 12,804 |
|  | โœ… `golang-dependency-injection` | โšก ๐Ÿค– โš™๏ธ | -47% | 178 | 3,016 | 5,287 |
|  | โœ… `golang-dependency-management` | โšก | -54% | 77 | 2,407 | 5,545 |
|  | โœ… `golang-structs-interfaces` | โšก โš™๏ธ | -35% | 111 | 3,076 | 3,076 |
|  | โœ… `golang-lint` | โšก ๐Ÿค– | -41% | 98 | 1,877 | 6,295 |
|  | โœ… `golang-observability` | โšก ๐Ÿค– โš™๏ธ | -37% | 164 | 3,128 | 19,583 |
|  | โœ… `golang-performance` | โšก ๐Ÿง  ๐Ÿค– | -39% | 130 | 2,226 | 19,820 |
|  | โœ… `golang-gopls` | โšก | โ€” | 219 | 2,317 | 12,312 |
|  | โœ… `golang-pkg-go-dev` | โšก | โ€” | 170 | 3,442 | 5,386 |
|  | โœ… `golang-popular-libraries` | โšก | -30% | 156 | 1,181 | 5,093 |
|  | โœ… `golang-project-layout` | โšก | -38% | 105 | 1,761 | 6,257 |
|  | โœ… `golang-stay-updated` | โšก | -56% | 44 | 1,802 | 1,802 |

**Tools:**

| Skill | Flags | Error rate gap | Description (tok) | SKILL.md (tok) | Directory (tok) |
| --- | --- | --- | --- | --- | --- |
| โœ… `golang-google-wire` | โšก | -16% | 122 | 2,670 | 7,400 |
| โœ… `golang-graphql` |  | -16% | 76 | 3,070 | 7,941 |
| โœ… `golang-grpc` | โšก | -41% | 70 | 2,341 | 5,157 |
| โœ… `golang-spf13-cobra` | โšก | โ€” | 176 | 2,580 | 7,351 |
| โœ… `golang-spf13-viper` | โšก | โ€” | 170 | 2,551 | 7,098 |
| โœ… `golang-swagger` | โšก | โ€” | 144 | 2,342 | 3,347 |
| โœ… `golang-uber-dig` | โšก | -10% | 107 | 2,585 | 6,257 |
| โœ… `golang-uber-fx` | โšก | -5% | 118 | 2,825 | 7,060 |
| โœ… `golang-samber-do` | โšก | -81% | 71 | 2,145 | 3,660 |
| โœ… `golang-samber-hot` | โšก | -54% | 119 | 1,986 | 7,416 |
| โœ… `golang-samber-lo` | โšก | -40% | 166 | 2,610 | 10,288 |
| โœ… `golang-samber-mo` | โšก ๐Ÿง  | -

... (truncated)
tools

Comments

Sign in to leave a comment

Loading comments...