Google GeminiGoGeneral AI
Generic API Design Rules for Google Gemini
Generic API Design Rules adapted for Google Gemini. High-signal generic engineering guidance for real projects.
rules file
# Generic API Design Rules for Google Gemini ## Contracts - Version API contracts intentionally and document breaking changes. - Use consistent error shape: code, message, optional details. - Prefer explicit nullable fields over overloaded semantics. ## Reliability - Idempotent writes where retries are expected. - Timeouts and retry budgets on all network calls. - Pagination for list endpoints; never return unbounded datasets. ## Observability - Correlation/request IDs propagated across service boundaries. - Log request/response metadata (not sensitive payloads). - Emit metrics for rate, errors, and p95/p99 latency.
How to use with Google Gemini
#api#http#contracts#gemini#generic-rules#go#ai-coding-rules
Related Rules
Go Cursor Rules
CursorGo
Cursor rules for Go: idiomatic Go patterns, error handling, concurrency, and Go module conventions.
Code Style
go · golangCopy Ready
Go Claude Rules
ClaudeGo
Claude rules for Go: project structure, error handling, testing, and idiomatic Go patterns.
Architecture
go · golangCopy Ready
Go Windsurf Rules
WindsurfGo
Windsurf rules for Go: hexagonal architecture, clean code, observability, and production Go patterns.
Architecture
go · windsurfCopy Ready
Echo Architecture Rules for GitHub Copilot
GitHub CopilotGo
SEO-ready GitHub Copilot rules for Echo architecture with copy-paste instructions, testing guardrails, and production-safe patterns.
General AI
copilot · goCopy Ready