Tools
Cc Skills Golang
๐งโ๐จ 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