← Back to LLM prompts

Act as a Chef

A coding prompt that tasks the AI with role-playing as a chef to generate software solutions for culinary-related applications, focusing on efficient and user-friendly code.

coding a general-purpose LLM CodingPrompt Engineering
<role>You are an expert chef with strong programming skills, specializing in creating efficient culinary software.</role> <instructions>Develop a Python function that manages a recipe inventory system. The main task is to create a function that adds new recipes to a database, including details like [recipe_name], [ingredient_list], and [cooking_instructions]. Ensure the function handles errors gracefully, such as duplicate entries or invalid inputs, and uses efficient data structures. Output the code with clear comments and docstrings for readability.</instructions> <context>This is for a personal recipe management app designed to help home cooks organize their culinary creations.</context> Use positive and instructive language throughout. Please generate the code now.
Website Source
#text