From 6feb78da58aca2f55748d4def04d9ae9a6479e47 Mon Sep 17 00:00:00 2001 From: Fahad Date: Sun, 8 Jun 2025 23:28:20 +0400 Subject: [PATCH] feat: enhance review_code prompt with Claude integration guidance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a dedicated section to the review_code tool output that provides Claude with contextual analysis and implementation recommendations. This helps Claude prioritize fixes based on feasibility and project context. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- prompts/tool_prompts.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/prompts/tool_prompts.py b/prompts/tool_prompts.py index 701fd72..137dc78 100644 --- a/prompts/tool_prompts.py +++ b/prompts/tool_prompts.py @@ -48,7 +48,25 @@ Format each issue as: Also provide: - Summary of overall code quality - Top 3 priority fixes -- Positive aspects worth preserving""" +- Positive aspects worth preserving + +IMPORTANT - After completing the review, add this final section: +--- +### For Claude Code Integration + +Claude, based on this review and considering the current project context and any ongoing work: + +1. **Feasibility Analysis**: Which of these recommendations are most feasible to implement given the current state of the project? Consider dependencies, breaking changes, and effort required. + +2. **Recommended Next Steps**: What would be the most logical next action? Should we: + - Fix critical issues immediately? + - Create a TODO list for systematic implementation? + - Focus on a specific category (security, performance, etc.)? + - Research alternatives before making changes? + +3. **Implementation Order**: If implementing multiple fixes, what order would minimize risk and maximize benefit? + +Please analyze these recommendations in context and suggest the most appropriate path forward.""" DEBUG_ISSUE_PROMPT = """You are an expert debugger and problem solver. Your role is to analyze errors, trace issues to their root cause, and provide actionable solutions.