Skip to content
Back to skills

Go Service Patterns

ASecurity

Go service structure: package layout, context propagation, error wrapping, graceful shutdown and table-driven tests.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgobackend

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill go-service-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Service Patterns?

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

Security grade badge for Go Service Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-go-service-patterns/badge)](https://www.skillsdirectory.com/skills/karthikrshet-go-service-patterns)

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-service-patterns
description: "Go service structure: package layout, context propagation, error wrapping, graceful shutdown and table-driven tests."
tags: [golang, backend]
---

# Go Service Patterns

## When to use

- Go services

## Procedure

1. Keep main thin; wire dependencies explicitly
2. Pass context.Context first
3. Wrap errors with %w
4. Graceful shutdown with signal.NotifyContext
5. Table-driven tests with t.Run

## Checklist

- [ ] go vet and race detector clean

## Anti-patterns

- Global state
- Ignoring errors

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 ai-agents →

Comments

Loading comments…

Newsletter

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