Sign inGet started
–

golang-data-structures

by samber/cc-skills-golang · Coding & Development

Guidance on choosing and correctly using Go's built-in and standard library data structures, including slice/map internals, container packages, generics, and pointer semantics.

Lift · GLM-5.3-flash—not yet benchmarked
90
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buckets, maps package), arrays, container/list/heap/ring, strings.Builder vs bytes.Buffer, generic collections, pointers (unsafe.Pointer, weak.Pointer), and copy semantics. Use when choosing or optimizing Go data structures, implementing generic containers, using container/ packages, unsafe or weak pointers, or questioning slice/map internals. Not for applying optimization patterns once profiling has identified a bottleneck (→ See `samber/cc-skills-golang@golang-performance` skill).

#data-structures#generics#golang#maps#performance#slices

Quality judgment

completeness
8.5/10
clarity
9.0/10
trigger quality
8.5/10
examples
7.5/10
structure
9.0/10
overall
8.5/10

Comprehensive, well-organized coverage of Go data structures with accurate internals (growth thresholds, bucket layout, unsafe.Pointer rules), clear cross-references, and a useful mistakes table. Inline examples are brief but appropriate for a summary-style skill that defers depth to reference files; trigger description is specific with good negative scoping.

allowed-tools

Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__* mcp__context7__resolve-library-id mcp__context7__query-docs

Files (8)

evals/evals.json · 19.6 KBLICENSE · 1.0 KBreferences/containers.md · 4.0 KBreferences/generics.md · 2.5 KBreferences/map-internals.md · 2.5 KBreferences/pointers.md · 4.2 KBreferences/slice-internals.md · 1.9 KBSKILL.md · 10.4 KB