
go-development
Go development skill covering cron scheduling, Docker, LDAP, resilience, and test suites for production services.
- GitHub stars
- 92
What it does
- Adds the
go-developmentskill with references for go-cron scheduling, Docker client patterns, LDAP/Active Directory integration, and resilience wrappers - Covers project structure, error handling, build-tag test isolation, fuzz and mutation testing, golangci-lint v2, and structured logging with
log/slog - Enforces state mutation completeness and avoids partial updates when designing package architecture and runtime job changes
- Designed for Go teams building job schedulers, Docker-integrated services, or LDAP clients that need retry and circuit-breaker behavior
Go (Golang) development patterns following best practices for cloud-native applications. Covers project structure, error handling, concurrency patterns, testing strategies, Docker containerization, LDAP integration, and resilience patterns. By Netresearch.
Add marketplace
/plugin marketplace add netresearch/claude-code-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install go-development@netresearch-claude-code-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceGo Development Patterns
Core Principles
Type Safety
- Avoid:
interface{}(useany),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/slogdirectly -- 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
Readme
Go Development Skill
Production-grade Go development patterns for building resilient services, extracted from real-world projects including job schedulers, Docker integrations, and LDAP clients.
🔌 Compatibility
This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.
Supported Platforms:
- ✅ Claude Code (Anthropic)
- ✅ Cursor
- ✅ GitHub Copilot
- ✅ Other skills-compatible AI agents
Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.
Features
- Architecture Patterns: Package structure conventions, state mutation completeness
- Cron Scheduling: go-cron patterns — named jobs, runtime updates, per-entry context, resilience wrappers, observability, FakeClock testing, bitmask parser options
- Resilience Patterns: go-cron's built-in retry/circuit-breaker/timeout wrappers for scheduled jobs
- Docker Integration: Optimized Docker client patterns, buffer pooling for performance, container execution patterns
- LDAP Integration: Active Directory patterns, user and group management, authentication flows
- Testing Strategy: Build tags for test isolation (unit/integration/e2e), race-condition and Fiber v2 test gotchas, resource isolation
- Observability: Prometheus metrics integration, structured logging, error tracking
Installation
Marketplace (Recommended)
Add the Netresearch marketplace once, then browse and install skills:
# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace
/plugin install go-development@netresearch-claude-code-marketplace
Without a marketplace
Since Claude Code 2.1.157 a plugin directory under your personal skills directory loads on its own:
mkdir -p ~/.claude/skills
git clone https://github.com/netresearch/go-development-skill.git \
~/.claude/skills/go-development
It loads as go-development@skills-dir on the next session. Update with git -C ~/.claude/skills/go-development pull and start a new session; remove it by deleting the directory. This route has no claude plugin update.
npx (skills.sh)
Install with any Agent Skills-compatible agent:
npx skills add https://github.com/netresearch/go-development-skill --skill go-development
Download Release
Download the latest release and extract to your agent's skills directory.
Git Clone
git clone https://github.com/netresearch/go-development-skill.git
Composer (PHP Projects)
composer require netresearch/go-development-skill
Requires netresearch/composer-agent-skill-plugin.
Usage
This skill is automatically triggered when:
- Building Go services or CLI applications
- Implementing job scheduling or task orchestration
- Integrating with Docker API
- Building LDAP/Active Directory clients
- Designing resilient systems with retry logic
- Setting up comprehensive test suites
Example queries:
- "Create a resilient job scheduler in Go"
- "Implement Docker container execution with retry logic"
- "Build LDAP authentication client"
- "Set up graceful shutdown for Go service"
- "Implement buffer pooling for high-throughput operations"
- "Create comprehensive test suite with build tags"
Structure
go-development-skill/
├── skills/go-development/
│ ├── SKILL.md # Skill metadata and core patterns
│ ├── checkpoints.yaml # Assessment checkpoints for Go projects
│ ├── evals/evals.json # Skill evaluation cases
│ ├── scripts/verify-go-project.sh # Go project verification
│ └── references/
│ ├── api-design.md # Enum/status defensive handling
│ ├── architecture.md # Package structure, state mutation completeness
│ ├── awesome-go-submission.md # Submitting a project to awesome-go
│ ├── branch-protection.md # Branch protection standard for Go repos
│ ├── contracts-and-invariants.md # Contracts and invariants
│ ├── cron-scheduling.md # go-cron: named jobs, updates, context, resilience
│ ├── dependencies.md # Dependency upgrades
│ ├── docker.md # Docker client patterns
│ ├── fuzz-testing.md # Go fuzzing patterns, security seeds
│ ├── ldap.md # LDAP/Active Directory integration
│ ├── lefthook-template.md # Lefthook git hooks for Go projects
│ ├── linting.md # golangci-lint v2 configuration
│ ├── logging.md # Structured logging with log/slog
│ ├── makefile.md # Standard Makefile interface
│ ├── modernization.md # Go 1.26 modernizers, go fix, errors.AsType
│ ├── mutation-testing.md # Gremlins test quality measurement
│ ├── resilience.md # Pointer to go-cron's resilience wrappers
│ ├── reusable-workflows.md # Reusable GitHub workflows for Go repos
│ ├── single-build-release.md # Single-build release pipeline
│ └── testing.md # Build tags, race and Fiber v2 gotchas
├── Build/ # Plugin version check and pre-push hook
├── scripts/verify-harness.sh # Agent harness consistency checker
├── tests/ # Behavioural tests for the scripts
└── docs/ARCHITECTURE.md # Architecture of this repository
Expertise Areas
Architecture Patterns
- Package structure conventions
- State mutation completeness (avoiding partial updates)
Cron Scheduling (go-cron)
- Named jobs with O(1) lookup
- Runtime updates (UpsertJob, UpdateSchedule, UpdateEntry)
- Per-entry context with automatic cancellation
- Resilience wrappers (retry, circuit breaker, timeout)
- Observability hooks (Prometheus integration)
- FakeClock for deterministic testing
- Missed job catch-up policies
Resilience Patterns
- Retry, circuit-breaker, and timeout wrappers built into go-cron for scheduled jobs
- Standard library-backed patterns (rate limiting, graceful shutdown) outside the job scheduler
Docker Integration
- Optimized Docker client patterns
- Buffer pooling for performance
- Container execution patterns
LDAP Integration
- Active Directory patterns
- User and group management
- Authentication flows
Testing Strategy
- Build tags for test isolation (unit/integration/e2e)
- Race-condition gotchas and fixes
- Resource isolation (one instance per test)
- Fiber v2 test patterns
Running Go Tests
The test commands the skill recommends for Go projects:
# Unit tests only (default)
go test ./...
# With integration tests
go test -tags=integration ./...
# Full suite including E2E
go test -tags=e2e ./...
# With race detector
go test -race ./...
# With coverage
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
Quality Gates
Recommended Tooling
.PHONY: dev-check
dev-check: fmt vet lint security test
fmt:
gofmt -w $(shell git ls-files '*.go')
gci write .
vet:
go vet ./...
lint:
golangci-lint run --timeout 5m
security:
gosec ./...
gitleaks detect
test:
go test -race ./...
Related Skills
This skill focuses on Go code patterns and quality. For complete project setup:
| Skill | Purpose |
|---|---|
github-project | Repository setup, branch protection, auto-merge workflows |
enterprise-readiness | OpenSSF Scorecard, SLSA provenance, signed releases |
security-audit | OWASP Top 10, CVE analysis, security hardening |
Tests
This section is about the tests of this repository; the Go test commands above are what the skill recommends for Go projects. The behavioural tests live in tests/ and run offline; they need bash, git, python3 and the usual coreutils, find, grep, sed and awk. No Go toolchain is needed:
bash tests/verify-go-project.sh # skills/go-development/scripts/verify-go-project.sh
bash tests/check-plugin-version.sh # Build/Scripts/check-plugin-version.sh and Build/hooks/pre-push
tests/verify-go-project.shruns the verifier against fixture projects with a stubgoonPATHthat records wherego vetran and exits with a chosen status, or with nogoonPATHat all. It checks the exit codes, that every section runs after a failed item, the error and warning counts, and that a relative project path is resolved correctly.tests/check-plugin-version.shbuilds throwaway git repositories and checks that a semver tag atHEADmust match the version in.claude-plugin/plugin.json, and that the pre-push hook passes the result on.
Each check prints ok or FAIL; a FAIL line names the expectation that was not met and is followed by the script's output. A test file exits 1 when any check failed. In CI, the Skill Tests workflow (.github/workflows/tests.yml) runs every tests/**/*.sh on each pull request and on pushes to main, and fails when the repository ships scripts under skills/*/scripts/ but no test ran.
scripts/verify-harness.sh has no test of its own; on pull requests, Harness Verification (harness-verify.yml) checks AGENTS.md (presence, length, links, documented commands) and docs/ARCHITECTURE.md with its own steps. The skill's Markdown is not executed here; Skill Validation and Eval Validation check its structure and the eval definitions in skills/go-development/evals/evals.json. A pull request that adds or changes behaviour in a script adds or updates a check in tests/ that fails without the change.
Governance and policies
This repository follows the Netresearch organisation policies:
- Governance: ownership, roles, how decisions are made and disputes resolved, and continuity.
- Roadmap: planned and explicitly excluded work for the coming year.
- Handling of dependency and code analysis findings: thresholds, deadlines and the exception process for dependency (SCA) and static analysis (SAST) findings.
- Secret management: how CI and release credentials are stored, accessed and rotated.
- Access roster: who holds administrative access to this repository and the organisation.
The security assurance case for this skill (threat model, trust boundaries, countermeasures and limits) is in docs/SECURITY-ASSURANCE.md.
Checks that run on pull requests in this repository:
- Every pull request: Skill Validation (
lint.yml: skill structure, markdownlint, yamllint, actionlint, JSON syntax, ShellCheck, ruff, checkpoint schema), Eval Validation (eval-validate.yml) and Skill Tests (tests.yml). - Pull requests to
main:security.ymlwith Betterleaks (secret scanning), zizmor (workflow static analysis), dependency review, Composer Audit and Opengrep SAST (both behind a preflight event-gate job), and CodeQL foractions; Harness Verification (harness-verify.yml) and Template Drift (check-template-drift.yml). The organisation's security policy sets when dependency review and Opengrep fail: see dependencies and static analysis (SAST). - Also on every pull request: Labeler (
labeler.yml), the DCO sign-off check, SonarCloud Code Analysis and the CodeRabbit review status (GitHub Apps) and, for dependency-update pull requests, auto-merge (auto-merge-deps.yml).
License
This project uses split licensing:
- Code (scripts, workflows, configs): MIT
- Content (skill definitions, documentation, references): CC-BY-SA-4.0
See the individual license files for full terms.
Credits
Developed and maintained by Netresearch DTT GmbH.
Made with ❤️ for Open Source by Netresearch
Details
- Marketplace
- netresearch/claude-code-marketplace
- Source
- netresearch/go-development-skill
- Category
- Development
- Listed since
- Apr 7, 2026
More from netresearch/claude-code-marketplace
All 41- jira-integration
- jujutsu-workflow
- markdown-to-pdf
- matrix-communication
- netresearch-branding
- orocommerce
- peer-qa-review
- php-modernization
- php-structured-edit
- retro
- security-audit
- skill-repo
- typo3-a11y
- typo3-ckeditor5
- typo3-conformance
- typo3-core-contributions
- typo3-ddev
- typo3-docs
- typo3-extension-upgrade
- typo3-project-upgrade
- typo3-site-conformance
- typo3-testing
- typo3-typoscript-ref
- typo3-upgrade-effort-model
Similar to go-development
go-toolkitPluginarmanzeroeight/fastagent-plugins29 starsGo programming language toolkit for concurrency patterns, error handling, and idiomatic Go practices. Includes Go expert agent for strategic Go architecture dec
goSkillmindrally/skills800 installsExpert Go guidance covering idiomatic APIs, clean architecture, concurrency, testing, and DevOps practices.
jutsu-goPluginTheBushidoCollective/han201 starsAdvanced Go skills for concurrency, error handling, and interfaces.
docker-developmentPluginnetresearch/claude-code-marketplace92 starsDocker image development patterns for Dockerfile, docker-compose, docker-bake.hcl, and .dockerignore. Multi-stage builds, layer optimization, CI testing pattern
typo3-ddevPluginnetresearch/claude-code-marketplace92 starsSet up and manage TYPO3 development environments using DDEV. Includes DDEV configuration, local development workflows, container management, database handling,