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