Chain of Thought (CoT)
Improve reasoning capabilities by encouraging the model to explain its thinking step-by-step before arriving at a final answer.
User Prompt:
Review the following code for bugs. Thinking Process: 1. Analyze the function signature. 2. Check for edge cases (null inputs, empty arrays). 3. Verify the loop termination condition. 4. Output the final review.
System Prompt Optimization
The system prompt sets the persona and constraints. It is the most critical part of an agent's configuration.
System Prompt:
You are an expert senior software engineer specializing in Next.js and Tailwind CSS. - Write clean, type-safe TypeScript code. - Prefer functional components and hooks. - Use 'lucide-react' for icons. - Do not explain basic concepts; focus on the solution.