# Code Review Prompt Use this prompt when asking AI assistants to review code. ## Prompt Template ``` Please review this code following the standards in .ai/context/AGENTS_[LANGUAGE].md: [PASTE CODE HERE] Focus on: 1. **Standards compliance**: Does it follow patterns from AGENTS_*.md? 2. **Type safety**: Proper type annotations (Go, Python, TypeScript)? 3. **Error handling**: Are errors handled properly? 4. **Testing**: Are tests needed? Do they follow patterns? 5. **Documentation**: Is it properly documented? 6. **Performance**: Any obvious inefficiencies? 7. **Security**: Any security concerns? For LazyVim users, suggest relevant keybindings from .ai/context/EDITORS.md. ``` ## Language-Specific Reviews ### Go ``` Review this Go code against .ai/context/AGENTS_GO.md: [CODE] Check: - Does it accept interfaces and return concrete types? - Are functional options used for 3+ optional parameters? - Is context passed properly? - Are tests table-driven with subtests? - Is error handling idiomatic? ``` ### Python ``` Review this Python code against .ai/context/AGENTS_PYTHON.md: [CODE] Check: - Are type hints complete (mypy strict mode)? - Is it using uv for dependencies? - Is Pydantic used for validation? - Are async patterns correct? - Do tests follow pytest conventions? ``` ### TypeScript/Vue ``` Review this Vue component against .ai/context/AGENTS_TYPESCRIPT_VUE.md: [CODE] Check: - Is it using Composition API with