Index of every page on this site: llms.txt
All skills
Run it yourself

Use when developing Go applications, implementing job schedulers or cron (netresearch/go-cron, ofelia), Docker API integrations, LDAP/AD clients, building resilient services with retry logic, setting up Go test suites (unit/integration/fuzz/mutation), or running golangci-lint.

Use this Skill: https://skilld.dev/gh/netresearch/go-development-skill/go-development

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈73 tokens for metadata: the name and description. ≈906 when used: this file. ≈58k more on demand in 24 files.

Description uses 3.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈294 characters, or 3.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Go Development Patterns

Core Principles

Type Safety

  • Avoid: interface{} (use any), sync.Map, scattered type assertions, reflection
  • Prefer: Generics [T any], errors.AsType[T] (Go 1.26), concrete types
  • Run go fix ./... after upgrades

Consistency

  • One pattern per problem domain
  • Match existing codebase patterns
  • Refactor holistically or not at all
  • Config precedence: defaults < config file < env vars < flags

Testing

  • Build tags isolate test tiers: unit (default), integration, e2e
  • Always use t.Parallel(), t.Helper(), table-driven subtests
  • Use log/slog directly -- never wrap it in custom Logger interfaces

Conventions

  • Naming: ID, URL, HTTP (not Id, Url, Http) — not tool-enforced (ST1003 is off by default)
  • Error wrapping: fmt.Errorf("failed to process: %w", err)

References

Git hooks: ls lefthook.yml 2>/dev/null && lefthook install || echo "Add lefthook — see references/lefthook-template.md"

Load as needed:

Reference Purpose
references/architecture.md Package structure, state mutation completeness
references/logging.md Structured logging with log/slog, migration from logrus
references/cron-scheduling.md go-cron patterns: named jobs, runtime updates, resilience
references/resilience.md Pointer to go-cron's built-in retry/circuit-breaker/timeout wrappers
references/docker.md Docker client patterns, buffer pooling
references/ldap.md LDAP/Active Directory integration
references/testing.md Build tags, resource isolation, race gotchas
references/linting.md golangci-lint v2, staticcheck
references/api-design.md Enum/status defensive handling
references/fuzz-testing.md Go fuzzing patterns, security seeds
references/contracts-and-invariants.md Contracts, invariants, property tests
references/filepath-globs.md Deciding from whether a config path exists: Glob error loss, \ on Windows, Lstat
references/mutation-testing.md Gremlins configuration, test quality measurement
references/makefile.md Standard Makefile interface for CI/CD
references/performance.md Profiling and benchmark A/B, GOMAXPROCS in containers, inlining and PGO, os/exec copy buffers
references/modernization.md go fix modernizers and their build-tag trap, errors.AsType[T], b.Loop
references/dependencies.md Upgrades: go get -u all, majors, build-set scoping
references/lefthook-template.md Ready-to-use lefthook.yml for Go project git hooks
references/branch-protection.md Ruleset watermark: three-ruleset gate, bypass modes
references/reusable-workflows.md Reusable Actions workflow callers, permission propagation, release-gate outputs
references/single-build-release.md Single-build release: cross-compile once, reuse for release+container
references/awesome-go-submission.md awesome-go submission: CI-parsed PR body, name collisions

Quality Gates

Run before completing any review:

golangci-lint run --timeout 5m    # Linting
go vet ./...                       # Static analysis
staticcheck ./...                  # Additional checks
govulncheck ./...                  # Vulnerability scan
go test -race ./...                # Race detection

Stdlib Vulnerability Fixes

When govulncheck reports stdlib vulnerabilities: check fix version via vuln.go.dev, update go X.Y.Z in go.mod, run go mod tidy.


Contributing: Submit improvements to https://github.com/netresearch/go-development-skill

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2d5 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    The skill provides a comprehensive environment for Go development, encompassing patterns for LDAP, Docker, and cron scheduling, along with project auditing scripts. It leverages industry-standard tools for linting and security scanning. The skill presents a potential surface for indirect prompt injection when reading untrusted project files, but otherwise follows best practices and uses established community resources.

  • Socket6d

    No alerts

  • Snyk2d

    Risk: MEDIUM · 3 issues

  • Runlayer8mo

    7/15 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at dc30547. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 days ago
What it can do
Runs commands
compatibility
Requires go 1.21+, golangci-lint, docker.
All 1 allowed tools
Bash(go:*) Bash(make:*) Bash(docker:*) Bash(golangci-lint:*) Read Write Glob Grep
Other metadata
metadata
{
  "author": "Netresearch DTT GmbH",
  "version": "1.16.7",
  "repository": "https://github.com/netresearch/go-development-skill"
}

README badge

README badge for netresearch/go-development-skill