encore-go-code-review
Installation
SKILL.md
Encore Go Code Review
Instructions
When reviewing Encore Go code, check for these common issues:
Critical Issues
1. Infrastructure Inside Functions
// WRONG: Infrastructure declared inside function
func setup() {
db := sqldb.NewDatabase("mydb", sqldb.DatabaseConfig{...})
topic := pubsub.NewTopic[*Event]("events", pubsub.TopicConfig{...})
}
// CORRECT: Package level declaration
var db = sqldb.NewDatabase("mydb", sqldb.DatabaseConfig{
Related skills
More from encoredev/skills
encore-service
Structure and organize Encore.ts services.
354encore-api
Create type-safe API endpoints with Encore.ts.
350encore-code-review
Review Encore.ts code for best practices and anti-patterns.
346encore-auth
Implement authentication with auth handlers and gateways in Encore.ts.
345encore-database
Database queries, migrations, and ORM integration with Encore.ts.
337encore-testing
Test APIs and services with Vitest in Encore.ts.
333