Go Development Toolkit for Claude Code

A comprehensive collection of Claude Code skills, agents, and commands for Go development.

πŸš€ Quick Start

# Clone the repo
git clone https://github.com/dsjacobsen/agent-resources.git
cd agent-resources

# Copy to global .claude (available in all projects)
cp -r .claude/* ~/.claude/

# Or copy to local project (available in current project only)
cp -r .claude /path/to/your/project/

Install Individual Components

# Skill
uvx add-skill dsjacobsen/golang-pro

# Agents
uvx add-agent dsjacobsen/go-scaffold
uvx add-agent dsjacobsen/go-feature
uvx add-agent dsjacobsen/go-api-builder
uvx add-agent dsjacobsen/go-cli-builder
uvx add-agent dsjacobsen/go-reviewer
uvx add-agent dsjacobsen/go-test-generator
uvx add-agent dsjacobsen/go-docs-generator
uvx add-agent dsjacobsen/go-refactor
uvx add-agent dsjacobsen/go-db-builder

# Commands
uvx add-command dsjacobsen/go-new
uvx add-command dsjacobsen/go-feature
uvx add-command dsjacobsen/go-endpoint
uvx add-command dsjacobsen/go-test
uvx add-command dsjacobsen/go-review
uvx add-command dsjacobsen/go-check
uvx add-command dsjacobsen/go-doc
uvx add-command dsjacobsen/go-refactor
uvx add-command dsjacobsen/go-debug
uvx add-command dsjacobsen/go-deps
uvx add-command dsjacobsen/go-db

πŸ“ Structure

.claude/
β”œβ”€β”€ skills/
β”‚   └── golang-pro/           # Go expertise & patterns
β”‚
β”œβ”€β”€ agents/                    # Autonomous specialists
β”‚   β”œβ”€β”€ go-scaffold.md        # New project setup
β”‚   β”œβ”€β”€ go-feature.md         # Feature implementation
β”‚   β”œβ”€β”€ go-api-builder.md     # REST API endpoints
β”‚   β”œβ”€β”€ go-cli-builder.md     # CLI applications
β”‚   β”œβ”€β”€ go-reviewer.md        # Code review
β”‚   β”œβ”€β”€ go-test-generator.md  # Test generation
β”‚   β”œβ”€β”€ go-docs-generator.md  # Documentation
β”‚   β”œβ”€β”€ go-refactor.md        # Code improvement
β”‚   └── go-db-builder.md      # database/sql + pgx repositories & queries
β”‚
└── commands/                  # Quick shortcuts
    β”œβ”€β”€ go-new.md             # /go-new
    β”œβ”€β”€ go-feature.md         # /go-feature
    β”œβ”€β”€ go-endpoint.md        # /go-endpoint
    β”œβ”€β”€ go-test.md            # /go-test
    β”œβ”€β”€ go-review.md          # /go-review
    β”œβ”€β”€ go-check.md           # /go-check
    β”œβ”€β”€ go-doc.md             # /go-doc
    β”œβ”€β”€ go-refactor.md        # /go-refactor
    β”œβ”€β”€ go-debug.md           # /go-debug
    β”œβ”€β”€ go-deps.md            # /go-deps
    └── go-db.md              # /go-db

🧩 Skills vs Agents vs Commands

TypePurposeHow to Use
SkillsTeach Claude patterns & knowledgeAuto-applies when relevant
AgentsDo complex tasks autonomously@go-reviewer review this code
CommandsQuick shortcuts/go-check

πŸ“¦ What's Included

Skill: golang-pro

Expert Go knowledge covering:

  • Idiomatic Go patterns (Effective Go)
  • Concurrency (goroutines, channels, sync)
  • Error handling best practices
  • Testing patterns (table-driven, benchmarks)
  • Modern Go 1.21+ features (generics, slog)
  • Production patterns (graceful shutdown, middleware)

Agents

Feature Implementation

AgentDescription
go-scaffoldCreates new Go projects with proper structure, CI/CD, Docker
go-featureImplements features following clean architecture patterns
go-api-builderBuilds REST endpoints with handlers, services, DTOs
go-cli-builderCreates CLI apps with Cobra or stdlib flags

Code Quality

AgentDescription
go-reviewerReviews code for correctness, security, performance
go-test-generatorGenerates comprehensive test suites
go-docs-generatorCreates package docs, README, godoc comments
go-refactorImproves code structure while preserving behavior
go-db-builderBuilds database/sql + pgx repositories, queries, and transactions

Commands

CommandDescription
/go-newCreate a new Go project
/go-featureImplement a new feature
/go-endpointAdd a REST API endpoint
/go-testGenerate tests for code
/go-reviewReview code for issues
/go-checkRun lint, tests, coverage
/go-docGenerate documentation
/go-refactorImprove code structure
/go-debugDebug an issue
/go-depsAnalyze dependencies
/go-dbImplement repositories/queries/transactions (database/sql + pgx)

πŸ”„ Example Workflow

/go-new                    # Create project
/go-endpoint               # Add API endpoints
/go-feature                # Implement business logic
/go-test                   # Generate tests
/go-check                  # Run quality checks
/go-review                 # Review the code
/go-doc                    # Generate docs

πŸ€– Model Selection

Agents use different Claude models based on task complexity:

ModelUsed ByWhy
Opus 4.5go-reviewer, go-refactor, go-featureComplex reasoning, nuanced decisions, architectural thinking
Sonnet 4All other agentsFast, cost-effective, highly capable for focused tasks

Why Sonnet 4 for Most Agents?

  • Speed - Faster responses for iterative development workflows
  • Cost - More economical for frequent use
  • Capability - Highly capable for well-defined coding tasks (test generation, API building, scaffolding)

Why Opus 4.5 for Select Agents?

  • go-reviewer - Needs nuanced analysis of code quality, security implications, and architectural concerns
  • go-refactor - Requires careful reasoning about code structure and making safe transformations
  • go-feature - Must understand complex requirements and design appropriate solutions

You can change any agent's model by editing the model: field in its frontmatter.

πŸ“š Resources

πŸ“„ License

MIT