Golang Data Structures
Go slice/map internals and container-package selection guidance, with idiomatic generics.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 13, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 6264d3f
Asked it to dedupe a slice of Go structs by ID: it swapped a bool map for a struct{}-backed generic Set[T] and preallocated both the slice and map per its own best-practices table — measurably tighter than a baseline, unguided answer.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 5/5
What Golang Data Structures does
Reference skill covering Go's built-in and standard-library data structures — slice/map internals, capacity growth, container/list/heap/ring, strings.Builder vs bytes.Buffer, generics, and unsafe/weak pointers. Triggers when choosing or optimizing Go data structures, implementing generic containers, or questioning slice/map internals.
How to install Golang Data Structures
git clone https://github.com/samber/cc-skills-golang
cd cc-skills-golang
mkdir -p ~/.claude/skills
cp -r skills/golang-data-structures ~/.claude/skills/golang-data-structures
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Golang Data Structures
-
/golang-data-structuresGo slice/map internals and container-package selection guidance, with idiomatic generics.
It also activates on plain-language prompts like these:
-
Should I use a slice or a map here, and how does Go grow capacity? -
Help me pick the right container package for this Go data structure -
Explain slice internals and generics so I can build an idiomatic container
Frequently asked questions
- Is the Golang Data Structures skill free?
- Yes. The skill itself is free from samber/cc-skills-golang. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Golang Data Structures work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 13, 2026. Verdict: Tested · Works. Asked it to dedupe a slice of Go structs by ID: it swapped a bool map for a struct{}-backed generic Set[T] and preallocated both the slice and map per its own best-practices table — measurably tighter than a baseline, unguided answer.
- What is the Golang Data Structures SkillProof Score?
- 9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
- How do I install Golang Data Structures?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Golang Data Structures with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.