[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CFJNY8RMZXT2MB1SMNJ13X":3,"skill-same:01M6CFJNY8RMZXT2MB1SMNJ13X":101},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":67,"install":68,"resources":80},"01M6CFJNY8RMZXT2MB1SMNJ13X","golang-how-to",null,"Golang skills orchestrator — always active on any Golang coding, review, debug, or setup task. Reads the task context and loads the most relevant skills from samber\u002Fcc-skills-golang, often multiple at once: writing a gRPC service loads golang-grpc + golang-testing + golang-error-handling; debugging a panic loads golang-troubleshooting + golang-safety; auditing security loads golang-security + golang-lint + golang-safety. Also: disambiguates competing clusters when two skills seem to overlap (performance vs benchmark vs troubleshooting, samber\u002Flo vs mo vs ro, DI cluster, safety vs security), and configures the project's agent-config file (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, or Copilot instructions) to force-trigger skills in a project (\u002Fgolang-how-to configure).","rockcookies\u002Fskills","rockcookies","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3498265?v=4","01M6CF9C16X3SDSKZX6ANH7HQM","Jacob He","01M6CF9C53JP821FCW6R9B00AJ",1,"MIT","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"golang how to","how","golang","harness","error-handling","Rules","configure","Bash","file","grpc","testing","code","lint","debugging","debug","copilot","performance","gemini","writing","MCP","2026-11-10 10:12:30",false,"---\nname: golang-how-to\ndescription: >-\n  Golang skills orchestrator — always active on any Golang coding, review,\n  debug, or setup task. Reads the task context and loads the most relevant\n  skills from samber\u002Fcc-skills-golang, often multiple at once: writing a gRPC\n  service loads golang-grpc + golang-testing + golang-error-handling; debugging\n  a panic loads golang-troubleshooting + golang-safety; auditing security loads\n  golang-security + golang-lint + golang-safety. Also: disambiguates competing\n  clusters when two skills seem to overlap (performance vs benchmark vs\n  troubleshooting, samber\u002Flo vs mo vs ro, DI cluster, safety vs security), and\n  configures the project's agent-config file (CLAUDE.md, AGENTS.md, GEMINI.md,\n  Cursor rules, or Copilot instructions) to force-trigger skills in a project\n  (\u002Fgolang-how-to configure).\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code, Codex or similar harness. Requires git.\nmetadata:\n  author: samber\n  version: 1.4.0\n  openclaw:\n    emoji: ?\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n        - gopls\n    install:\n      - kind: go\n        package: golang.org\u002Fx\u002Ftools\u002Fgopls@latest\n        bins:\n          - gopls\nallowed-tools: >-\n  Read Edit Write Glob Grep Bash(go:*) Bash(git:*) Agent AskUserQuestion LSP\n  Bash(gopls:*) mcp__gopls__*\n---\n\n**Persona:** You are a Go skills orchestrator. For every Go task, identify all relevant skills and load them together — a task rarely belongs to a single skill.\n\n**Modes:**\n\n- **Orchestrate** — for any Go coding, review, debug, or setup task, load the primary skill plus all applicable secondary skills simultaneously.\n- **Disambiguate** — when two skills seem to overlap, show the boundary table. See [disambiguation.md](references\u002Fdisambiguation.md).\n- **Configure** — write the always-load directive for `golang-how-to` itself, plus an optional `## Required Go skills` block, to the project's agent-config file (CLAUDE.md, AGENTS.md, or equivalent). Follow [project-config.md](references\u002Fproject-config.md).\n\n**Questions:** In Configure mode, ask the user through the environment's question tool — never as plain-text prose. One question at a time, wait for the answer. If the environment has no question tool, ask in prose with the same options.\n\n**Dependencies:** `gopls` — `go install golang.org\u002Fx\u002Ftools\u002Fgopls@latest`; Claude Code's built-in `LSP` tool also needs `ENABLE_LSP_TOOL=1` and a Go language server wired (see [Code navigation with gopls](#code-navigation-with-gopls)).\n\n## Skill loading\n\nFor each task, load the **primary skill** and all applicable **secondary skills** at the same time. Do not wait — load them together at the start.\n\n| Intent | Primary | Also load |\n| --- | --- | --- |\n| Design an API, choose a pattern | `golang-design-patterns` | `golang-structs-interfaces`, `golang-naming` |\n| Name a type, function, or package | `golang-naming` | `golang-code-style` |\n| Handle errors idiomatically | `golang-error-handling` | `golang-safety` (nil-heavy code) |\n| Write goroutines, channels, sync | `golang-concurrency` | `golang-context` (if cancellation) |\n| Pass deadlines \u002F cancel operations | `golang-context` | `golang-concurrency` (if goroutines) |\n| Design structs, embed, use interfaces | `golang-structs-interfaces` | `golang-design-patterns` |\n| Database queries and transactions | `golang-database` | `golang-error-handling`, `golang-security` |\n| Build a gRPC service | `golang-grpc` | `golang-testing`, `golang-error-handling` |\n| Build a GraphQL API | `golang-graphql` | `golang-testing`, `golang-error-handling` |\n| Build a CLI command tree | `golang-spf13-cobra` | `golang-cli`, `golang-spf13-viper` (if config) |\n| Layer config from flags\u002Fenv\u002Ffile | `golang-spf13-viper` | `golang-spf13-cobra` |\n| Write tests | `golang-testing` | `golang-stretchr-testify` (if using testify) |\n| Apply optimization patterns | `golang-performance` | `golang-benchmark` (measure first) |\n| Measure with pprof \u002F benchstat | `golang-benchmark` | `golang-performance` (fix), `golang-troubleshooting` (root cause) |\n| Debug a panic or unexpected behavior | `golang-troubleshooting` | `golang-safety`, `golang-benchmark` (if perf-related) |\n| Monitor in production | `golang-observability` | `golang-performance` (if SLO breach) |\n| Audit security vulnerabilities | `golang-security` | `golang-safety`, `golang-lint` |\n| Review formatting and style | `golang-code-style` | `golang-naming`, `golang-lint` |\n| Refactor or restructure existing code | `golang-refactoring` | `golang-naming`, `golang-code-style`, `golang-project-layout` |\n| Configure golangci-lint | `golang-lint` | `golang-code-style` |\n| Write godoc \u002F README \u002F CHANGELOG | `golang-documentation` | `golang-naming` |\n| Set up a new project structure | `golang-project-layout` | `golang-design-patterns`, `golang-dependency-injection`, `golang-lint` |\n| Set up CI\u002FCD pipeline | `golang-continuous-integration` | `golang-lint`, `golang-security` |\n| Choose a library | `golang-popular-libraries` | relevant library-specific skill |\n| Look up a package's docs, versions, importers, or CVEs | `golang-pkg-go-dev` | `golang-dependency-management` |\n| Navigate, diagnose, or refactor local code (definitions, references, rename) | `golang-gopls` | — |\n| Adopt new Go language features | `golang-modernize` | `golang-lint` |\n| Use samber\u002Flo (slice\u002Fmap helpers) | `golang-samber-lo` | `golang-data-structures`, `golang-performance` |\n| Use samber\u002Foops (structured errors) | `golang-samber-oops` | `golang-error-handling` |\n| Use log\u002Fslog | `golang-samber-slog` | `golang-observability`, `golang-error-handling` |\n| Use dependency injection | `golang-dependency-injection` | `golang-google-wire` or `golang-uber-dig` or `golang-uber-fx` or `golang-samber-do` |\n\nAll skill identifiers above are short forms of `\u003Cname>`.\n\n## Code navigation with gopls\n\n`gopls` gives semantic code intelligence for Go — go-to-definition, find references, diagnostics, package API, symbol search, refactoring. → See `golang-gopls` skill for the three ways to reach it (its own MCP server, the native `LSP` tool, and its CLI), the full capability matrix, and efficient read\u002Fedit workflows.\n\n`gopls` only reasons about code that is present and resolvable in the local build: your workspace plus every dependency exactly as pinned in `go.sum` (including `replace` directives). For any fact that isn't tied to your local build — version history, licenses, ecosystem-wide importers, a package you haven't added yet — use `golang-pkg-go-dev` (`godig`). See the `godig` vs gopls vs Context7 vs govulncheck section below for the full boundary.\n\n## `godig` vs gopls vs Context7 vs govulncheck\n\nFour tools can answer \"is this dependency OK to use,\" and they don't overlap as much as they look:\n\n- **Context7** is a general-purpose, cross-language documentation fetcher — useful when no more specific source exists. For a Go package or module, `godig` is almost always the better choice: it pulls **structured, Go-specific data** straight from pkg.go.dev — exact versions, exported symbols with signatures, runnable examples, `imported-by`, and known vulnerabilities — rather than Context7's generic scraped\u002Fcurated docs, which don't expose that structure and can lag or miss lesser-known Go modules. Reach for Context7 only when a dependency's documentation genuinely doesn't exist or isn't indexed on pkg.go.dev.\n- **`godig`** answers questions about the **published ecosystem**: any Go package or module, whether or not it's in your `go.mod` yet — it calls the remote pkg.go.dev API and never touches your local checkout. Its `vulns` command reports CVEs known for a package\u002Fversion in isolation, regardless of whether your build actually reaches the vulnerable code path.\n- **`gopls`** (→ `golang-gopls`, via its MCP server, the native `LSP` tool, or its CLI) answers questions about **your specific build**: your code plus every dependency exactly as pinned in `go.sum`, including `replace` directives pointing at forks or local paths — neither `godig` nor Context7 can see that. Its `go_vulncheck` operation runs a single, on-demand reachability check against the workspace as it stands right now.\n- **`govulncheck`** (the standalone CLI, wrapped by the `golang-security` skill) is the whole-tree audit: it walks the entire module's call graph to confirm which known vulnerabilities are actually reachable, and is the tool of record for CI gates and periodic security sweeps — `gopls`'s `go_vulncheck` is a lighter-weight, single-shot version of the same analysis for use mid-edit.\n\nPick by task:\n\n| Task | Tool | How |\n| --- | --- | --- |\n| Find where a symbol is defined in your own repo | `gopls` | `golang-gopls` — `go_search`, then `go_file_context` |\n| Understand a file's intra-package dependencies | `gopls` | `golang-gopls` — `go_file_context` |\n| Jump into a dependency's exact resolved source (incl. forks\u002F`replace`d versions) | `gopls` | `golang-gopls` — `go_package_api`, or the native `LSP` tool's `goToDefinition` |\n| Find every call site in your own code that references a dependency's symbol | `gopls` | `golang-gopls` — `go_symbol_references` — `godig`'s `imported-by` only lists public _packages_, not call sites in your repo |\n| Get compiler diagnostics right after an edit | `gopls` | `golang-gopls` — `go_diagnostics` (MCP), or automatic with the native `LSP` tool |\n| Check whether your current build can reach a known vulnerability, mid-edit | `gopls` | `golang-gopls` — `go_vulncheck` |\n| Rename, extract, inline, or otherwise refactor local code | `gopls` | `golang-gopls` — safe rename, `refactor.*` code actions |\n| Whole-tree vulnerability audit across the module (CI, periodic sweep) | `govulncheck` | `golang-security` skill — `govulncheck .\u002F...` |\n| List available versions of a published package | `godig` | `godig versions \u003Cpath>` |\n| Check known CVEs for a package\u002Fversion you haven't added yet | `godig` | `godig vulns \u003Cpath>` |\n| See exported symbols\u002Fsignatures of a published package | `godig` | `godig symbols` \u002F `symbol doc` |\n| Get runnable code examples for a symbol | `godig` | `godig symbol examples` |\n| Read a package's rendered README\u002Fdocs | `godig` | `godig module readme` \u002F `package doc` |\n| See who imports a package across the whole public ecosystem | `godig` | `godig imported-by` |\n| Search for a package or library candidate | `godig` | `godig search` |\n| Check a package's or module's license | `godig` | `godig package licenses` \u002F `module licenses` |\n| Get docs for a non-Go library, or a Go module not indexed on pkg.go.dev | Context7 | `resolve-library-id` \u002F `query-docs` |\n\nSee the `golang-pkg-go-dev` skill for the full `godig` command reference, and the `golang-security` skill for the whole-tree `govulncheck` remediation workflow.\n\n## Categories at a glance\n\nFull catalog with \"use when\" hooks: [by-category.md](references\u002Fby-category.md)\n\n| Category | Skills |\n| --- | --- |\n| Code Quality | `golang-code-style` `golang-documentation` `golang-error-handling` `golang-lint` `golang-naming` `golang-safety` `golang-security` `golang-structs-interfaces` |\n| Architecture & Design | `golang-concurrency` `golang-context` `golang-data-structures` `golang-database` `golang-dependency-injection` `golang-design-patterns` `golang-modernize` `golang-refactoring` |\n| QA & Performance | `golang-benchmark` `golang-observability` `golang-performance` `golang-testing` `golang-troubleshooting` |\n| Project Setup | `golang-cli` `golang-continuous-integration` `golang-dependency-management` `golang-gopls` `golang-pkg-go-dev` `golang-popular-libraries` `golang-project-layout` `golang-stay-updated` |\n| APIs | `golang-graphql` `golang-grpc` `golang-swagger` |\n| Dependency Injection | `golang-dependency-injection` `golang-google-wire` `golang-uber-dig` `golang-uber-fx` `golang-samber-do` |\n| Frameworks | `golang-spf13-cobra` `golang-spf13-viper` |\n| samber\u002F\\* | `golang-samber-do` `golang-samber-hot` `golang-samber-lo` `golang-samber-mo` `golang-samber-oops` `golang-samber-ro` `golang-samber-slog` |\n| Testing | `golang-stretchr-testify` `golang-testing` |\n\n## Competing clusters — boundary lines\n\nFull boundary tables with routing examples: [disambiguation.md](references\u002Fdisambiguation.md)\n\nKey clusters and their owners:\n\n- **Performance**: `golang-performance` (optimization patterns) · `golang-benchmark` (measurement) · `golang-troubleshooting` (root cause) · `golang-observability` (always-on production)\n- **DI**: `golang-dependency-injection` (concepts\u002Fdecision) · `golang-google-wire` (compile-time) · `golang-uber-dig` (runtime reflection) · `golang-uber-fx` (lifecycle framework) · `golang-samber-do` (type-safe container)\n- **samber\u002F\\***: `golang-samber-lo` (finite transforms) · `golang-samber-ro` (reactive streams) · `golang-samber-mo` (monadic types)\n- **Errors**: `golang-error-handling` (idioms) · `golang-samber-oops` (structured errors) · `golang-safety` (prevent panics)\n- **Style**: `golang-code-style` · `golang-naming` · `golang-lint` · `golang-documentation`\n- **CLI**: `golang-cli` (architecture) · `golang-spf13-cobra` (command tree) · `golang-spf13-viper` (config layering)\n- **Package lookup**: `golang-pkg-go-dev` (query pkg.go.dev for an existing path: versions\u002Fdocs\u002Fsymbols\u002Fimporters\u002FCVEs) · `golang-gopls` (navigate\u002Frefactor your locally resolved build) · `golang-popular-libraries` (which library to adopt) · `golang-dependency-management` (manage go.mod) · `golang-security` (whole-tree CVE scan)\n- **Gap — type vs arch**: `golang-structs-interfaces` (type design) vs `golang-design-patterns` (architectural patterns)\n- **Gap — goroutine vs cancel**: `golang-concurrency` + `golang-context` — load both when cancelling goroutines via context\n- **Gap — correctness vs threat**: `golang-safety` (internal bugs) vs `golang-security` (external threats)\n- **Gap — features vs rules**: `golang-modernize` (language adoption) vs `golang-lint` (static analysis config)\n- **Gap — process vs target rules**: `golang-refactoring` (the safe, staged, at-scale _process_ of changing existing code — planning, ordering, gopls-driven mechanics, staged PRs) vs `golang-naming`\u002F`golang-code-style`\u002F`golang-project-layout`\u002F`golang-design-patterns`\u002F`golang-modernize` (what the resulting code should look like) — load `golang-refactoring` alongside whichever of these owns the target shape\n\n## Configure mode\n\nWrite an always-load directive for `golang-how-to` itself to the project's agent-config file (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, or Copilot instructions — whichever the project's harness reads), and optionally force-trigger specific secondary skills too.\n\n`golang-project-layout` writes the always-load directive automatically at project creation, with no user confirmation needed — it costs one skill description and never imposes project-specific choices. Running `\u002Fgolang-how-to configure` writes it too if missing, and additionally lets the user confirm a `## Required Go skills` block for skills that must always apply beyond routing. Follow [project-config.md](references\u002Fproject-config.md).\n\n---\n\nThis skill is not exhaustive. Refer to individual skill files and the official Go documentation for detailed guidance.\n\nIf you encounter a bug or unexpected behavior in this skill plugin, open an issue at \u003Chttps:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\u002Fissues>.\n","**Persona:** You are a Go skills orchestrator. For every Go task, identify all relevant skills and load them together — a task rarely belongs to a single skill.\n\n**Modes:**\n\n- **Orchestrate** — for any Go coding, review, debug, or setup task, load the primary skill plus all applicable secondary skills simultaneously.\n- **Disambiguate** — when two skills seem to overlap, show the boundary table. See [disambiguation.md](references\u002Fdisambiguation.md).\n- **Configure** — write the always-load directive for `golang-how-to` itself, plus an optional `## Required Go skills` block, to the project's agent-config file (CLAUDE.md, AGENTS.md, or equivalent). Follow [project-config.md](references\u002Fproject-config.md).\n\n**Questions:** In Configure mode, ask the user through the environment's question tool — never as plain-text prose. One question at a time, wait for the answer. If the environment has no question tool, ask in prose with the same options.\n\n**Dependencies:** `gopls` — `go install golang.org\u002Fx\u002Ftools\u002Fgopls@latest`; Claude Code's built-in `LSP` tool also needs `ENABLE_LSP_TOOL=1` and a Go language server wired (see [Code navigation with gopls](#code-navigation-with-gopls)).\n\n## Skill loading\n\nFor each task, load the **primary skill** and all applicable **secondary skills** at the same time. Do not wait — load them together at the start.\n\n| Intent | Primary | Also load |\n| --- | --- | --- |\n| Design an API, choose a pattern | `golang-design-patterns` | `golang-structs-interfaces`, `golang-naming` |\n| Name a type, function, or package | `golang-naming` | `golang-code-style` |\n| Handle errors idiomatically | `golang-error-handling` | `golang-safety` (nil-heavy code) |\n| Write goroutines, channels, sync | `golang-concurrency` | `golang-context` (if cancellation) |\n| Pass deadlines \u002F cancel operations | `golang-context` | `golang-concurrency` (if goroutines) |\n| Design structs, embed, use interfaces | `golang-structs-interfaces` | `golang-design-patterns` |\n| Database queries and transactions | `golang-database` | `golang-error-handling`, `golang-security` |\n| Build a gRPC service | `golang-grpc` | `golang-testing`, `golang-error-handling` |\n| Build a GraphQL API | `golang-graphql` | `golang-testing`, `golang-error-handling` |\n| Build a CLI command tree | `golang-spf13-cobra` | `golang-cli`, `golang-spf13-viper` (if config) |\n| Layer config from flags\u002Fenv\u002Ffile | `golang-spf13-viper` | `golang-spf13-cobra` |\n| Write tests | `golang-testing` | `golang-stretchr-testify` (if using testify) |\n| Apply optimization patterns | `golang-performance` | `golang-benchmark` (measure first) |\n| Measure with pprof \u002F benchstat | `golang-benchmark` | `golang-performance` (fix), `golang-troubleshooting` (root cause) |\n| Debug a panic or unexpected behavior | `golang-troubleshooting` | `golang-safety`, `golang-benchmark` (if perf-related) |\n| Monitor in production | `golang-observability` | `golang-performance` (if SLO breach) |\n| Audit security vulnerabilities | `golang-security` | `golang-safety`, `golang-lint` |\n| Review formatting and style | `golang-code-style` | `golang-naming`, `golang-lint` |\n| Refactor or restructure existing code | `golang-refactoring` | `golang-naming`, `golang-code-style`, `golang-project-layout` |\n| Configure golangci-lint | `golang-lint` | `golang-code-style` |\n| Write godoc \u002F README \u002F CHANGELOG | `golang-documentation` | `golang-naming` |\n| Set up a new project structure | `golang-project-layout` | `golang-design-patterns`, `golang-dependency-injection`, `golang-lint` |\n| Set up CI\u002FCD pipeline | `golang-continuous-integration` | `golang-lint`, `golang-security` |\n| Choose a library | `golang-popular-libraries` | relevant library-specific skill |\n| Look up a package's docs, versions, importers, or CVEs | `golang-pkg-go-dev` | `golang-dependency-management` |\n| Navigate, diagnose, or refactor local code (definitions, references, rename) | `golang-gopls` | — |\n| Adopt new Go language features | `golang-modernize` | `golang-lint` |\n| Use samber\u002Flo (slice\u002Fmap helpers) | `golang-samber-lo` | `golang-data-structures`, `golang-performance` |\n| Use samber\u002Foops (structured errors) | `golang-samber-oops` | `golang-error-handling` |\n| Use log\u002Fslog | `golang-samber-slog` | `golang-observability`, `golang-error-handling` |\n| Use dependency injection | `golang-dependency-injection` | `golang-google-wire` or `golang-uber-dig` or `golang-uber-fx` or `golang-samber-do` |\n\nAll skill identifiers above are short forms of `\u003Cname>`.\n\n## Code navigation with gopls\n\n`gopls` gives semantic code intelligence for Go — go-to-definition, find references, diagnostics, package API, symbol search, refactoring. → See `golang-gopls` skill for the three ways to reach it (its own MCP server, the native `LSP` tool, and its CLI), the full capability matrix, and efficient read\u002Fedit workflows.\n\n`gopls` only reasons about code that is present and resolvable in the local build: your workspace plus every dependency exactly as pinned in `go.sum` (including `replace` directives). For any fact that isn't tied to your local build — version history, licenses, ecosystem-wide importers, a package you haven't added yet — use `golang-pkg-go-dev` (`godig`). See the `godig` vs gopls vs Context7 vs govulncheck section below for the full boundary.\n\n## `godig` vs gopls vs Context7 vs govulncheck\n\nFour tools can answer \"is this dependency OK to use,\" and they don't overlap as much as they look:\n\n- **Context7** is a general-purpose, cross-language documentation fetcher — useful when no more specific source exists. For a Go package or module, `godig` is almost always the better choice: it pulls **structured, Go-specific data** straight from pkg.go.dev — exact versions, exported symbols with signatures, runnable examples, `imported-by`, and known vulnerabilities — rather than Context7's generic scraped\u002Fcurated docs, which don't expose that structure and can lag or miss lesser-known Go modules. Reach for Context7 only when a dependency's documentation genuinely doesn't exist or isn't indexed on pkg.go.dev.\n- **`godig`** answers questions about the **published ecosystem**: any Go package or module, whether or not it's in your `go.mod` yet — it calls the remote pkg.go.dev API and never touches your local checkout. Its `vulns` command reports CVEs known for a package\u002Fversion in isolation, regardless of whether your build actually reaches the vulnerable code path.\n- **`gopls`** (→ `golang-gopls`, via its MCP server, the native `LSP` tool, or its CLI) answers questions about **your specific build**: your code plus every dependency exactly as pinned in `go.sum`, including `replace` directives pointing at forks or local paths — neither `godig` nor Context7 can see that. Its `go_vulncheck` operation runs a single, on-demand reachability check against the workspace as it stands right now.\n- **`govulncheck`** (the standalone CLI, wrapped by the `golang-security` skill) is the whole-tree audit: it walks the entire module's call graph to confirm which known vulnerabilities are actually reachable, and is the tool of record for CI gates and periodic security sweeps — `gopls`'s `go_vulncheck` is a lighter-weight, single-shot version of the same analysis for use mid-edit.\n\nPick by task:\n\n| Task | Tool | How |\n| --- | --- | --- |\n| Find where a symbol is defined in your own repo | `gopls` | `golang-gopls` — `go_search`, then `go_file_context` |\n| Understand a file's intra-package dependencies | `gopls` | `golang-gopls` — `go_file_context` |\n| Jump into a dependency's exact resolved source (incl. forks\u002F`replace`d versions) | `gopls` | `golang-gopls` — `go_package_api`, or the native `LSP` tool's `goToDefinition` |\n| Find every call site in your own code that references a dependency's symbol | `gopls` | `golang-gopls` — `go_symbol_references` — `godig`'s `imported-by` only lists public _packages_, not call sites in your repo |\n| Get compiler diagnostics right after an edit | `gopls` | `golang-gopls` — `go_diagnostics` (MCP), or automatic with the native `LSP` tool |\n| Check whether your current build can reach a known vulnerability, mid-edit | `gopls` | `golang-gopls` — `go_vulncheck` |\n| Rename, extract, inline, or otherwise refactor local code | `gopls` | `golang-gopls` — safe rename, `refactor.*` code actions |\n| Whole-tree vulnerability audit across the module (CI, periodic sweep) | `govulncheck` | `golang-security` skill — `govulncheck .\u002F...` |\n| List available versions of a published package | `godig` | `godig versions \u003Cpath>` |\n| Check known CVEs for a package\u002Fversion you haven't added yet | `godig` | `godig vulns \u003Cpath>` |\n| See exported symbols\u002Fsignatures of a published package | `godig` | `godig symbols` \u002F `symbol doc` |\n| Get runnable code examples for a symbol | `godig` | `godig symbol examples` |\n| Read a package's rendered README\u002Fdocs | `godig` | `godig module readme` \u002F `package doc` |\n| See who imports a package across the whole public ecosystem | `godig` | `godig imported-by` |\n| Search for a package or library candidate | `godig` | `godig search` |\n| Check a package's or module's license | `godig` | `godig package licenses` \u002F `module licenses` |\n| Get docs for a non-Go library, or a Go module not indexed on pkg.go.dev | Context7 | `resolve-library-id` \u002F `query-docs` |\n\nSee the `golang-pkg-go-dev` skill for the full `godig` command reference, and the `golang-security` skill for the whole-tree `govulncheck` remediation workflow.\n\n## Categories at a glance\n\nFull catalog with \"use when\" hooks: [by-category.md](references\u002Fby-category.md)\n\n| Category | Skills |\n| --- | --- |\n| Code Quality | `golang-code-style` `golang-documentation` `golang-error-handling` `golang-lint` `golang-naming` `golang-safety` `golang-security` `golang-structs-interfaces` |\n| Architecture & Design | `golang-concurrency` `golang-context` `golang-data-structures` `golang-database` `golang-dependency-injection` `golang-design-patterns` `golang-modernize` `golang-refactoring` |\n| QA & Performance | `golang-benchmark` `golang-observability` `golang-performance` `golang-testing` `golang-troubleshooting` |\n| Project Setup | `golang-cli` `golang-continuous-integration` `golang-dependency-management` `golang-gopls` `golang-pkg-go-dev` `golang-popular-libraries` `golang-project-layout` `golang-stay-updated` |\n| APIs | `golang-graphql` `golang-grpc` `golang-swagger` |\n| Dependency Injection | `golang-dependency-injection` `golang-google-wire` `golang-uber-dig` `golang-uber-fx` `golang-samber-do` |\n| Frameworks | `golang-spf13-cobra` `golang-spf13-viper` |\n| samber\u002F\\* | `golang-samber-do` `golang-samber-hot` `golang-samber-lo` `golang-samber-mo` `golang-samber-oops` `golang-samber-ro` `golang-samber-slog` |\n| Testing | `golang-stretchr-testify` `golang-testing` |\n\n## Competing clusters — boundary lines\n\nFull boundary tables with routing examples: [disambiguation.md](references\u002Fdisambiguation.md)\n\nKey clusters and their owners:\n\n- **Performance**: `golang-performance` (optimization patterns) · `golang-benchmark` (measurement) · `golang-troubleshooting` (root cause) · `golang-observability` (always-on production)\n- **DI**: `golang-dependency-injection` (concepts\u002Fdecision) · `golang-google-wire` (compile-time) · `golang-uber-dig` (runtime reflection) · `golang-uber-fx` (lifecycle framework) · `golang-samber-do` (type-safe container)\n- **samber\u002F\\***: `golang-samber-lo` (finite transforms) · `golang-samber-ro` (reactive streams) · `golang-samber-mo` (monadic types)\n- **Errors**: `golang-error-handling` (idioms) · `golang-samber-oops` (structured errors) · `golang-safety` (prevent panics)\n- **Style**: `golang-code-style` · `golang-naming` · `golang-lint` · `golang-documentation`\n- **CLI**: `golang-cli` (architecture) · `golang-spf13-cobra` (command tree) · `golang-spf13-viper` (config layering)\n- **Package lookup**: `golang-pkg-go-dev` (query pkg.go.dev for an existing path: versions\u002Fdocs\u002Fsymbols\u002Fimporters\u002FCVEs) · `golang-gopls` (navigate\u002Frefactor your locally resolved build) · `golang-popular-libraries` (which library to adopt) · `golang-dependency-management` (manage go.mod) · `golang-security` (whole-tree CVE scan)\n- **Gap — type vs arch**: `golang-structs-interfaces` (type design) vs `golang-design-patterns` (architectural patterns)\n- **Gap — goroutine vs cancel**: `golang-concurrency` + `golang-context` — load both when cancelling goroutines via context\n- **Gap — correctness vs threat**: `golang-safety` (internal bugs) vs `golang-security` (external threats)\n- **Gap — features vs rules**: `golang-modernize` (language adoption) vs `golang-lint` (static analysis config)\n- **Gap — process vs target rules**: `golang-refactoring` (the safe, staged, at-scale _process_ of changing existing code — planning, ordering, gopls-driven mechanics, staged PRs) vs `golang-naming`\u002F`golang-code-style`\u002F`golang-project-layout`\u002F`golang-design-patterns`\u002F`golang-modernize` (what the resulting code should look like) — load `golang-refactoring` alongside whichever of these owns the target shape\n\n## Configure mode\n\nWrite an always-load directive for `golang-how-to` itself to the project's agent-config file (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, or Copilot instructions — whichever the project's harness reads), and optionally force-trigger specific secondary skills too.\n\n`golang-project-layout` writes the always-load directive automatically at project creation, with no user confirmation needed — it costs one skill description and never imposes project-specific choices. Running `\u002Fgolang-how-to configure` writes it too if missing, and additionally lets the user confirm a `## Required Go skills` block for skills that must always apply beyond routing. Follow [project-config.md](references\u002Fproject-config.md).\n\n---\n\nThis skill is not exhaustive. Refer to individual skill files and the official Go documentation for detailed guidance.\n\nIf you encounter a bug or unexpected behavior in this skill plugin, open an issue at \u003Chttps:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\u002Fissues>.\n",{"name":5,"license":15,"metadata":44,"description":7,"allowed-tools":58,"compatibility":59,"user-invocable":60},{"author":45,"version":46,"openclaw":47},"samber","1.4.0",{"emoji":48,"install":49,"homepage":55,"requires":56},"?",[50],{"bins":51,"kind":53,"package":54},[52],"gopls","go","golang.org\u002Fx\u002Ftools\u002Fgopls@latest","https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":57},[53,52],"Read Edit Write Glob Grep Bash(go:*) Bash(git:*) Agent AskUserQuestion LSP Bash(gopls:*) mcp__gopls__*","Designed for Claude Code, Codex or similar harness. Requires git.",true,"main","c349be0704bffe54a7191d1412faf564b08983ca","skills\u002Fsamber-golang\u002Fgolang-how-to",0,"https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills","https:\u002F\u002Fgithub.com\u002Frockcookies","2026-11-12 14:42:52",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":60},[70,73,76],{"tool":71,"command":72},"npx","npx skills add rockcookies\u002Fskills --skill golang-how-to",{"tool":74,"command":75},"bunx","bunx skills add rockcookies\u002Fskills --skill golang-how-to",{"tool":77,"command":78},"pnpm","pnpm dlx skills add rockcookies\u002Fskills --skill golang-how-to","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002FSKILL.md",[81,87,93,97],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"assets\u002Fcursor-go-skills.mdc","ASSET","资产文件",533,"https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002Fassets\u002Fcursor-go-skills.mdc",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fby-category.md","REFERENCE","参考文档",14864,"https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002Freferences\u002Fby-category.md",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fdisambiguation.md",18574,"https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002Freferences\u002Fdisambiguation.md",{"path":98,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fproject-config.md",8861,"https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsamber-golang\u002Fgolang-how-to\u002Freferences\u002Fproject-config.md",[102,134,158,181,206,221],{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":121,"publishedAt":133},"01M6CFPKHRH0GD3W2GTGWE9WGP","kami","Kami 专业文档排版","Typeset professional documents with Kami templates: resumes, one-pagers, white papers, letters, portfolios, and slide decks. Use when asked to 做 PDF \u002F 排版 \u002F 简历 \u002F 一页纸 \u002F PPT \u002F slides, or to create a Kami landing page. Not for auditing or restyling an existing product site.","使用 Kami 模板排版专业文档：简历、一页纸、白皮书、信件、作品集和幻灯片。当用户要求做 PDF \u002F 排版 \u002F 简历 \u002F 一页纸 \u002F PPT \u002F slides，或创建 Kami 落地页时使用。不适用于审查或重新设计现有产品网站。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftw93-kami\u002Fkami\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftw93-kami\u002Fkami\u002FSKILL.md",[111,116],{"categoryNo":112,"categoryName":113,"taxonomyType":114,"taxonomyTypeDesc":115},"01M8BQ6TK1MPB82068236GSXDE","文档处理","SCENARIO","使用场景",{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者","PROFESSION","适用职业",[104,122,123,124,125,126,127,128,129,130,131,132],"create","PDF","pptx","slides","product","page","landing","templates","site","use","documents","2026-11-12 13:55:43",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":39},"01M6WMNKD3Y4H9FGM8Q901F507","hierarchical-agents-md","层级 AGENTS.md \u002F README.md：init、update、audit、reorganize、trim。 初始化 Agent 指令、代码改动后同步文档、检查文档漂移、重组仓库文档层级、精简规则与 Skills。 Not for 写业务代码或生成文档站点。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcustom\u002Fhierarchical-agents-md\u002FSKILL.md",[],[141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],"hierarchical agents md","agents md","packages","change","maintenance","初始化","audit","for","README","update","python","init","git","true","party","third-party","文档",{"skillNo":159,"name":160,"nameZh":161,"description":162,"descriptionZh":163,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":172,"publishedAt":39},"01M6CFS6BRTQPFZCDHQP97HYXR","vueuse-functions","VueUse 组合式函数应用","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","在合适的地方应用 VueUse 组合式函数（composables），以构建简洁、可维护的 Vue.js \u002F Nuxt 功能。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvueuse\u002Fvueuse-functions\u002FSKILL.md",[166,169],{"categoryNo":167,"categoryName":168,"taxonomyType":119,"taxonomyTypeDesc":120},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":170,"categoryName":171,"taxonomyType":114,"taxonomyTypeDesc":115},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[173,174,175,176,177,178,179,180],"vueuse functions","functions","nuxt","https","vue","build","github","js",{"skillNo":182,"name":183,"nameZh":184,"description":185,"descriptionZh":186,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":195,"publishedAt":39},"01M6CFS34MDQXZPAWQFE5D7VGT","vue-testing-best-practices","Vue.js 测试最佳实践","Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.","用于 Vue.js 测试。涵盖 Vitest、Vue Test Utils、组件测试、模拟（mocking）、测试模式，以及用于 E2E 测试的 Playwright。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs-ai\u002Fvue-testing-best-practices\u002FSKILL.md",[189,192],{"categoryNo":190,"categoryName":191,"taxonomyType":119,"taxonomyTypeDesc":120},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":193,"categoryName":194,"taxonomyType":114,"taxonomyTypeDesc":115},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[196,29,197,177,198,180,199,200,131,201,202,203,179,204,205],"vue testing best practices","testing best practices","best practices","e2e testing","playwright","test","testing patterns","component","vitest","e2e",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":216,"publishedAt":39},"01M6CFS0N19MSJNTVM9AEQ7Z73","vue-router-best-practices","Vue Router 路由最佳实践","Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.","Vue Router 4 模式、导航守卫、路由参数以及路由与组件生命周期的交互。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs-ai\u002Fvue-router-best-practices\u002FSKILL.md",[214,215],{"categoryNo":167,"categoryName":168,"taxonomyType":119,"taxonomyTypeDesc":120},{"categoryNo":170,"categoryName":171,"taxonomyType":114,"taxonomyTypeDesc":115},[198,217,177,218,203,179,219,220],"vue router best practices","router","navigation","lifecycle",{"skillNo":222,"name":223,"nameZh":224,"description":225,"descriptionZh":226,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":231,"publishedAt":39},"01M6CFRYN31RFQFTE41Z6DCGKE","vue-pinia-best-practices","Pinia 状态管理最佳实践","Pinia stores, state management patterns, store setup, and reactivity with stores.","Pinia store、状态管理模式、store 配置以及 store 的响应式处理。","https:\u002F\u002Fgithub.com\u002Frockcookies\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs-ai\u002Fvue-pinia-best-practices\u002FSKILL.md",[229,230],{"categoryNo":167,"categoryName":168,"taxonomyType":119,"taxonomyTypeDesc":120},{"categoryNo":170,"categoryName":171,"taxonomyType":114,"taxonomyTypeDesc":115},[232,198,177,233,179,234,235,236,237],"vue pinia best practices","pinia","state","state management","management","setup"]