golang-google-wire

golang-google-wire is a skill in samber/cc-skills-golang, last changed 2 Sept 2026. It can download software, run shell commands, reach the network, name web addresses and pre-approve tools — read the findings before installing. Our pattern check found 1 item to review at commit 246b6c4 on 27 Oct 2026.

Pattern check: 1 item to review · commit 246b6c4 · 27 Oct 2026

Install
From the author
Compile-time dependency injection in Golang using google/wire — wire.NewSet, wire.Build, wire.Bind (interface→concrete), wire.Struct, wire.Value, wire.InterfaceValue, wire.FieldsOf, cleanup functions, //go:build wireinject injector files, and generated wire_gen.go. Apply when using or adopting google/wire, when the codebase imports `github.com/google/wire`, or when wiring an application graph at compile time via `wire.Build`. For runtime DI with reflection, see `samber/cc-skills-golang@golang-uber-dig` skill.
Licence
MIT
Repo stars
3.7k
Publisher
samber
Files
5 files
Checked
246b6c4 (opens in a new tab) · 27 Oct 2026

Install

Each tab says whether it installs commit 246b6c4, the one we checked, or the latest version.

No tab for your agent? Use Any agent for OpenCode, Goose, Windsurf (Devin Desktop), Zed, Roo Code, Factory Droid, Junie, Amp and Antigravity, and Claude Code for Cline. Kiro needs the folder copied by hand.

Pinned to commit 246b6c4, the one we checked.

From your project's root folder:

tmp="$(mktemp -d)" &&
  git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/samber/cc-skills-golang.git "$tmp" &&
  git -C "$tmp" fetch -q --depth 1 origin 246b6c4c1ab3077dee114beb9ade3bb0527dfebc &&
  git -C "$tmp" sparse-checkout set -- skills/golang-google-wire &&
  git -C "$tmp" checkout -q 246b6c4c1ab3077dee114beb9ade3bb0527dfebc &&
  mkdir -p .claude/skills &&
  mkdir .claude/skills/golang-google-wire &&
  cp -R "$tmp"/skills/golang-google-wire/. .claude/skills/golang-google-wire/ &&
  rm -rf "$tmp"

If Claude Code was already running and this created the skills folder, run /reload-skills.

Claude Code docs (opens in a new tab)

What it can touch

From the files and frontmatter at commit 246b6c4. This is how much a skill can do, not whether it is risky.

What it can touch: Shell, network or credentials

  • Runs shell commands

    Its instructions or files give the agent commands to run on your computer.

  • Reaches the network

    It sends or fetches data over the internet, for example with curl, an HTTP library or a package install.

  • Names web addresses

    It mentions outside web addresses the agent may visit. We list them but don't follow them.

  • Pre-approves tools

    Its allowed-tools field lists tools the agent may use without asking you first, in agents that honour it.

    SKILL.md:22

  • Downloads software

    It fetches programs or packages from the internet, or from a package source other than the default.

    SKILL.md:31

Pattern check

Pattern check: 1 item to review · commit 246b6c4 · 27 Oct 2026

  • R34 · HighBroad tools pre-approved in allowed-tools

    SKILL.md:22 (opens in a new tab)
    allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs Bash(wire:*) Bash(godig:*) Bash(gopls:…

We checked every text file in this skill, at commit 246b6c4 on 27 Oct 2026, against 45 published patterns such as download-and-run commands, hidden text and credential access. We don't run the skill, we don't read the web pages it points to, and we can't judge everything its instructions might lead an agent to do. In published tests, pattern checks like this one missed most malicious skills. Read the skill before you install it — especially anything it asks you to download or run.

How the check worksReport an incorrect finding

Outside links we did not follow

  • https://github.com/samber/cc-skills-golang
  • https://pkg.go.dev/github.com/google/wire
  • https://github.com/google/wire
  • https://github.com/google/wire/blob/main/docs/guide.md
  • https://github.com/google/wire/blob/main/docs/best-practices.md
  • https://github.com/google/wire/issues

Format check

Each agent reads SKILL.md a little differently. We check the file against each one's published rules; we don't run the skill in any agent.

  • Agent Skills specPasses with warnings

    The open format from agentskills.io, held to what the strictest agents enforce, so one folder loads everywhere.

    • Warning

      The frontmatter uses [ ] or { } values. Most agents accept them, but the spec's validator (skills-ref) rejects the file. F4

      Fix: Write lists as "- item" lines and maps as indented key: value lines, without anchors or tags.

    • Warning

      Fields outside the spec: user-invocable (read by Claude Code and VS Code) and paths (read by Claude Code). Uploads to the Claude apps and API, and the spec's validator, reject the file; most agents ignore these fields. O1

      Fix: Delete them for a portable skill, or keep them if you only target the agents that read them.

    • Warning

      metadata values should be text; openclaw (a map) is not. The spec's validator turns them into text; other readers may not. O4

      Fix: Quote each value, for example version: "1.0".

    • Note

      Anthropic's packaging script leaves these out: evals/. F8

      Fix: Delete them, or list them in .gitignore.

    • Note

      The first sentence of the description is 265 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

  • Claude CodePasses

    Claude Code reads its own extra fields, ignores unknown ones, and still loads a skill whose frontmatter is broken, without its fields.

    • Note

      Anthropic's packaging script leaves these out: evals/. F8

      Fix: Delete them, or list them in .gitignore.

    • Note

      The first sentence of the description is 265 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

  • Claude apps & API uploadFails

    Uploading to claude.ai or the Claude API, or packaging with Anthropic's script, accepts only the six spec fields and stops on anything else.

    • Error

      Upload and packaging fail on fields outside the spec: user-invocable and paths. O1

      Fix: Delete them, and keep your own data under metadata as text values.

    • Note

      Anthropic's packaging script leaves these out: evals/. F8

      Fix: Delete them, or list them in .gitignore.

    • Note

      The description is 514 characters. The claude.ai Help Center says 200 at most, though Anthropic's API docs and validator allow 1,024. D4

      Fix: If the claude.ai upload refuses it, trim the description to 200 characters.

    • Note

      metadata values should be text; openclaw (a map) is not. The spec defines metadata as text to text. O4

      Fix: Quote each value, for example version: "1.0".

  • OpenAI (Codex & API)Passes with warnings

    Codex finds SKILL.md by its exact name and needs a description; OpenAI's Skills API checks the frontmatter against the spec and caps uploads.

    • Warning

      Fields outside the spec: user-invocable and paths. Codex ignores them; OpenAI doesn't say whether its upload accepts them. O1

      Fix: Delete them, or move your own data under metadata as text values.

    • Warning

      metadata values should be text; openclaw (a map) is not. OpenAI's upload follows the spec's text-to-text rule. O4

      Fix: Quote each value, for example version: "1.0".

    • Note

      Anthropic's packaging script leaves these out: evals/. F8

      Fix: Delete them, or list them in .gitignore.

    • Note

      The first sentence of the description is 265 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

  • VS Code & CopilotPasses

    VS Code reads skills one folder below .github/skills, .claude/skills or .agents/skills and falls back to the folder name when the name is missing or differs; GitHub's Copilot docs require the exact name SKILL.md.

    • Note

      Anthropic's packaging script leaves these out: evals/. F8

      Fix: Delete them, or list them in .gitignore.

    • Note

      VS Code ignores fields it doesn't support: paths. O1

      Fix: Delete them unless another agent you target reads them.

SKILL.md

Files

More from samber/cc-skills-golang

  • golang-benchmark

    samber/cc-skills-golang

    Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with Prometheus runtime metrics. Also use when the developer needs deep analysis on a specific performance indicator - this skill provides the measurement methodology, while `samber/cc-skills-golang@golang-performance` provides the optimization patterns.

    • Downloads software
    • Runs shell commands
    • +3 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 2 Sept 2026

  • golang-cli

    samber/cc-skills-golang

    Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave/cli. For cobra-specific APIs → See `samber/cc-skills-golang@golang-spf13-cobra` skill; for viper configuration layering → See `samber/cc-skills-golang@golang-spf13-viper` skill.

    • Runs shell commands
    • Names web addresses
    • +2 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 23 Oct 2026

  • golang-code-style

    samber/cc-skills-golang

    Golang code style conventions — line length and breaking, variable declarations, control flow clarity, when comments help vs hurt. Use when writing or reviewing Go code, asking about style or clarity, or establishing project coding standards. Not for naming conventions (→ See `samber/cc-skills-golang@golang-naming` skill), linter configuration (→ See `samber/cc-skills-golang@golang-lint` skill), or doc comments (→ See `samber/cc-skills-golang@golang-documentation` skill).

    • Runs shell commands
    • Names web addresses
    • +1 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 19 Aug 2026

  • golang-concurrency

    samber/cc-skills-golang

    Golang concurrency design — goroutine lifecycle and leak prevention, channels and `select`, channel ownership and direction, `sync.Mutex`/`RWMutex`/`sync.Map`/`sync.Once`/atomics, `errgroup`, `singleflight`, worker pools, and fan-out/fan-in pipelines. Use when writing or reviewing concurrent Go code, when choosing between channels and mutexes, when protecting a shared map or counter, or when a goroutine has no clear exit. Not for defensive coding unrelated to concurrency such as nil panics, slice aliasing, or numeric overflow (→ See `samber/cc-skills-golang@golang-safety` skill), and not for debugging a specific hung, crashing, or racing program after the fact (→ See `samber/cc-skills-golang@golang-troubleshooting` skill).

    • Runs shell commands
    • Reaches the network
    • +2 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 2 Sept 2026

  • golang-context

    samber/cc-skills-golang

    Idiomatic context.Context usage in Golang — propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests. Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context. Not for code that merely accepts ctx as first parameter.

    • Runs shell commands
    • Reaches the network
    • +2 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 1 Sept 2026

  • golang-continuous-integration

    samber/cc-skills-golang

    GitHub Actions CI/CD pipeline configuration for Golang projects — workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build/push, repository security settings, and AI-driven PR review. Use when setting up or improving Go project CI, writing or fixing `.github/workflows/*.yml`, adding a linter or security scanner as a pipeline job, wiring automated dependency-update bots, or adding quality gates. Covers wiring tools into a pipeline, not the analysis they perform: do NOT use for choosing or interpreting security findings (→ See `samber/cc-skills-golang@golang-security` skill) or for choosing, upgrading, or auditing dependency versions (→ See `samber/cc-skills-golang@golang-dependency-management` skill).

    • Touches credentials
    • Downloads software
    • +6 more
    Pattern check: 1 item to review

    MIT · 3.7k repo stars · Updated 2 Sept 2026

All skills in samber/cc-skills-golang