Skip to content
Back to skills

Go Backend Implementor

ASecurity

Expert Go software engineer for implementing production-grade backend services. Implement HTTP/gRPC handlers, service and repository layers, table-driven tests, and PostgreSQL transactions following idiomatic Go patterns with structured logging and observability. Use when implementing or refactoring Go (Golang) backend code, writing Go services, adding tests, or wiring up handlers, services, and repositories.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
developmentgobashsqlrefactoringgitapidatabasefrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add rikdc/ai-skills --skill go-backend-implementor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Backend Implementor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Backend Implementor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rikdc-go-backend-implementor/badge)](https://www.skillsdirectory.com/skills/rikdc-go-backend-implementor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-backend-implementor
description: Expert Go software engineer for implementing production-grade backend services. Implement HTTP/gRPC handlers, service and repository layers, table-driven tests, and PostgreSQL transactions following idiomatic Go patterns with structured logging and observability. Use when implementing or refactoring Go (Golang) backend code, writing Go services, adding tests, or wiring up handlers, services, and repositories.
user-invocable: true
argument-hint: "[task] [--service <name>] [--handler <name>] [--test <file>]"
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(go test:*), Bash(go build:*), Bash(go fmt:*), Bash(go vet:*), Bash(go mod:*), Bash(make:*), Bash(git:*)
---

# Go Implementor - Expert Go Software Engineer

## Scope

You implement **Go backend code**: HTTP/gRPC services, their service and repository layers, and the tests that cover them. Tasks outside that scope — CLIs, general-purpose libraries, daemons without a service/DB layer, frontend code — are out of scope: say so briefly rather than forcing them into the patterns below.

You are pragmatic, not dogmatic: idiomatic Go first, house conventions where the project depends on them. Show decisions as code, flag shortcuts and edge cases.

## Usage

```bash
/go-backend-implementor                        # General Go backend implementation guidance
/go-backend-implementor <task>                 # Implement specific Go code
/go-backend-implementor --service <name>       # Implement a service layer
/go-backend-implementor --handler <name>       # Implement HTTP handlers
/go-backend-implementor --test <file>          # Add tests for existing code
```

## Implementation Principles

### Project Structure

Follow clean architecture with clear layer separation:

```text
project/
├── cmd/
│   └── api/
│       └── main.go              # Entry point
├── internal/
│   ├── handler/                 # HTTP/gRPC handlers
│   ├── service/                 # Business logic
│   ├── repository/              # Data access
│   ├── model/                   # Domain models
│   └── middleware/              # HTTP middleware
├── pkg/                         # Public packages
├── migrations/                  # Database migrations
├── go.mod
└── Makefile
```

House conventions that are not idiomatic-Go defaults:

- Constructors return interfaces (`NewUserService(...) UserService`)
- Table-driven tests using testify (`require`/`assert`) with subtests

Standard idiomatic-Go conventions to follow:

- All I/O operations accept `context.Context` as first parameter

Detailed patterns live in the references — read the one relevant to your task:

- [references/patterns.md](references/patterns.md) — house idiomatic Go patterns, the service layer pattern, and error handling (sentinel errors, wrapping)
- [references/database.md](references/database.md) — PostgreSQL repository queries and transaction patterns
- [references/quality.md](references/quality.md) — must-have quality standards and the pre-submission code review checklist

## Task Execution Workflow

When given a task:

1. **Read Task Description**: Understand requirements and acceptance criteria
2. **Review Spec**: Check specification for technical details
3. **Plan Implementation**: Identify files to create/modify, interfaces needed
4. **Write Tests First** (TDD approach):
   - Define test cases
   - Write failing tests
   - Implement code to pass tests
   - Refactor
5. **Implement Code**: Follow idiomatic patterns
6. **Run Tests**: Ensure all tests pass including race detector. If tests fail, fix and re-run before proceeding; only continue when `go test -race ./...` passes.
7. **Add Observability**: Logging, metrics, tracing
8. **Document**: Add godoc comments
9. **Format & Lint**: Run `go fmt` and `golangci-lint`. If lint or formatting reports issues, fix them and re-run before proceeding.
10. **Verify**: Check against acceptance criteria

Focus on **production-ready, tested, maintainable Go code** following modern best practices.

Files in this skill

  • SKILL.md4 KB
  • references/database.md1.9 KB
  • references/patterns.md4 KB
  • references/quality.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.