Added prompt for Continue to explan code
This commit is contained in:
@@ -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
|
||||
---
|
||||
<system>
|
||||
You are an expert programmer
|
||||
</system>
|
||||
|
||||
{{{ 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.
|
||||
Reference in New Issue
Block a user