generate_ai_code_review
Generate AI-powered code reviews by analyzing project files, git diffs, or providing context. Supports custom prompts and models for tailored feedback.
Instructions
Generate AI-powered code review from context file, content, or project analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_file_path | No | Path to existing code review context file (.md) | |
| context_content | No | Direct context content (for AI agent chaining) | |
| project_path | No | Project path for direct analysis (generates context internally) | |
| scope | No | Review scope when using project_path - 'recent_phase', 'full_project', 'specific_phase', 'specific_task' | recent_phase |
| phase_number | No | Phase number for specific_phase scope | |
| task_number | No | Task number for specific_task scope | |
| task_list | No | Specific task list file to use (overrides automatic discovery) | |
| default_prompt | No | Custom default prompt when no task list exists | |
| output_path | No | Custom output file path for AI review. If not provided, uses default timestamped path | |
| model | No | Optional Gemini model name (e.g., 'gemini-2.0-flash-exp', 'gemini-1.5-pro') | |
| temperature | No | Temperature for AI model (default: 0.5, range: 0.0-2.0) | |
| custom_prompt | No | Optional custom AI prompt to override default instructions | |
| text_output | No | Return review directly as text (default: true - for AI agent chaining) | |
| auto_meta_prompt | No | Automatically generate and embed meta prompt (default: true) | |
| include_claude_memory | No | Include CLAUDE.md files in context (default: true) | |
| include_cursor_rules | No | Include Cursor rules files in context (default: false) | |
| thinking_budget | No | Optional token budget for thinking mode (if supported by model) | |
| url_context | No | Optional URL(s) to include in context - can be string or list of strings |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |