[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MVB4CWYQVW342X5TH36RC":3,"skill-same:01M77MVB4CWYQVW342X5TH36RC":75},{"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":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M77MVB4CWYQVW342X5TH36RC","golang-concurrency",null,"Golang concurrency patterns. Use when writing or reviewing concurrent Go code involving goroutines, channels, select, locks, sync primitives, errgroup, singleflight, worker pools, or fan-out\u002Ffan-in pipelines. Also triggers when you detect goroutine leaks, race conditions, channel ownership issues, or need to choose between channels and mutexes.","sushichan044\u002Fmergeable-please","sushichan044","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71284054?v=4","01M6CD61CFDCQYW4XTQ1CF5200","Kentaro Suzuki","01M77MTW96E9P0ZVAHK9FXG8TJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golang-concurrency\ndescription: \"Golang concurrency patterns. Use when writing or reviewing concurrent Go code involving goroutines, channels, select, locks, sync primitives, errgroup, singleflight, worker pools, or fan-out\u002Ffan-in pipelines. Also triggers when you detect goroutine leaks, race conditions, channel ownership issues, or need to choose between channels and mutexes.\"\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.4\"\n  openclaw:\n    emoji: \"⚡\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n    install: []\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent AskUserQuestion\n---\n\n**Persona:** You are a Go concurrency engineer. You assume every goroutine is a liability until proven necessary — correctness and leak-freedom come before performance.\n\n**Modes:**\n\n- **Write mode** — implement concurrent code (goroutines, channels, sync primitives, worker pools, pipelines). Follow the sequential instructions below.\n- **Review mode** — reviewing a PR's concurrent code changes. Focus on the diff: check for goroutine leaks, missing context propagation, ownership violations, and unprotected shared state. Sequential.\n- **Audit mode** — auditing existing concurrent code across a codebase. Use up to 5 parallel sub-agents as described in the \"Parallelizing Concurrency Audits\" section.\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-concurrency` skill takes precedence.\n\n# Go Concurrency Best Practices\n\nGo's concurrency model is built on goroutines and channels. Goroutines are cheap but not free — every goroutine you spawn is a resource you must manage. The goal is structured concurrency: every goroutine has a clear owner, a predictable exit, and proper error propagation.\n\n## Core Principles\n\n1. **Every goroutine must have a clear exit** — without a shutdown mechanism (context, done channel, WaitGroup), they leak and accumulate until the process crashes\n2. **Share memory by communicating** — channels transfer ownership explicitly; mutexes protect shared state but make ownership implicit\n3. **Send copies, not pointers** on channels — sending pointers creates invisible shared memory, defeating the purpose of channels\n4. **Only the sender closes a channel** — closing from the receiver side panics if the sender writes after close\n5. **Specify channel direction** (`chan\u003C-`, `\u003C-chan`) — the compiler prevents misuse at build time\n6. **Default to unbuffered channels** — larger buffers mask backpressure; use them only with measured justification\n7. **Always include `ctx.Done()` in select** — without it, goroutines leak after caller cancellation\n8. **Avoid repeated `time.After` in hot loops** — each call allocates a timer and creates unnecessary churn; use `time.NewTimer` + `Reset` for long-running loops\n9. **Track goroutine leaks in tests** with `go.uber.org\u002Fgoleak`\n\nFor detailed channel\u002Fselect code examples, see [Channels and Select Patterns](references\u002Fchannels-and-select.md).\n\n## Channel vs Mutex vs Atomic\n\n| Scenario                           | Use                           | Why                                                                                   |\n| ---------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------- |\n| Passing data between goroutines    | Channel                       | Communicates ownership transfer                                                       |\n| Coordinating goroutine lifecycle   | Channel + context             | Clean shutdown with select                                                            |\n| Protecting shared struct fields    | `sync.Mutex` \u002F `sync.RWMutex` | Simple critical sections                                                              |\n| Simple counters, flags             | `sync\u002Fatomic`                 | Lock-free, lower overhead                                                             |\n| Many readers, few writers on a map | `sync.Map`                    | Optimized for read-heavy workloads. **Concurrent map read\u002Fwrite causes a hard crash** |\n| Caching expensive computations     | `sync.Once` \u002F `singleflight`  | Execute once or deduplicate                                                           |\n\n## WaitGroup vs errgroup\n\n| Need                                   | Use                    | Why                           |\n| -------------------------------------- | ---------------------- | ----------------------------- |\n| Wait for goroutines, errors not needed | `sync.WaitGroup`       | Fire-and-forget               |\n| Wait + collect first error             | `errgroup.Group`       | Error propagation             |\n| Wait + cancel siblings on first error  | `errgroup.WithContext` | Context cancellation on error |\n| Wait + limit concurrency               | `errgroup.SetLimit(n)` | Built-in worker pool          |\n\n## Sync Primitives Quick Reference\n\n| Primitive             | Use case                      | Key notes                                                                                                                                                                                                        |\n| --------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `sync.Mutex`          | Protect shared state          | Keep critical sections short; never hold across I\u002FO                                                                                                                                                              |\n| `sync.RWMutex`        | Many readers, few writers     | Never upgrade RLock to Lock (deadlock)                                                                                                                                                                           |\n| `sync\u002Fatomic`         | Simple counters, flags        | Prefer typed atomics (Go 1.19+): `atomic.Int64`, `atomic.Bool`                                                                                                                                                   |\n| `sync.Map`            | Concurrent map, read-heavy    | No explicit locking; use `RWMutex`+map when writes dominate                                                                                                                                                      |\n| `sync.Pool`           | Reuse temporary objects       | Always `Reset()` before `Put()`; reduces GC pressure                                                                                                                                                             |\n| `sync.Once`           | One-time initialization       | Go 1.21+: `OnceFunc`, `OnceValue`, `OnceValues`                                                                                                                                                                  |\n| `sync.WaitGroup`      | Waiting for simple goroutines | Go 1.25+: prefer `wg.Go(func(){ ... })` for fire-and-wait tasks that do not panic and do not need error propagation. For Go \u003C1.25 use `Add`\u002F`Done`. For errors\u002Fcancellation\u002Flimits, use `errgroup` with context. |\n| `x\u002Fsync\u002Fsingleflight` | Deduplicate concurrent calls  | Cache stampede prevention                                                                                                                                                                                        |\n| `x\u002Fsync\u002Ferrgroup`     | Goroutine group + errors      | `SetLimit(n)` replaces hand-rolled worker pools                                                                                                                                                                  |\n\nFor detailed examples and anti-patterns, see [Sync Primitives Deep Dive](references\u002Fsync-primitives.md).\n\n## Concurrency Checklist\n\nBefore spawning a goroutine, answer:\n\n- [ ] **How will it exit?** — context cancellation, channel close, or explicit signal\n- [ ] **Can I signal it to stop?** — pass `context.Context` or done channel\n- [ ] **Can I wait for it?** — `sync.WaitGroup` or `errgroup`\n- [ ] **Who owns the channels?** — creator\u002Fsender owns and closes\n- [ ] **Should this be synchronous instead?** — don't add concurrency without measured need\n\n## Pipelines and Worker Pools\n\nFor pipeline patterns (fan-out\u002Ffan-in, bounded workers, generator chains, Go 1.23+ iterators, `samber\u002Fro`), see [Pipelines and Worker Pools](references\u002Fpipelines.md).\n\n## Parallelizing Concurrency Audits\n\nWhen auditing concurrency across a large codebase, use up to 5 parallel sub-agents (Agent tool):\n\n1. Find all goroutine spawns (`go func`, `go method`) and verify shutdown mechanisms\n2. Search for mutable globals and shared state without synchronization\n3. Audit channel usage — ownership, direction, closure, buffer sizes\n4. Find `time.After` in loops, missing `ctx.Done()` in select, unbounded spawning\n5. Check mutex usage, `sync.Map`, atomics, and thread-safety documentation\n\n## Common Mistakes\n\n| Mistake                        | Fix                                                        |\n| ------------------------------ | ---------------------------------------------------------- |\n| Fire-and-forget goroutine      | Provide stop mechanism (context, done channel)             |\n| Closing channel from receiver  | Only the sender closes                                     |\n| `time.After` in hot loop       | Reuse `time.NewTimer` + `Reset`                            |\n| Missing `ctx.Done()` in select | Always select on context to allow cancellation             |\n| Unbounded goroutine spawning   | Use `errgroup.SetLimit(n)` or semaphore                    |\n| Sharing pointer via channel    | Send copies or immutable values                            |\n| `wg.Add` inside goroutine      | Call `Add` before `go` — `Wait` may return early otherwise |\n| Forgetting `-race` in CI       | Always run `go test -race .\u002F...`                           |\n| Mutex held across I\u002FO          | Keep critical sections short                               |\n\n## Cross-References\n\n- -> See `samber\u002Fcc-skills-golang@golang-performance` skill for false sharing, cache-line padding, `sync.Pool` hot-path patterns\n- -> See `samber\u002Fcc-skills-golang@golang-context` skill for cancellation propagation and timeout patterns\n- -> See `samber\u002Fcc-skills-golang@golang-safety` skill for concurrent map access and race condition prevention\n- -> See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill for debugging goroutine leaks and deadlocks\n- -> See `samber\u002Fcc-skills-golang@golang-design-patterns` skill for graceful shutdown patterns\n- -> See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n\n### Go 1.26 experimental goroutine leak profile\n\nFor Go 1.26 diagnostics, there is an experimental goroutine leak profile. It is useful for production-oriented leak investigation, but is gated by `GOEXPERIMENT=goroutineleakprofile`; do not rely on it as default stable behavior.\n\nTypical usage when the experiment is enabled:\n\n```bash\ncurl http:\u002F\u002Flocalhost:6060\u002Fdebug\u002Fpprof\u002Fgoroutineleak?debug=2\ngo tool pprof http:\u002F\u002Flocalhost:6060\u002Fdebug\u002Fpprof\u002Fgoroutineleak\n```\n\nKeep existing tools:\n\n- tests: `go.uber.org\u002Fgoleak`\n- runtime count: `runtime.NumGoroutine()`\n- stack dump: `\u002Fdebug\u002Fpprof\u002Fgoroutine?debug=2`\n- race checks: `go test -race .\u002F...`\n\n## References\n\n- [Go Concurrency Patterns: Pipelines](https:\u002F\u002Fgo.dev\u002Fblog\u002Fpipelines)\n- [Effective Go: Concurrency](https:\u002F\u002Fgo.dev\u002Fdoc\u002Feffective_go#concurrency)\n","**Persona:** You are a Go concurrency engineer. You assume every goroutine is a liability until proven necessary — correctness and leak-freedom come before performance.\n\n**Modes:**\n\n- **Write mode** — implement concurrent code (goroutines, channels, sync primitives, worker pools, pipelines). Follow the sequential instructions below.\n- **Review mode** — reviewing a PR's concurrent code changes. Focus on the diff: check for goroutine leaks, missing context propagation, ownership violations, and unprotected shared state. Sequential.\n- **Audit mode** — auditing existing concurrent code across a codebase. Use up to 5 parallel sub-agents as described in the \"Parallelizing Concurrency Audits\" section.\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-concurrency` skill takes precedence.\n\n# Go Concurrency Best Practices\n\nGo's concurrency model is built on goroutines and channels. Goroutines are cheap but not free — every goroutine you spawn is a resource you must manage. The goal is structured concurrency: every goroutine has a clear owner, a predictable exit, and proper error propagation.\n\n## Core Principles\n\n1. **Every goroutine must have a clear exit** — without a shutdown mechanism (context, done channel, WaitGroup), they leak and accumulate until the process crashes\n2. **Share memory by communicating** — channels transfer ownership explicitly; mutexes protect shared state but make ownership implicit\n3. **Send copies, not pointers** on channels — sending pointers creates invisible shared memory, defeating the purpose of channels\n4. **Only the sender closes a channel** — closing from the receiver side panics if the sender writes after close\n5. **Specify channel direction** (`chan\u003C-`, `\u003C-chan`) — the compiler prevents misuse at build time\n6. **Default to unbuffered channels** — larger buffers mask backpressure; use them only with measured justification\n7. **Always include `ctx.Done()` in select** — without it, goroutines leak after caller cancellation\n8. **Avoid repeated `time.After` in hot loops** — each call allocates a timer and creates unnecessary churn; use `time.NewTimer` + `Reset` for long-running loops\n9. **Track goroutine leaks in tests** with `go.uber.org\u002Fgoleak`\n\nFor detailed channel\u002Fselect code examples, see [Channels and Select Patterns](references\u002Fchannels-and-select.md).\n\n## Channel vs Mutex vs Atomic\n\n| Scenario                           | Use                           | Why                                                                                   |\n| ---------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------- |\n| Passing data between goroutines    | Channel                       | Communicates ownership transfer                                                       |\n| Coordinating goroutine lifecycle   | Channel + context             | Clean shutdown with select                                                            |\n| Protecting shared struct fields    | `sync.Mutex` \u002F `sync.RWMutex` | Simple critical sections                                                              |\n| Simple counters, flags             | `sync\u002Fatomic`                 | Lock-free, lower overhead                                                             |\n| Many readers, few writers on a map | `sync.Map`                    | Optimized for read-heavy workloads. **Concurrent map read\u002Fwrite causes a hard crash** |\n| Caching expensive computations     | `sync.Once` \u002F `singleflight`  | Execute once or deduplicate                                                           |\n\n## WaitGroup vs errgroup\n\n| Need                                   | Use                    | Why                           |\n| -------------------------------------- | ---------------------- | ----------------------------- |\n| Wait for goroutines, errors not needed | `sync.WaitGroup`       | Fire-and-forget               |\n| Wait + collect first error             | `errgroup.Group`       | Error propagation             |\n| Wait + cancel siblings on first error  | `errgroup.WithContext` | Context cancellation on error |\n| Wait + limit concurrency               | `errgroup.SetLimit(n)` | Built-in worker pool          |\n\n## Sync Primitives Quick Reference\n\n| Primitive             | Use case                      | Key notes                                                                                                                                                                                                        |\n| --------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `sync.Mutex`          | Protect shared state          | Keep critical sections short; never hold across I\u002FO                                                                                                                                                              |\n| `sync.RWMutex`        | Many readers, few writers     | Never upgrade RLock to Lock (deadlock)                                                                                                                                                                           |\n| `sync\u002Fatomic`         | Simple counters, flags        | Prefer typed atomics (Go 1.19+): `atomic.Int64`, `atomic.Bool`                                                                                                                                                   |\n| `sync.Map`            | Concurrent map, read-heavy    | No explicit locking; use `RWMutex`+map when writes dominate                                                                                                                                                      |\n| `sync.Pool`           | Reuse temporary objects       | Always `Reset()` before `Put()`; reduces GC pressure                                                                                                                                                             |\n| `sync.Once`           | One-time initialization       | Go 1.21+: `OnceFunc`, `OnceValue`, `OnceValues`                                                                                                                                                                  |\n| `sync.WaitGroup`      | Waiting for simple goroutines | Go 1.25+: prefer `wg.Go(func(){ ... })` for fire-and-wait tasks that do not panic and do not need error propagation. For Go \u003C1.25 use `Add`\u002F`Done`. For errors\u002Fcancellation\u002Flimits, use `errgroup` with context. |\n| `x\u002Fsync\u002Fsingleflight` | Deduplicate concurrent calls  | Cache stampede prevention                                                                                                                                                                                        |\n| `x\u002Fsync\u002Ferrgroup`     | Goroutine group + errors      | `SetLimit(n)` replaces hand-rolled worker pools                                                                                                                                                                  |\n\nFor detailed examples and anti-patterns, see [Sync Primitives Deep Dive](references\u002Fsync-primitives.md).\n\n## Concurrency Checklist\n\nBefore spawning a goroutine, answer:\n\n- [ ] **How will it exit?** — context cancellation, channel close, or explicit signal\n- [ ] **Can I signal it to stop?** — pass `context.Context` or done channel\n- [ ] **Can I wait for it?** — `sync.WaitGroup` or `errgroup`\n- [ ] **Who owns the channels?** — creator\u002Fsender owns and closes\n- [ ] **Should this be synchronous instead?** — don't add concurrency without measured need\n\n## Pipelines and Worker Pools\n\nFor pipeline patterns (fan-out\u002Ffan-in, bounded workers, generator chains, Go 1.23+ iterators, `samber\u002Fro`), see [Pipelines and Worker Pools](references\u002Fpipelines.md).\n\n## Parallelizing Concurrency Audits\n\nWhen auditing concurrency across a large codebase, use up to 5 parallel sub-agents (Agent tool):\n\n1. Find all goroutine spawns (`go func`, `go method`) and verify shutdown mechanisms\n2. Search for mutable globals and shared state without synchronization\n3. Audit channel usage — ownership, direction, closure, buffer sizes\n4. Find `time.After` in loops, missing `ctx.Done()` in select, unbounded spawning\n5. Check mutex usage, `sync.Map`, atomics, and thread-safety documentation\n\n## Common Mistakes\n\n| Mistake                        | Fix                                                        |\n| ------------------------------ | ---------------------------------------------------------- |\n| Fire-and-forget goroutine      | Provide stop mechanism (context, done channel)             |\n| Closing channel from receiver  | Only the sender closes                                     |\n| `time.After` in hot loop       | Reuse `time.NewTimer` + `Reset`                            |\n| Missing `ctx.Done()` in select | Always select on context to allow cancellation             |\n| Unbounded goroutine spawning   | Use `errgroup.SetLimit(n)` or semaphore                    |\n| Sharing pointer via channel    | Send copies or immutable values                            |\n| `wg.Add` inside goroutine      | Call `Add` before `go` — `Wait` may return early otherwise |\n| Forgetting `-race` in CI       | Always run `go test -race .\u002F...`                           |\n| Mutex held across I\u002FO          | Keep critical sections short                               |\n\n## Cross-References\n\n- -> See `samber\u002Fcc-skills-golang@golang-performance` skill for false sharing, cache-line padding, `sync.Pool` hot-path patterns\n- -> See `samber\u002Fcc-skills-golang@golang-context` skill for cancellation propagation and timeout patterns\n- -> See `samber\u002Fcc-skills-golang@golang-safety` skill for concurrent map access and race condition prevention\n- -> See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill for debugging goroutine leaks and deadlocks\n- -> See `samber\u002Fcc-skills-golang@golang-design-patterns` skill for graceful shutdown patterns\n- -> See `samber\u002Fcc-skills-golang@golang-continuous-integration` skill for automated AI-driven code review in CI using these guidelines\n\n### Go 1.26 experimental goroutine leak profile\n\nFor Go 1.26 diagnostics, there is an experimental goroutine leak profile. It is useful for production-oriented leak investigation, but is gated by `GOEXPERIMENT=goroutineleakprofile`; do not rely on it as default stable behavior.\n\nTypical usage when the experiment is enabled:\n\n```bash\ncurl http:\u002F\u002Flocalhost:6060\u002Fdebug\u002Fpprof\u002Fgoroutineleak?debug=2\ngo tool pprof http:\u002F\u002Flocalhost:6060\u002Fdebug\u002Fpprof\u002Fgoroutineleak\n```\n\nKeep existing tools:\n\n- tests: `go.uber.org\u002Fgoleak`\n- runtime count: `runtime.NumGoroutine()`\n- stack dump: `\u002Fdebug\u002Fpprof\u002Fgoroutine?debug=2`\n- race checks: `go test -race .\u002F...`\n\n## References\n\n- [Go Concurrency Patterns: Pipelines](https:\u002F\u002Fgo.dev\u002Fblog\u002Fpipelines)\n- [Effective Go: Concurrency](https:\u002F\u002Fgo.dev\u002Fdoc\u002Feffective_go#concurrency)\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":34,"compatibility":35,"user-invocable":36},{"author":25,"version":26,"openclaw":27},"samber","1.1.4",{"emoji":28,"install":29,"homepage":30,"requires":31},"⚡",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":32},[33],"go","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent AskUserQuestion","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"main","31f700aa9c9e5d7b2fd01b0e5317d543b5321edd",".agents\u002Fskills\u002Fgolang-concurrency","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please","https:\u002F\u002Fgithub.com\u002Fsushichan044","A software engineer with a passion for novels and music.","2026-07-27 19:13:11",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":36},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sushichan044\u002Fmergeable-please --skill golang-concurrency",{"tool":50,"command":51},"bunx","bunx skills add sushichan044\u002Fmergeable-please --skill golang-concurrency",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sushichan044\u002Fmergeable-please --skill golang-concurrency","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002FSKILL.md",[57,63,67,71],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fevals.json","REFERENCE","参考文档",15980,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002Fevals\u002Fevals.json",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fchannels-and-select.md",4292,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002Freferences\u002Fchannels-and-select.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fpipelines.md",7101,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002Freferences\u002Fpipelines.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fsync-primitives.md",8306,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-concurrency\u002Freferences\u002Fsync-primitives.md",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M77MZJHND7VXTPF66H9VCNPM","mergeable-please","Drive a GitHub pull request toward mergeable. Run when asked to \"make a PR mergeable\", \"loop until the PR is ready\", \"fix the PR until CI\u002Fconflicts\u002Freviews pass\", or similar. Repeatedly runs `mergeable-please check`, resolves each reported blocker (conflicts, behind-base, failing\u002Fpending required CI, reviewer-loop goals), and loops until the tool reports satisfied.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fmergeable-please\u002Fblob\u002Fmain\u002Fskills\u002Fmergeable-please\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M77MY6QVZ5GZE04ZBSSJARQ3","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\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-troubleshooting\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M77MXZ5D1S2951R8HJFCTWJG","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\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-testing\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M77MXPRC35GB96PS0BHN15BN","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\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-structs-interfaces\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M77MXGQQ0VAA0N0V4HFPM8FV","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\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M77MXA0301S3ZMGNQFA1XYPQ","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\u002Fmergeable-please\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-spf13-cobra\u002FSKILL.md",[],[]]