[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75XPWT6EAP5M2DZZQGZCBMV":3,"skill-same:01M75XPWT6EAP5M2DZZQGZCBMV":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":57},"01M75XPWT6EAP5M2DZZQGZCBMV","golang-samber-lo",null,"Functional programming helpers for Golang using samber\u002Flo — 500+ type-safe generic functions for slices, maps, channels, strings, math, tuples, and concurrency (Map, Filter, Reduce, GroupBy, Chunk, Flatten, Find, Uniq, etc.). Core immutable package (lo), concurrent variants (lo\u002Fparallel aka lop), in-place mutations (lo\u002Fmutable aka lom), lazy iterators (lo\u002Fit aka loi for Go 1.23+), and experimental SIMD (lo\u002Fexp\u002Fsimd). Apply when using or adopting samber\u002Flo, when the codebase imports github.com\u002Fsamber\u002Flo, or when implementing functional-style data transformations in Go. Not for streaming pipelines (→ See `samber\u002Fcc-skills-golang@golang-samber-ro` skill).","sushichan044\u002Fgo-cli-sub-command-completion","sushichan044","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71284054?v=4","01M6CD61CFDCQYW4XTQ1CF5200","Kentaro Suzuki","01M75XMZ4B4C4XMZA1WKDQQBFK",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: golang-samber-lo\ndescription: \"Functional programming helpers for Golang using samber\u002Flo — 500+ type-safe generic functions for slices, maps, channels, strings, math, tuples, and concurrency (Map, Filter, Reduce, GroupBy, Chunk, Flatten, Find, Uniq, etc.). Core immutable package (lo), concurrent variants (lo\u002Fparallel aka lop), in-place mutations (lo\u002Fmutable aka lom), lazy iterators (lo\u002Fit aka loi for Go 1.23+), and experimental SIMD (lo\u002Fexp\u002Fsimd). Apply when using or adopting samber\u002Flo, when the codebase imports github.com\u002Fsamber\u002Flo, or when implementing functional-style data transformations in Go. Not for streaming pipelines (→ See `samber\u002Fcc-skills-golang@golang-samber-ro` skill).\"\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.1.0\"\n  openclaw:\n    emoji: \"🧰\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n    install: []\n    skill-library-version: \"1.53.0\"\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) mcp__context7__resolve-library-id mcp__context7__query-docs AskUserQuestion\n---\n\n**Persona:** You are a Go engineer who prefers declarative collection transforms over manual loops. You reach for `lo` to eliminate boilerplate, but you know when the stdlib is enough and when to upgrade to `lop`, `lom`, or `loi`.\n\n# samber\u002Flo — Functional Utilities for Go\n\nLodash-inspired, generics-first utility library with 500+ type-safe helpers for slices, maps, strings, math, channels, tuples, and concurrency. Zero external dependencies. Immutable by default.\n\n**Official Resources:**\n\n- [github.com\u002Fsamber\u002Flo](https:\u002F\u002Fgithub.com\u002Fsamber\u002Flo)\n- [lo.samber.dev](https:\u002F\u002Flo.samber.dev)\n- [pkg.go.dev\u002Fgithub.com\u002Fsamber\u002Flo](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fsamber\u002Flo)\n\nThis skill is not exhaustive. Please refer to library documentation and code examples for more information. Context7 can help as a discoverability platform.\n\n## Why samber\u002Flo\n\nGo's stdlib `slices` and `maps` packages cover ~10 basic helpers (sort, contains, keys). Everything else — Map, Filter, Reduce, GroupBy, Chunk, Flatten, Zip — requires manual for-loops. `lo` fills this gap:\n\n- **Type-safe generics** — no `interface{}` casts, no reflection, compile-time checking, no interface boxing overhead\n- **Immutable by default** — returns new collections, safe for concurrent reads, easier to reason about\n- **Composable** — functions take and return slices\u002Fmaps, so they chain without wrapper types\n- **Zero dependencies** — only Go stdlib, no transitive dependency risk\n- **Progressive complexity** — start with `lo`, upgrade to `lop`\u002F`lom`\u002F`loi` only when profiling demands it\n- **Error variants** — most functions have `Err` suffixes (`MapErr`, `FilterErr`, `ReduceErr`) that stop on first error\n\n## Installation\n\n```bash\ngo get github.com\u002Fsamber\u002Flo\n```\n\n| Package             | Import                          | Alias | Go version         |\n| ------------------- | ------------------------------- | ----- | ------------------ |\n| Core (immutable)    | `github.com\u002Fsamber\u002Flo`          | `lo`  | 1.18+              |\n| Parallel            | `github.com\u002Fsamber\u002Flo\u002Fparallel` | `lop` | 1.18+              |\n| Mutable             | `github.com\u002Fsamber\u002Flo\u002Fmutable`  | `lom` | 1.18+              |\n| Iterator            | `github.com\u002Fsamber\u002Flo\u002Fit`       | `loi` | 1.23+              |\n| SIMD (experimental) | `github.com\u002Fsamber\u002Flo\u002Fexp\u002Fsimd` | —     | 1.25+ (amd64 only) |\n\n## Choose the Right Package\n\nStart with `lo`. Move to other packages only when profiling shows a bottleneck or when lazy evaluation is explicitly needed.\n\n| Package | Use when                                           | Trade-off                                                 |\n| ------- | -------------------------------------------------- | --------------------------------------------------------- |\n| `lo`    | Default for all transforms                         | Allocates new collections (safe, predictable)             |\n| `lop`   | CPU-bound work on large datasets (1000+ items)     | Goroutine overhead; not for I\u002FO or small slices           |\n| `lom`   | Hot path confirmed by `pprof -alloc_objects`       | Mutates input — caller must understand side effects       |\n| `loi`   | Large datasets with chained transforms (Go 1.23+)  | Lazy evaluation saves memory but adds iterator complexity |\n| `simd`  | Numeric bulk ops after benchmarking (experimental) | Unstable API, may break between versions                  |\n\n**Key rules:**\n\n- `lop` is for CPU parallelism, not I\u002FO concurrency — for I\u002FO fan-out, use `errgroup` instead\n- `lom` breaks immutability — only use when allocation pressure is measured, never assumed\n- `loi` eliminates intermediate allocations in chains like `Map → Filter → Take` by evaluating lazily\n- For reactive\u002Fstreaming pipelines over infinite event streams, → see `samber\u002Fcc-skills-golang@golang-samber-ro` skill + `samber\u002Fro` package\n\nFor detailed package comparison and decision flowchart, see [Package Guide](.\u002Freferences\u002Fpackage-guide.md).\n\n## Core Patterns\n\n### Transform a slice\n\n```go\n\u002F\u002F ✓ lo — declarative, type-safe\nnames := lo.Map(users, func(u User, _ int) string {\n    return u.Name\n})\n\n\u002F\u002F ✗ Manual — boilerplate, error-prone\nnames := make([]string, 0, len(users))\nfor _, u := range users {\n    names = append(names, u.Name)\n}\n```\n\n### Filter + Reduce\n\n```go\ntotal := lo.Reduce(\n    lo.Filter(orders, func(o Order, _ int) bool {\n        return o.Status == \"paid\"\n    }),\n    func(sum float64, o Order, _ int) float64 {\n        return sum + o.Amount\n    },\n    0,\n)\n```\n\n### GroupBy\n\n```go\nbyStatus := lo.GroupBy(tasks, func(t Task, _ int) string {\n    return t.Status\n})\n\u002F\u002F map[string][]Task{\"open\": [...], \"closed\": [...]}\n```\n\n### Error variant — stop on first error\n\n```go\nresults, err := lo.MapErr(urls, func(url string, _ int) (Response, error) {\n    return http.Get(url)\n})\n```\n\n## Common Mistakes\n\n| Mistake                                           | Why it fails                                                                   | Fix                                                                                                                                |\n| ------------------------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |\n| Using `lo.Contains` when `slices.Contains` exists | Unnecessary dependency for a stdlib-covered op                                 | Prefer `slices.Contains`\u002F`slices.Sort` since Go 1.21+ and `slices.Collect(maps.Keys(m))` since Go 1.23+ when a key slice is needed |\n| Using `lop.Map` on 10 items                       | Goroutine creation overhead exceeds transform cost                             | Use `lo.Map` — `lop` benefits start at ~1000+ items for CPU-bound work                                                             |\n| Assuming `lo.Filter` modifies the input           | `lo` is immutable by default — it returns a new slice                          | Use `lom.Filter` if you explicitly need in-place mutation                                                                          |\n| Using `lo.Must` in production code paths          | `Must` panics on error — fine in tests and init, dangerous in request handlers | Use the non-Must variant and handle the error                                                                                      |\n| Chaining many eager transforms on large data      | Each step allocates an intermediate slice                                      | Use `loi` (lazy iterators) to avoid intermediate allocations                                                                       |\n\n## Best Practices\n\n1. **Prefer stdlib when available** — `slices.Contains` and `slices.Sort` (Go 1.21+) carry no dependency; `maps.Keys` is Go 1.23+ and returns an iterator, so use `slices.Collect(maps.Keys(m))` when you need a slice. Use `lo` for transforms the stdlib doesn't offer (Map, Filter, Reduce, GroupBy, Chunk, Flatten)\n2. **Compose lo functions** — chain `lo.Filter` → `lo.Map` → `lo.GroupBy` instead of writing nested loops. Each function is a building block\n3. **Profile before optimizing** — switch from `lo` to `lom`\u002F`lop` only after `go tool pprof` confirms allocation or CPU as the bottleneck\n4. **Use error variants** — prefer `lo.MapErr` over `lo.Map` + manual error collection. Error variants stop early and propagate cleanly\n5. **Use `lo.Must` only in tests and init** — in production, handle errors explicitly\n\n## Quick Reference\n\n| Function                               | What it does                              |\n| -------------------------------------- | ----------------------------------------- |\n| `lo.Map`                               | Transform each element                    |\n| `lo.Filter` \u002F `lo.Reject`              | Keep \u002F remove elements matching predicate |\n| `lo.Reduce`                            | Fold elements into a single value         |\n| `lo.ForEach`                           | Side-effect iteration                     |\n| `lo.GroupBy`                           | Group elements by key                     |\n| `lo.Chunk`                             | Split into fixed-size batches             |\n| `lo.Flatten`                           | Flatten nested slices one level           |\n| `lo.Uniq` \u002F `lo.UniqBy`                | Remove duplicates                         |\n| `lo.Find` \u002F `lo.FindOrElse`            | First match or default                    |\n| `lo.Contains` \u002F `lo.Every` \u002F `lo.Some` | Membership tests                          |\n| `lo.Keys` \u002F `lo.Values`                | Extract map keys or values                |\n| `lo.PickBy` \u002F `lo.OmitBy`              | Filter map entries                        |\n| `lo.Zip2` \u002F `lo.Unzip2`                | Pair\u002Funpair two slices                    |\n| `lo.Range` \u002F `lo.RangeFrom`            | Generate number sequences                 |\n| `lo.Ternary` \u002F `lo.If`                 | Inline conditionals                       |\n| `lo.ToPtr` \u002F `lo.FromPtr`              | Pointer helpers                           |\n| `lo.Must` \u002F `lo.Try`                   | Panic-on-error \u002F recover-as-bool          |\n| `lo.Async` \u002F `lo.Attempt`              | Async execution \u002F retry with backoff      |\n| `lo.Debounce` \u002F `lo.Throttle`          | Rate limiting                             |\n| `lo.ChannelDispatcher`                 | Fan-out to multiple channels              |\n\nFor the complete function catalog (300+ functions), see [API Reference](.\u002Freferences\u002Fapi-reference.md).\n\nFor composition patterns, stdlib interop, and iterator pipelines, see [Advanced Patterns](.\u002Freferences\u002Fadvanced-patterns.md).\n\nIf you encounter a bug or unexpected behavior in samber\u002Flo, open an issue at [github.com\u002Fsamber\u002Flo\u002Fissues](https:\u002F\u002Fgithub.com\u002Fsamber\u002Flo\u002Fissues).\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-samber-ro` skill for reactive\u002Fstreaming pipelines over infinite event streams (`samber\u002Fro` package)\n- → See `samber\u002Fcc-skills-golang@golang-samber-mo` skill for monadic types (Option, Result, Either) that compose with lo transforms\n- → See `samber\u002Fcc-skills-golang@golang-data-structures` skill for choosing the right underlying data structure\n- → See `samber\u002Fcc-skills-golang@golang-performance` skill for profiling methodology before switching to `lom`\u002F`lop`\n","**Persona:** You are a Go engineer who prefers declarative collection transforms over manual loops. You reach for `lo` to eliminate boilerplate, but you know when the stdlib is enough and when to upgrade to `lop`, `lom`, or `loi`.\n\n# samber\u002Flo — Functional Utilities for Go\n\nLodash-inspired, generics-first utility library with 500+ type-safe helpers for slices, maps, strings, math, channels, tuples, and concurrency. Zero external dependencies. Immutable by default.\n\n**Official Resources:**\n\n- [github.com\u002Fsamber\u002Flo](https:\u002F\u002Fgithub.com\u002Fsamber\u002Flo)\n- [lo.samber.dev](https:\u002F\u002Flo.samber.dev)\n- [pkg.go.dev\u002Fgithub.com\u002Fsamber\u002Flo](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fsamber\u002Flo)\n\nThis skill is not exhaustive. Please refer to library documentation and code examples for more information. Context7 can help as a discoverability platform.\n\n## Why samber\u002Flo\n\nGo's stdlib `slices` and `maps` packages cover ~10 basic helpers (sort, contains, keys). Everything else — Map, Filter, Reduce, GroupBy, Chunk, Flatten, Zip — requires manual for-loops. `lo` fills this gap:\n\n- **Type-safe generics** — no `interface{}` casts, no reflection, compile-time checking, no interface boxing overhead\n- **Immutable by default** — returns new collections, safe for concurrent reads, easier to reason about\n- **Composable** — functions take and return slices\u002Fmaps, so they chain without wrapper types\n- **Zero dependencies** — only Go stdlib, no transitive dependency risk\n- **Progressive complexity** — start with `lo`, upgrade to `lop`\u002F`lom`\u002F`loi` only when profiling demands it\n- **Error variants** — most functions have `Err` suffixes (`MapErr`, `FilterErr`, `ReduceErr`) that stop on first error\n\n## Installation\n\n```bash\ngo get github.com\u002Fsamber\u002Flo\n```\n\n| Package             | Import                          | Alias | Go version         |\n| ------------------- | ------------------------------- | ----- | ------------------ |\n| Core (immutable)    | `github.com\u002Fsamber\u002Flo`          | `lo`  | 1.18+              |\n| Parallel            | `github.com\u002Fsamber\u002Flo\u002Fparallel` | `lop` | 1.18+              |\n| Mutable             | `github.com\u002Fsamber\u002Flo\u002Fmutable`  | `lom` | 1.18+              |\n| Iterator            | `github.com\u002Fsamber\u002Flo\u002Fit`       | `loi` | 1.23+              |\n| SIMD (experimental) | `github.com\u002Fsamber\u002Flo\u002Fexp\u002Fsimd` | —     | 1.25+ (amd64 only) |\n\n## Choose the Right Package\n\nStart with `lo`. Move to other packages only when profiling shows a bottleneck or when lazy evaluation is explicitly needed.\n\n| Package | Use when                                           | Trade-off                                                 |\n| ------- | -------------------------------------------------- | --------------------------------------------------------- |\n| `lo`    | Default for all transforms                         | Allocates new collections (safe, predictable)             |\n| `lop`   | CPU-bound work on large datasets (1000+ items)     | Goroutine overhead; not for I\u002FO or small slices           |\n| `lom`   | Hot path confirmed by `pprof -alloc_objects`       | Mutates input — caller must understand side effects       |\n| `loi`   | Large datasets with chained transforms (Go 1.23+)  | Lazy evaluation saves memory but adds iterator complexity |\n| `simd`  | Numeric bulk ops after benchmarking (experimental) | Unstable API, may break between versions                  |\n\n**Key rules:**\n\n- `lop` is for CPU parallelism, not I\u002FO concurrency — for I\u002FO fan-out, use `errgroup` instead\n- `lom` breaks immutability — only use when allocation pressure is measured, never assumed\n- `loi` eliminates intermediate allocations in chains like `Map → Filter → Take` by evaluating lazily\n- For reactive\u002Fstreaming pipelines over infinite event streams, → see `samber\u002Fcc-skills-golang@golang-samber-ro` skill + `samber\u002Fro` package\n\nFor detailed package comparison and decision flowchart, see [Package Guide](.\u002Freferences\u002Fpackage-guide.md).\n\n## Core Patterns\n\n### Transform a slice\n\n```go\n\u002F\u002F ✓ lo — declarative, type-safe\nnames := lo.Map(users, func(u User, _ int) string {\n    return u.Name\n})\n\n\u002F\u002F ✗ Manual — boilerplate, error-prone\nnames := make([]string, 0, len(users))\nfor _, u := range users {\n    names = append(names, u.Name)\n}\n```\n\n### Filter + Reduce\n\n```go\ntotal := lo.Reduce(\n    lo.Filter(orders, func(o Order, _ int) bool {\n        return o.Status == \"paid\"\n    }),\n    func(sum float64, o Order, _ int) float64 {\n        return sum + o.Amount\n    },\n    0,\n)\n```\n\n### GroupBy\n\n```go\nbyStatus := lo.GroupBy(tasks, func(t Task, _ int) string {\n    return t.Status\n})\n\u002F\u002F map[string][]Task{\"open\": [...], \"closed\": [...]}\n```\n\n### Error variant — stop on first error\n\n```go\nresults, err := lo.MapErr(urls, func(url string, _ int) (Response, error) {\n    return http.Get(url)\n})\n```\n\n## Common Mistakes\n\n| Mistake                                           | Why it fails                                                                   | Fix                                                                                                                                |\n| ------------------------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |\n| Using `lo.Contains` when `slices.Contains` exists | Unnecessary dependency for a stdlib-covered op                                 | Prefer `slices.Contains`\u002F`slices.Sort` since Go 1.21+ and `slices.Collect(maps.Keys(m))` since Go 1.23+ when a key slice is needed |\n| Using `lop.Map` on 10 items                       | Goroutine creation overhead exceeds transform cost                             | Use `lo.Map` — `lop` benefits start at ~1000+ items for CPU-bound work                                                             |\n| Assuming `lo.Filter` modifies the input           | `lo` is immutable by default — it returns a new slice                          | Use `lom.Filter` if you explicitly need in-place mutation                                                                          |\n| Using `lo.Must` in production code paths          | `Must` panics on error — fine in tests and init, dangerous in request handlers | Use the non-Must variant and handle the error                                                                                      |\n| Chaining many eager transforms on large data      | Each step allocates an intermediate slice                                      | Use `loi` (lazy iterators) to avoid intermediate allocations                                                                       |\n\n## Best Practices\n\n1. **Prefer stdlib when available** — `slices.Contains` and `slices.Sort` (Go 1.21+) carry no dependency; `maps.Keys` is Go 1.23+ and returns an iterator, so use `slices.Collect(maps.Keys(m))` when you need a slice. Use `lo` for transforms the stdlib doesn't offer (Map, Filter, Reduce, GroupBy, Chunk, Flatten)\n2. **Compose lo functions** — chain `lo.Filter` → `lo.Map` → `lo.GroupBy` instead of writing nested loops. Each function is a building block\n3. **Profile before optimizing** — switch from `lo` to `lom`\u002F`lop` only after `go tool pprof` confirms allocation or CPU as the bottleneck\n4. **Use error variants** — prefer `lo.MapErr` over `lo.Map` + manual error collection. Error variants stop early and propagate cleanly\n5. **Use `lo.Must` only in tests and init** — in production, handle errors explicitly\n\n## Quick Reference\n\n| Function                               | What it does                              |\n| -------------------------------------- | ----------------------------------------- |\n| `lo.Map`                               | Transform each element                    |\n| `lo.Filter` \u002F `lo.Reject`              | Keep \u002F remove elements matching predicate |\n| `lo.Reduce`                            | Fold elements into a single value         |\n| `lo.ForEach`                           | Side-effect iteration                     |\n| `lo.GroupBy`                           | Group elements by key                     |\n| `lo.Chunk`                             | Split into fixed-size batches             |\n| `lo.Flatten`                           | Flatten nested slices one level           |\n| `lo.Uniq` \u002F `lo.UniqBy`                | Remove duplicates                         |\n| `lo.Find` \u002F `lo.FindOrElse`            | First match or default                    |\n| `lo.Contains` \u002F `lo.Every` \u002F `lo.Some` | Membership tests                          |\n| `lo.Keys` \u002F `lo.Values`                | Extract map keys or values                |\n| `lo.PickBy` \u002F `lo.OmitBy`              | Filter map entries                        |\n| `lo.Zip2` \u002F `lo.Unzip2`                | Pair\u002Funpair two slices                    |\n| `lo.Range` \u002F `lo.RangeFrom`            | Generate number sequences                 |\n| `lo.Ternary` \u002F `lo.If`                 | Inline conditionals                       |\n| `lo.ToPtr` \u002F `lo.FromPtr`              | Pointer helpers                           |\n| `lo.Must` \u002F `lo.Try`                   | Panic-on-error \u002F recover-as-bool          |\n| `lo.Async` \u002F `lo.Attempt`              | Async execution \u002F retry with backoff      |\n| `lo.Debounce` \u002F `lo.Throttle`          | Rate limiting                             |\n| `lo.ChannelDispatcher`                 | Fan-out to multiple channels              |\n\nFor the complete function catalog (300+ functions), see [API Reference](.\u002Freferences\u002Fapi-reference.md).\n\nFor composition patterns, stdlib interop, and iterator pipelines, see [Advanced Patterns](.\u002Freferences\u002Fadvanced-patterns.md).\n\nIf you encounter a bug or unexpected behavior in samber\u002Flo, open an issue at [github.com\u002Fsamber\u002Flo\u002Fissues](https:\u002F\u002Fgithub.com\u002Fsamber\u002Flo\u002Fissues).\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-samber-ro` skill for reactive\u002Fstreaming pipelines over infinite event streams (`samber\u002Fro` package)\n- → See `samber\u002Fcc-skills-golang@golang-samber-mo` skill for monadic types (Option, Result, Either) that compose with lo transforms\n- → See `samber\u002Fcc-skills-golang@golang-data-structures` skill for choosing the right underlying data structure\n- → See `samber\u002Fcc-skills-golang@golang-performance` skill for profiling methodology before switching to `lom`\u002F`lop`\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":35,"compatibility":36,"user-invocable":37},{"author":25,"version":26,"openclaw":27},"samber","1.1.0",{"emoji":28,"install":29,"homepage":30,"requires":31,"skill-library-version":34},"🧰",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":32},[33],"go","1.53.0","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) mcp__context7__resolve-library-id mcp__context7__query-docs AskUserQuestion","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"main","5bd2e2880509d8934a47694565489e55d58d3040",".agents\u002Fskills\u002Fgolang-samber-lo","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion","https:\u002F\u002Fgithub.com\u002Fsushichan044","A software engineer with a passion for novels and music.","2026-06-19 12:37:01",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":37},[47,50,53],{"tool":48,"command":49},"npx","npx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-samber-lo",{"tool":51,"command":52},"bunx","bunx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-samber-lo",{"tool":54,"command":55},"pnpm","pnpm dlx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-samber-lo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002FSKILL.md",[58,64,68,72],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"evals\u002Fevals.json","REFERENCE","参考文档",21375,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002Fevals\u002Fevals.json",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fadvanced-patterns.md",4728,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002Freferences\u002Fadvanced-patterns.md",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fapi-reference.md",30874,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002Freferences\u002Fapi-reference.md",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fpackage-guide.md",6648,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-samber-lo\u002Freferences\u002Fpackage-guide.md",[77,84,91,98,105,112],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75XQZ90ZTFP09ZH20ZHGG5G","golang-troubleshooting","Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (→ See `samber\u002Fcc-skills-golang@golang-benchmark` skill) or applying optimization patterns (→ See `samber\u002Fcc-skills-golang@golang-performance` skill).","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-troubleshooting\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M75XQS47M7BEJHGDBYB80GV7","golang-testing","Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky\u002Fslow tests. For testify-specific APIs see `samber\u002Fcc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber\u002Fcc-skills-golang@golang-benchmark`.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-testing\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M75XQJ26PB3HX3BE2Y9PQTRH","golang-structs-interfaces","Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs value receivers. Use this skill when designing Go types, defining or implementing interfaces, embedding structs or interfaces, writing type assertions or type switches, adding struct field tags for JSON\u002FYAML\u002FDB serialization, or choosing between pointer and value receivers. Also use when the user asks about \"accept interfaces, return structs\", compile-time interface checks, or composing small interfaces into larger ones.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-structs-interfaces\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M75XQDAYJ2CBD5TRWY1P9CXA","golang-stretchr-testify","Comprehensive guide to stretchr\u002Ftestify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com\u002Fstretchr\u002Ftestify.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M75XQ7S4862T0RMNYP9P468F","golang-spf13-cobra","Golang CLI command tree library using spf13\u002Fcobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage\u002Fhelp template customization, man-page and markdown doc generation, and testing with SetArgs\u002FSetOut\u002FSetErr. Apply when using or adopting spf13\u002Fcobra, or when the codebase imports `github.com\u002Fspf13\u002Fcobra`. For configuration layering alongside cobra, see the `samber\u002Fcc-skills-golang@golang-spf13-viper` skill. For general CLI architecture (project layout, exit codes, signal handling, I\u002FO patterns), see `samber\u002Fcc-skills-golang@golang-cli`.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-spf13-cobra\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M75XQ289794Z4EVRBJCGM80V","golang-security","Security best practices and vulnerability prevention for Golang. Covers injection (SQL, command, XSS), cryptography, filesystem safety, network security, cookies, secrets management, memory safety, and logging. Apply when writing, reviewing, or auditing Go code for security, or when working on any risky code involving crypto, I\u002FO, secrets management, user input handling, or authentication. Includes configuration of security tools.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-security\u002FSKILL.md",[],[]]