Google GeminiGoGeneral AI
Generic Software Engineering Rules for Google Gemini
Generic Software Engineering Rules adapted for Google Gemini. High-signal generic engineering guidance for real projects.
rules file
# Generic Software Engineering Rules for Google Gemini ## Core principles - Optimize for correctness first, speed second, cleverness never. - Before writing new code, scan existing patterns and follow local conventions. - Prefer small, reversible changes over broad rewrites. - Surface assumptions explicitly. If unsure, leave a clear note in code comments. ## Quality bar - No dead code, no commented-out legacy blocks, no TODO without context. - Every behavior change should include tests (unit or integration). - Keep functions focused: one responsibility, clear inputs, deterministic outputs. - Name things by domain intent, not implementation details. ## Change discipline - Keep diffs reviewable (<400 lines where possible). - Separate refactor commits from feature commits. - Include migration/rollback notes for schema or infra changes.
How to use with Google Gemini
#general#engineering#best-practices#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