Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Legal contract analysis
on Command R+

Stop guessing. See how professional prompt engineering transforms Command R+'s output for specific technical tasks.

The "Vibe" Prompt

"Hey Command R+, can you, like, analyze this legal contract for me? Tell me what's important, the risks, and what each party needs to do. Make it clear, please. Thanks!"
Low specificity, inconsistent output

Optimized Version

STABLE
You are an AI legal assistant specializing in contract analysis. Your task is to meticulously analyze the provided legal contract and extract specific, actionable information. **CONTRACT TEXT:** [Insert Contract Text Here] **ANALYSIS FRAMEWORK (Chain-of-Thought):** 1. **Identify Parties & Purpose:** Who are the signatories? What is the overarching goal or intent of this contract? What is the effective date and term? 2. **Key Obligations (Each Party):** For each party, enumerate their primary responsibilities, deliverables, and commitments. 3. **Key Rights & Entitlements (Each Party):** For each party, enumerate their primary rights, benefits, and entitlements. 4. **Critical Clauses & Terms:** Identify and summarize the most legally significant clauses (e.g., indemnification, limitation of liability, termination, governing law, dispute resolution, intellectual property, confidentiality, payment terms, warranties). 5. **Potential Risks & Mitigation:** a. What are the major legal, financial, or operational risks for each party? b. Are there any ambiguous or unclear provisions? c. What are the worst-case scenarios? d. Suggest potential mitigation strategies or areas for further negotiation/clarification. 6. **Actionable Insights & Next Steps:** Based on the analysis, what are the immediate, practical steps each party should consider? **OUTPUT FORMAT:** Provide the analysis in a structured, hierarchical format, clearly separating sections as per the framework above. Use bullet points and bolding for readability. Aim for clarity, conciseness, and legal precision.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages several techniques: 1. **Role Assignment:** 'You are an AI legal assistant...' sets a clear persona. 2. **Explicit Instruction & Task Definition:** Clearly states 'Your task is to meticulously analyze...' and specifies 'extract specific, actionable information.' 3. **Structured Chain-of-Thought (CoT):** Provides a step-by-step analytical framework, guiding the model through the reasoning process. This ensures comprehensive coverage and reduces omissions. 4. **Specific Categories:** Defines precisely what information to look for (parties, obligations, risks, etc.), preventing vague or irrelevant output. 5. **Output Format Specification:** Dictates the desired structure ('structured, hierarchical format,' 'bullet points,' 'bolding'), improving readability and usability. 6. **Constraint/Quality Requirements:** 'Clarity, conciseness, and legal precision' set performance benchmarks. 7. **Placeholder for Content:** Clearly indicates where the 'CONTRACT TEXT' should be inserted. This structured approach minimizes ambiguity, reduces the likelihood of hallucination, and ensures a high-quality, comprehensive output aligned with legal analysis standards, making the model more effective and efficient.

0%
Token Efficiency Gain
The optimized prompt provides a clear, step-by-step analytical framework for the AI.
The optimized prompt explicitly defines the desired output structure, aiding readability.
The optimized prompt sets a professional persona for the AI.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts