hjaltiatlason

Claude prompting guide

Sep 14th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.20 KB | None | 0 0
  1. # Claude prompting guide
  2.  
  3. ## General tips for effective prompting
  4.  
  5. ### 1. Be clear and specific
  6. - Clearly state your task or question at the beginning of your message.
  7. - Provide context and details to help Claude understand your needs.
  8. - Break complex tasks into smaller, manageable steps.
  9.  
  10. Bad prompt:
  11. <prompt>
  12. "Help me with a presentation."
  13. </prompt>
  14.  
  15. Good prompt:
  16. <prompt>
  17. "I need help creating a 10-slide presentation for our quarterly sales meeting. The presentation should cover our Q2 sales performance, top-selling products, and sales targets for Q3. Please provide an outline with key points for each slide."
  18. </prompt>
  19.  
  20. Why it's better: The good prompt provides specific details about the task, including the number of slides, the purpose of the presentation, and the key topics to be covered.
  21.  
  22. ### 2. Use examples
  23. - Provide examples of the kind of output you're looking for.
  24. - If you want a specific format or style, show Claude an example.
  25.  
  26. Bad prompt:
  27. <prompt>
  28. "Write a professional email."
  29. </prompt>
  30.  
  31. Good prompt:
  32. <prompt>
  33. "I need to write a professional email to a client about a project delay. Here's a similar email I've sent before:
  34.  
  35. 'Dear [Client],
  36. I hope this email finds you well. I wanted to update you on the progress of [Project Name]. Unfortunately, we've encountered an unexpected issue that will delay our completion date by approximately two weeks. We're working diligently to resolve this and will keep you updated on our progress.
  37. Please let me know if you have any questions or concerns.
  38. Best regards,
  39. [Your Name]'
  40.  
  41. Help me draft a new email following a similar tone and structure, but for our current situation where we're delayed by a month due to supply chain issues."
  42. </prompt>
  43.  
  44. Why it's better: The good prompt provides a concrete example of the desired style and tone, giving Claude a clear reference point for the new email.
  45.  
  46. ### 3. Encourage thinking
  47. - For complex tasks, ask Claude to "think step-by-step" or "explain your reasoning."
  48. - This can lead to more accurate and detailed responses.
  49.  
  50. Bad prompt:
  51. <prompt>
  52. "How can I improve team productivity?"
  53. </prompt>
  54.  
  55. Good prompt:
  56. <prompt>
  57. "I'm looking to improve my team's productivity. Think through this step-by-step, considering the following factors:
  58. 1. Current productivity blockers (e.g., too many meetings, unclear priorities)
  59. 2. Potential solutions (e.g., time management techniques, project management tools)
  60. 3. Implementation challenges
  61. 4. Methods to measure improvement
  62.  
  63. For each step, please provide a brief explanation of your reasoning. Then summarize your ideas at the end."
  64. </prompt>
  65.  
  66. Why it's better: The good prompt asks Claude to think through the problem systematically, providing a guided structure for the response and asking for explanations of the reasoning process. It also prompts Claude to create a summary at the end for easier reading.
  67.  
  68. ### 4. Iterative refinement
  69. - If Claude's first response isn't quite right, ask for clarifications or modifications.
  70. - You can always say "That's close, but can you adjust X to be more like Y?"
  71.  
  72. Bad prompt:
  73. <prompt>
  74. "Make it better."
  75. </prompt>
  76.  
  77. Good prompt:
  78. <prompt>
  79. "That’s a good start, but please refine it further. Make the following adjustments:
  80. 1. Make the tone more casual and friendly
  81. 2. Add a specific example of how our product has helped a customer
  82. 3. Shorten the second paragraph to focus more on the benefits rather than the features"
  83. </prompt>
  84.  
  85. Why it's better: The good prompt provides specific feedback and clear instructions for improvements, allowing Claude to make targeted adjustments instead of just relying on Claude’s innate sense of what “better” might be — which is likely different from the user’s definition!
  86.  
  87. ### 5. Leverage Claude's knowledge
  88. - Claude has broad knowledge across many fields. Don't hesitate to ask for explanations or background information
  89. - Be sure to include relevant context and details so that Claude’s response is maximally targeted to be helpful
  90.  
  91. Bad prompt:
  92. <prompt>
  93. "What is marketing? How do I do it?"
  94. </prompt>
  95.  
  96. Good prompt:
  97. <prompt>
  98. "I'm developing a marketing strategy for a new eco-friendly cleaning product line. Can you provide an overview of current trends in green marketing? Please include:
  99. 1. Key messaging strategies that resonate with environmentally conscious consumers
  100. 2. Effective channels for reaching this audience
  101. 3. Examples of successful green marketing campaigns from the past year
  102. 4. Potential pitfalls to avoid (e.g., greenwashing accusations)
  103.  
  104. This information will help me shape our marketing approach."
  105. </prompt>
  106.  
  107. Why it's better: The good prompt asks for specific, contextually relevant information that leverages Claude's broad knowledge base. It provides context for how the information will be used, which helps Claude frame its answer in the most relevant way.
  108.  
  109. ### 6. Use role-playing
  110. - Ask Claude to adopt a specific role or perspective when responding.
  111.  
  112. Bad prompt:
  113. <prompt>
  114. "Help me prepare for a negotiation."
  115. </prompt>
  116.  
  117. Good prompt:
  118. <prompt>
  119. "You are a fabric supplier for my backpack manufacturing company. I'm preparing for a negotiation with this supplier to reduce prices by 10%. As the supplier, please provide:
  120. 1. Three potential objections to our request for a price reduction
  121. 2. For each objection, suggest a counterargument from my perspective
  122. 3. Two alternative proposals the supplier might offer instead of a straight price cut
  123.  
  124. Then, switch roles and provide advice on how I, as the buyer, can best approach this negotiation to achieve our goal."
  125. </prompt>
  126.  
  127. Why it's better: This prompt uses role-playing to explore multiple perspectives of the negotiation, providing a more comprehensive preparation. Role-playing also encourages Claude to more readily adopt the nuances of specific perspectives, increasing the intelligence and performance of Claude’s response.
  128.  
  129.  
  130. ## Task-specific tips and examples
  131.  
  132. ### Content Creation
  133.  
  134. 1. **Specify your audience**
  135. - Tell Claude who the content is for.
  136.  
  137. Bad prompt:
  138. <prompt>
  139. "Write something about cybersecurity."
  140. </prompt>
  141.  
  142. Good prompt:
  143. <prompt>
  144. "I need to write a blog post about cybersecurity best practices for small business owners. The audience is not very tech-savvy, so the content should be:
  145. 1. Easy to understand, avoiding technical jargon where possible
  146. 2. Practical, with actionable tips they can implement quickly
  147. 3. Engaging and slightly humorous to keep their interest
  148.  
  149. Please provide an outline for a 1000-word blog post that covers the top 5 cybersecurity practices these business owners should adopt."
  150. </prompt>
  151.  
  152. Why it's better: The good prompt specifies the audience, desired tone, and key characteristics of the content, giving Claude clear guidelines for creating appropriate and effective output.
  153.  
  154. 2. **Define the tone and style**
  155. - Describe the desired tone.
  156. - If you have a style guide, mention key points from it.
  157.  
  158. Bad prompt:
  159. <prompt>
  160. "Write a product description."
  161. </prompt>
  162.  
  163. Good prompt:
  164. <prompt>
  165. "Please help me write a product description for our new ergonomic office chair. Use a professional but engaging tone. Our brand voice is friendly, innovative, and health-conscious. The description should:
  166. 1. Highlight the chair's key ergonomic features
  167. 2. Explain how these features benefit the user's health and productivity
  168. 3. Include a brief mention of the sustainable materials used
  169. 4. End with a call-to-action encouraging readers to try the chair
  170.  
  171. Aim for about 200 words."
  172. </prompt>
  173.  
  174. Why it's better: This prompt provides clear guidance on the tone, style, and specific elements to include in the product description.
  175.  
  176. 3. **Define output structure**
  177. - Provide a basic outline or list of points you want covered.
  178.  
  179. Bad prompt:
  180. <prompt>
  181. "Create a presentation on our company results."
  182. </prompt>
  183.  
  184. Good prompt:
  185. <prompt>
  186. "I need to create a presentation on our Q2 results. Structure this with the following sections:
  187. 1. Overview
  188. 2. Sales Performance
  189. 3. Customer Acquisition
  190. 4. Challenges
  191. 5. Q3 Outlook
  192.  
  193. For each section, suggest 3-4 key points to cover, based on typical business presentations. Also, recommend one type of data visualization (e.g., graph, chart) that would be effective for each section."
  194. </prompt>
  195.  
  196. Why it's better: This prompt provides a clear structure and asks for specific elements (key points and data visualizations) for each section.
  197.  
  198. ### Document summary and Q&A
  199.  
  200. 1. **Be specific about what you want**
  201. - Ask for a summary of specific aspects or sections of the document.
  202. - Frame your questions clearly and directly.
  203. - Be sure to specify what kind of summary (output structure, content type) you want
  204.  
  205. 2. **Use the document names**
  206. - Refer to attached documents by name.
  207.  
  208. 3. **Ask for citations**
  209. - Request that Claude cites specific parts of the document in its answers.
  210.  
  211. Here is an example that combines all three of the above techniques:
  212.  
  213. Bad prompt:
  214. <prompt>
  215. "Summarize this report for me."
  216. </prompt>
  217.  
  218. Good prompt:
  219. <prompt>
  220. "I've attached a 50-page market research report called 'Tech Industry Trends 2023'. Can you provide a 2-paragraph summary focusing on AI and machine learning trends? Then, please answer these questions:
  221. 1. What are the top 3 AI applications in business for this year?
  222. 2. How is machine learning impacting job roles in the tech industry?
  223. 3. What potential risks or challenges does the report mention regarding AI adoption?
  224.  
  225. Please cite specific sections or page numbers when answering these questions."
  226. </prompt>
  227.  
  228. Why it's better: This prompt specifies the exact focus of the summary, provides specific questions, and asks for citations, ensuring a more targeted and useful response. It also indicates the ideal summary output structure, such as limiting the response to 2 paragraphs.
  229.  
  230. ### Data analysis and visualization
  231.  
  232. 1. **Specify the desired format**
  233. - Clearly describe the format you want the data in.
  234.  
  235. Bad prompt:
  236. <prompt>
  237. "Analyze our sales data."
  238. </prompt>
  239.  
  240. Good prompt:
  241. <prompt>
  242. "I've attached a spreadsheet called 'Sales Data 2023'. Can you analyze this data and present the key findings in the following format:
  243.  
  244. 1. Executive Summary (2-3 sentences)
  245.  
  246. 2. Key Metrics:
  247. - Total sales for each quarter
  248. - Top-performing product category
  249. - Highest growth region
  250.  
  251. 3. Trends:
  252. - List 3 notable trends, each with a brief explanation
  253.  
  254. 4. Recommendations:
  255. - Provide 3 data-driven recommendations, each with a brief rationale
  256.  
  257. After the analysis, suggest three types of data visualizations that would effectively communicate these findings."
  258. </prompt>
  259.  
  260. Why it's better: This prompt provides a clear structure for the analysis, specifies key metrics to focus on, and asks for recommendations and visualization suggestions for further formatting.
  261.  
  262. ### Brainstorming
  263. 1. Use Claude to generate ideas by asking for a list of possibilities or alternatives.
  264. - Be specific about what topics you want Claude to cover in its brainstorming
  265.  
  266. Bad prompt:
  267. <prompt>
  268. "Give me some team-building ideas."
  269. </prompt>
  270.  
  271. Good prompt:
  272. <prompt>
  273. "We need to come up with team-building activities for our remote team of 20 people. Can you help me brainstorm by:
  274. 1. Suggesting 10 virtual team-building activities that promote collaboration
  275. 2. For each activity, briefly explain how it fosters teamwork
  276. 3. Indicate which activities are best for:
  277. a) Ice-breakers
  278. b) Improving communication
  279. c) Problem-solving skills
  280. 4. Suggest one low-cost option and one premium option."
  281. </prompt>
  282.  
  283. Why it's better: This prompt provides specific parameters for the brainstorming session, including the number of ideas, type of activities, and additional categorization, resulting in a more structured and useful output.
  284.  
  285. 2. Request responses in specific formats like bullet points, numbered lists, or tables for easier reading.
  286.  
  287. Bad Prompt:
  288. <prompt>
  289. "Compare project management software options."
  290. </prompt>
  291.  
  292. Good Prompt:
  293. <prompt>
  294. "We're considering three different project management software options: Asana, Trello, and Microsoft Project. Can you compare these in a table format using the following criteria:
  295. 1. Key Features
  296. 2. Ease of Use
  297. 3. Scalability
  298. 4. Pricing (include specific plans if possible)
  299. 5. Integration capabilities
  300. 6. Best suited for (e.g., small teams, enterprise, specific industries)"
  301. </prompt>
  302.  
  303. Why it's better: This prompt requests a specific structure (table) for the comparison, provides clear criteria, making the information easy to understand and apply.
  304.  
  305. ## Troubleshooting, minimizing hallucinations, and maximizing performance
  306.  
  307. 1. **Allow Claude to acknowledge uncertainty**
  308. - Tell Claude that it should say it doesn’t know if it doesn’t know. Ex. “If you're unsure about something, it's okay to admit it. Just say you don’t know.”
  309.  
  310. 2. **Break down complex tasks**
  311. - If a task seems too large and Claude is missing steps or not performing certain steps well, break it into smaller steps and work through them with Claude one message at a time.
  312.  
  313. 3. **Include all contextual information for new requests**
  314. - Claude doesn't retain information from previous conversations, so include all necessary context in each new conversation.
  315.  
  316. ## Example good vs. bad prompt examples
  317.  
  318. These are more examples that combine multiple prompting techniques to showcase the stark difference between ineffective and highly effective prompts.
  319.  
  320. ### Example 1: Marketing strategy development
  321.  
  322. Bad prompt:
  323. <prompt>
  324. "Help me create a marketing strategy."
  325. </prompt>
  326.  
  327. Good prompt:
  328. <prompt>
  329. "As a senior marketing consultant, I need your help developing a comprehensive marketing strategy for our new eco-friendly smartphone accessory line. Our target audience is environmentally conscious millennials and Gen Z consumers. Please provide a detailed strategy that includes:
  330.  
  331. 1. Market Analysis:
  332. - Current trends in eco-friendly tech accessories
  333. - 2-3 key competitors and their strategies
  334. - Potential market size and growth projections
  335.  
  336. 2. Target Audience Persona:
  337. - Detailed description of our ideal customer
  338. - Their pain points and how our products solve them
  339.  
  340. 3. Marketing Mix:
  341. - Product: Key features to highlight
  342. - Price: Suggested pricing strategy with rationale
  343. - Place: Recommended distribution channels
  344. - Promotion:
  345. a) 5 marketing channels to focus on, with pros and cons for each
  346. b) 3 creative campaign ideas for launch
  347.  
  348. 4. Content Strategy:
  349. - 5 content themes that would resonate with our audience
  350. - Suggested content types (e.g., blog posts, videos, infographics)
  351.  
  352. 5. KPIs and Measurement:
  353. - 5 key metrics to track
  354. - Suggested tools for measuring these metrics
  355.  
  356. Please present this information in a structured format with headings and bullet points. Where relevant, explain your reasoning or provide brief examples.
  357.  
  358. After outlining the strategy, please identify any potential challenges or risks we should be aware of, and suggest mitigation strategies for each."
  359. </prompt>
  360.  
  361. Why it's better: This prompt combines multiple techniques including role assignment, specific task breakdown, structured output request, brainstorming (for campaign ideas and content themes), and asking for explanations. It provides clear guidelines while allowing room for Claude's analysis and creativity.
  362.  
  363. ### Example 2: Financial report analysis
  364.  
  365. Bad prompt:
  366. <prompt>
  367. "Analyze this financial report."
  368. </prompt>
  369.  
  370. Good prompt:
  371. <prompt>
  372. "I've attached our company's Q2 financial report titled 'Q2_2023_Financial_Report.pdf'. Act as a seasoned CFO and analyze this report and prepare a briefing for our board of directors. Please structure your analysis as follows:
  373.  
  374. 1. Executive Summary (3-4 sentences highlighting key points)
  375.  
  376. 2. Financial Performance Overview:
  377. a) Revenue: Compare to previous quarter and same quarter last year
  378. b) Profit margins: Gross and Net, with explanations for any significant changes
  379. c) Cash flow: Highlight any concerns or positive developments
  380.  
  381. 3. Key Performance Indicators:
  382. - List our top 5 KPIs and their current status (Use a table format)
  383. - For each KPI, provide a brief explanation of its significance and any notable trends
  384.  
  385. 4. Segment Analysis:
  386. - Break down performance by our three main business segments
  387. - Identify the best and worst performing segments, with potential reasons for their performance
  388.  
  389. 5. Balance Sheet Review:
  390. - Highlight any significant changes in assets, liabilities, or equity
  391. - Calculate and interpret key ratios (e.g., current ratio, debt-to-equity)
  392.  
  393. 6. Forward-Looking Statements:
  394. - Based on this data, provide 3 key predictions for Q3
  395. - Suggest 2-3 strategic moves we should consider to improve our financial position
  396.  
  397. 7. Risk Assessment:
  398. - Identify 3 potential financial risks based on this report
  399. - Propose mitigation strategies for each risk
  400.  
  401. 8. Peer Comparison:
  402. - Compare our performance to 2-3 key competitors (use publicly available data)
  403. - Highlight areas where we're outperforming and areas for improvement
  404.  
  405. Please use charts or tables where appropriate to visualize data. For any assumptions or interpretations you make, please clearly state them and provide your reasoning.
  406.  
  407. After completing the analysis, please generate 5 potential questions that board members might ask about this report, along with suggested responses.
  408.  
  409. Finally, summarize this entire analysis into a single paragraph that I can use as an opening statement in the board meeting."
  410. </prompt>
  411.  
  412. Why it's better: This prompt combines role-playing (as CFO), structured output, specific data analysis requests, predictive analysis, risk assessment, comparative analysis, and even anticipates follow-up questions. It provides a clear framework while encouraging deep analysis and strategic thinking.
Add Comment
Please, Sign In to add comment