# Golang Idioms (agent skill)

> Golang Idioms is an agent skill (a SKILL.md file) from rohitg00/awesome-claude-code-toolkit. Idiomatic Go patterns for error handling, interfaces, concurrency, testing, and module management. It works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode and has 2,683 GitHub stars across a repository of 3 listed skills.

Idiomatic Go patterns for error handling, interfaces, concurrency, testing, and module management Rules: - Always wrap errors with context using fmt.Errorf("context: %w", err) - Use %w to allow callers to use errors.Is and errors.As - Handle errors at the appropriate level; do not log and return the same error - Define sentinel errors for expected conditions

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/rohitg00/awesome-claude-code-toolkit |
| Skill path | skills/golang-idioms/SKILL.md |
| Skill name | golang-idioms |
| GitHub stars | 2,683 |
| Installs on skills.sh | not listed |
| License | Apache-2.0 |
| Skills in repo | 3 |
| Plugin marketplace | claude-code-toolkit |
| Official | no |
| Works with | Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode |
| Category | Coding |
| Last commit | May 12, 2026 |

## Add this skill

### Claude Code

```sh
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin   # browse claude-code-toolkit and install the plugin that contains golang-idioms
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit.git
cp -r awesome-claude-code-toolkit/skills/golang-idioms .agents/skills/golang-idioms   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit.git
cp -r awesome-claude-code-toolkit/skills/golang-idioms .cursor/skills/golang-idioms   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/rohitg00-golang-idioms
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
