Imported from netresearch/go-development-skill (
AGENTS.md). Install upstream withnpx skills add netresearch/go-development-skill. Copyright stays with the author.
Go Development Skill
Production-grade Go development patterns for building resilient services, job schedulers, Docker integrations, and LDAP clients.
Repo Structure
βββ skills/go-development/
β βββ SKILL.md # Skill metadata and core patterns
β βββ checkpoints.yaml # Skill checkpoints
β βββ evals/ # Skill evaluations
β βββ references/ # Detailed reference docs (see below)
β βββ scripts/
β βββ verify-go-project.sh # Go project verification
βββ Build/
β βββ Scripts/ # Build/validation scripts
β βββ hooks/ # Git hook templates (pre-push)
βββ scripts/
β βββ verify-harness.sh # Harness consistency checker
βββ .github/workflows/ # CI workflows (lint, release, auto-merge)
βββ docs/ # Architecture and planning docs
βββ composer.json # Composer package manifest
βββ README.md
Commands
No build system scripts defined in composer.json. Basic operations:
bash skills/go-development/scripts/verify-go-project.sh-- verify Go project setupbash scripts/verify-harness.sh --status-- check harness maturity levelgo test ./...-- run unit testsgo test -tags=integration ./...-- run integration testsgolangci-lint run-- lint Go code
Rules
- Prefer generics
[T any]overinterface{}; useerrors.AsType[T](Go 1.26+) - Errors: lowercase, no punctuation (
errors.New("invalid input")) - One pattern per problem domain; match existing codebase patterns
- Test pyramid: unit (<100ms) / integration (1-5s) / e2e (5-30s) with build tags
- Configuration precedence: defaults < config file < external source < flags < env vars
- Always run related skills for comprehensive reviews (security-audit, enterprise-readiness, github-project)
- Load reference files on-demand based on content triggers (see SKILL.md)
References
- SKILL.md -- core skill definition and triggers
- Architecture Patterns
- Cron Scheduling
- Resilience Patterns
- Docker Integration
- LDAP Integration
- Testing Strategy
- Linting (golangci-lint)
- API Design
- Fuzz Testing
- Contracts & Invariants
- Mutation Testing
- Makefile Patterns
- Go Modernization
- Logging
- Architecture