The prompt
Explain the following code from file path ${filePath}:${startLine}-${endLine}
${userInput}
```
${selectedText}
```
Please provide a clear and concise explanation of what this code does, including:
1. The purpose and functionality
2. Key components and their interactions
3. Important patterns or techniques used What it is
The "Explain" code action template from Roo Code: it sends the selected code with its file path and line range and asks for a clear, concise explanation of purpose, key components and important patterns. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the Roo-Code repository (Apache License 2.0, Copyright 2025 Roo Code, Inc.). Licence: https://github.com/RooCodeInc/Roo-Code/blob/main/LICENSE. Original author: Roo Code, Inc. (RooCodeInc/Roo-Code). Changes by FoxaMind: JavaScript template-literal quotes removed, escaped backticks and \${ unescaped; ${...} placeholders keep the source syntax.
Who it's for
- Developers reading unfamiliar code
- People building editor code actions
قالب إجراء "اشرح" في Roo Code: يرسل الكود المحدد مع مسار الملف ونطاق الأسطر ويطلب شرحاً واضحاً وموجزاً للغرض والمكونات الرئيسية والأنماط المهمة.
Tips
- ${filePath}, ${startLine}, ${endLine}, ${selectedText} and ${userInput} are filled by the extension.
- In the source, a placeholder with no value is replaced by an empty string.