SkillTrust

← All skills

golang-dependency-injection

100 / 100 · Low risk

Fine to try.

By samber/cc-skills-golang (GitHub) · coding · 3,824 stars · scanned at commit d68d80a

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do). Use this skill when designing service architecture, setting up dependency injection, refactoring tightly coupled code, managing singletons or service factories, or when the user asks about inversion of control, service containers, o…

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'golang-dependency-injection' ] || [ -L ~/.agents/skills/'golang-dependency-injection' ]; then echo 'A skill folder named golang-dependency-injection already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/samber/cc-skills-golang' "$d" && git -C "$d" checkout --quiet 'd68d80aec298e1b74b37c2a472c002b5217248b3' -- 'skills/golang-dependency-injection' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/golang-dependency-injection' ~/.agents/skills/'golang-dependency-injection' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'golang-dependency-injection' ~/.claude/skills/'golang-dependency-injection' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for samber/cc-skills-golang shows the score of its lowest-scoring skill.

SkillTrust badge for samber/cc-skills-golang

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/samber/cc-skills-golang.svg)](https://zalavijaysinh.github.io/skilltrust/repos/samber/cc-skills-golang/)

Score history

DateVersionScore
2026-11-11d68d80a100
2026-11-08bb1d43d100
2026-11-07bb1d43d100