.claude
Update README with model selection details and change models for go-reviewer, go-refactor, and go-feature agents to Opus 4.5 for improved performance on complex tasks.README.md
Update README with model selection details and change models for go-reviewer, go-refactor, and go-feature agents to Opus 4.5 for improved performance on complex tasks.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
| Type | Purpose | How to Use |
|---|---|---|
| Skills | Teach Claude patterns & knowledge | Auto-applies when relevant |
| Agents | Do complex tasks autonomously | @go-reviewer review this code |
| Commands | Quick 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
| Agent | Description |
|---|---|
go-scaffold | Creates new Go projects with proper structure, CI/CD, Docker |
go-feature | Implements features following clean architecture patterns |
go-api-builder | Builds REST endpoints with handlers, services, DTOs |
go-cli-builder | Creates CLI apps with Cobra or stdlib flags |
Code Quality
| Agent | Description |
|---|---|
go-reviewer | Reviews code for correctness, security, performance |
go-test-generator | Generates comprehensive test suites |
go-docs-generator | Creates package docs, README, godoc comments |
go-refactor | Improves code structure while preserving behavior |
go-db-builder | Builds database/sql + pgx repositories, queries, and transactions |
Commands
| Command | Description |
|---|---|
/go-new | Create a new Go project |
/go-feature | Implement a new feature |
/go-endpoint | Add a REST API endpoint |
/go-test | Generate tests for code |
/go-review | Review code for issues |
/go-check | Run lint, tests, coverage |
/go-doc | Generate documentation |
/go-refactor | Improve code structure |
/go-debug | Debug an issue |
/go-deps | Analyze dependencies |
/go-db | Implement 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:
| Model | Used By | Why |
|---|---|---|
| Opus 4.5 | go-reviewer, go-refactor, go-feature | Complex reasoning, nuanced decisions, architectural thinking |
| Sonnet 4 | All other agents | Fast, 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 concernsgo-refactor- Requires careful reasoning about code structure and making safe transformationsgo-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
- Claude Code Skills Documentation
- Claude Code Subagents Documentation
- Effective Go
- Uber Go Style Guide
š License
MIT