Google GeminiGoRefactoring
Generic Refactoring Rules for Google Gemini
Generic Refactoring Rules adapted for Google Gemini. High-signal generic engineering guidance for real projects.
rules file
# Generic Refactoring Rules for Google Gemini ## Safe refactors - Preserve behavior first; prove with tests. - Refactor in small commits with clear intent. - Keep public interfaces stable unless explicitly versioning changes. ## Code health - Remove duplication by extracting domain-level abstractions. - Prefer explicit composition over inheritance chains. - Replace primitive obsession with value objects/types where useful. ## Reviewability - Add migration notes when refactor touches data flow or side effects. - Include before/after perf notes if touching critical paths.
How to use with Google Gemini
#refactor#maintainability#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