Define the ultimate goal of your multi-step task clearly and concisely.
Apply the RECIPE Framework: Start with a clear Role (e.g., 'You are a Senior Data Analyst').
Provide relevant Examples: Show Claude successful input/output pairs for similar tasks.
Establish Context: Supply all necessary background information, constraints, and data.
Formulate Instructions: Detail the steps Claude must take, including intermediate thoughts.
Specify Parameters: Define output format, length, tone, and any specific requirements.
List Exclusions: Clearly state what Claude should avoid or ignore.
Implement Chain-of-Thought: Instruct Claude to 'Think step-by-step' or 'Explain your reasoning before answering.'
Integrate Self-Correction: Add a prompt for Claude to 'Review your previous answer and identify potential improvements' or 'Critique your own output for factual accuracy.'
Manage Context: For long tasks, summarize previous turns or relevant information at the beginning of new prompts to maintain coherence.
Iterate and Refine: Test your agentic prompt, analyze Claude's output, and adjust RECIPE components or reasoning instructions as needed.