Loading your workspace
Unlock the full potential of large language models with this comprehensive guide to crafting sophisticated and effective prompts. Learn to design prompts that elicit precise, high-quality responses for complex tasks, moving beyond basic instructions to embrace advanced techniques.
Claude Platform Docs Original on platform.claude.comViewRole: You are an expert prompt engineer and AI strategy consultant. Your task is to generate a detailed, actionable guide for creating advanced prompts, incorporating modern prompt engineering principles. Objective: Develop a comprehensive guide that enables users to construct highly effective prompts for diverse, complex AI tasks. The guide should emphasize clarity, precision, and strategic structuring to optimize AI model performance. Required Inputs: 1. [Target AI Model Type]: Specify the intended AI model (e.g., 'text generation model', 'code generation model', 'image description model'). 2. [Specific Task Example]: Provide a concrete example of a complex task the user wishes to accomplish using an AI model (e.g., 'summarize a 10,000-word research paper into 500 words, highlighting key findings and methodology', 'generate Python code for a machine learning model that predicts stock prices based on historical data and news sentiment'). 3. [Desired Output Format]: Describe the exact format the AI's response should take (e.g., 'bulleted list', 'JSON object with specific keys', 'well-structured paragraph with headings'). 4. [Key Constraints/Limitations]: Detail any specific constraints or limitations the AI must adhere to (e.g., 'must not exceed 500 words', 'must only use public domain data', 'must avoid technical jargon'). 5. [Contextual Information]: Offer any relevant background or contextual data that will help the AI understand the request better (e.g., 'the target audience is non-technical', 'the output will be used in a legal document'). Execution Steps: 1. **Analyze the Task:** Break down the [Specific Task Example] into its core components, identifying the primary objective, secondary objectives, and potential challenges. 2. **Define the AI's Persona:** Recommend a suitable persona for the AI to adopt when executing the prompt, ensuring it aligns with the task's requirements (e.g., 'academic researcher', 'experienced software developer', 'creative storyteller'). 3. **Structure the Prompt:** Design a multi-part prompt structure that includes: a. **Clear Role Assignment:** Explicitly state the AI's role. b. **Detailed Task Description:** Provide a step-by-step breakdown of the task. c. **Contextual Priming:** Inject necessary background information. d. **Input Specification:** Clearly define what information the AI will receive. e. **Output Requirements:** Specify the [Desired Output Format] in detail. f. **Constraint Enforcement:** Integrate all [Key Constraints/Limitations] as explicit rules. g. **Iterative Refinement/Self-Correction Instructions:** Include instructions for the AI to review and refine its own output based on specific criteria or to ask clarifying questions if ambiguity arises. h. **Example-Based Learning (Few-Shot):** If applicable, suggest how to incorporate 1-3 high-quality input-output examples to guide the AI's response generation. 4. **Wording and Phrasing:** Recommend precise, unambiguous language. Advise against vague terms and suggest active voice. Emphasize the use of delimiters (e.g., triple quotes, XML tags) for structuring inputs and outputs. 5. **Error Handling/Ambiguity Resolution:** Propose strategies for the AI to handle ambiguous instructions or potential errors, such as asking for clarification or stating assumptions. Output Contract: The output should be a detailed, instructional guide presented as a markdown document. It must include: - An introduction explaining the importance of advanced prompt engineering. - A section titled 'Core Principles of Advanced Prompt Design'. - A step-by-step methodology for constructing a prompt, referencing the execution steps above. - A complete, example prompt tailored to the [Specific Task Example] and [Target AI Model Type] provided, demonstrating all recommended techniques. - A section on 'Common Pitfalls and How to Avoid Them'. - A conclusion summarizing key takeaways. Constraints: - The guide must be written in clear, professional English. - Avoid jargon where simpler terms suffice, but use precise technical terms when necessary. - The example prompt must be fully functional and directly applicable to an AI model. - Do not merely list techniques; explain *how* and *why* they are effective. Quality Check: Does the generated guide provide sufficient detail for a user to immediately begin crafting advanced prompts for their own complex tasks? Is the example prompt a strong demonstration of the principles discussed? Is the advice actionable and easy to understand for someone with a basic understanding of AI models?
Join the TECH4SSD newsletter once to access the full prompt library and all tutorial breakdowns on this device.
Your email is saved securely to the TECH4SSD subscriber database and synchronized with Kit. Unsubscribe at any time.
Original inspiration credited to Claude Platform Docs.
Continue exploring
Explore
Connect
ChatGPT, Claude, Gemini, Llama, any advanced LLM
LLM Agnostic
Any Advanced LLM
Cross-platform
ChatGPT
Universal AI
Any Advanced LLM
Any AI model supporting detailed structured output
Any LLM
ChatGPT
Any LLM
ChatGPT
Multi-Platform
ChatGPT
ChatGPT
ChatGPT
All AI Image Generators
Any LLM
Midjourney
generic_ai_image_generator
ChatGPT