Golang rules

From softspark/ai-toolkit · View interactive version

Golang rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Go coding rules: style, patterns, security, testing. Triggers: .go, go.mod, go.sum, Gin, Echo, Gorilla, testing, gofmt.

How to use this skill

Skill file

Go Rules

These rules come from app/rules/golang/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Go. Apply them when writing or

reviewing Go code.

Go Coding Style

Naming

Packages

Functions

Error Handling

Formatting

Struct Design

Concurrency

Go Frameworks

Standard Library HTTP

Chi / Gorilla Mux

Gin / Echo

GORM / sqlx / pgx

gRPC

Configuration

Observability

Project Layout

Go Patterns

Error Handling

Concurrency

Interface Design

Options Pattern

Dependency Injection

Resource Management

Anti-Patterns

Go Security

Input Validation

SQL Injection

Command Injection

Cryptography

Secrets

HTTP Security

Concurrency Safety

Dependencies

Error Information Disclosure

Go Testing

Framework

File Naming

Table-Driven Tests

Test Helpers

Mocking

Integration Tests

Benchmarks

Coverage

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.