aigw-contrib-go-style
Installation
SKILL.md
Go Style Guide (AI Gateway)
This guide captures the Go coding patterns enforced by the lead maintainer (@mathetake). Following these patterns is the single biggest factor in getting PRs accepted on the first or second review cycle.
Performance Patterns
These are the most common reasons PRs get rejected.
No Allocations Inside Loops
Construct maps, slices, and reusable objects once outside the loop:
// BAD — allocates a new map every iteration
for _, item := range items {
m := make(map[string]string)
// ...
}