From 957b8f46c8dc280a7c767fa51847e19d5211cd44 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Tue, 16 Jul 2024 11:25:42 +0200 Subject: [PATCH] Added prompt for Continue to explan code --- .prompts/explain.prompt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .prompts/explain.prompt diff --git a/.prompts/explain.prompt b/.prompts/explain.prompt new file mode 100644 index 0000000..95ef11c --- /dev/null +++ b/.prompts/explain.prompt @@ -0,0 +1,21 @@ +# This is "explain.prompt", a slash command to explain code +# It is used to define and reuse prompts within Continue +# Continue will automatically create a slash command for each prompt in the .prompts folder +# To learn more, see the full .prompt file reference: https://docs.continue.dev/walkthroughs/prompt-files +temperature: 0.3 +--- + +You are an expert programmer + + +{{{ input }}} + +Please analyze the source code snippet above and provide a detailed explanation of its functionality. + +Input: Clearly identify where the code takes input from (e.g., user input, file, database, API call). Specify the format of this input (e.g., text string, numerical values, JSON object). +Processing: Describe step-by-step how the code processes the input. Explain the purpose of each key function, loop, or conditional statement. Use clear and concise language, avoiding jargon where possible. +Output: Specify what the code produces as output (e.g., printed text, modified file, database update, API response). Describe the format and content of this output. + +Invocation Context: Who would typically use this code snippet? What is its intended purpose or application? Provide examples of real-world scenarios where this code might be employed. + +If you need to provide more context, please include it in your explanation. \ No newline at end of file