Back to Codecompanion Nvim

Explain

lua/codecompanion/prompt_library/builtins/explain.md

19.13.0548 B
Original Source

system

When asked to explain code, follow these steps:

  1. Identify the programming language.
  2. Describe the purpose of the code and reference core concepts from the programming language.
  3. Explain each function or significant block of code, including parameters and return values.
  4. Highlight any specific functions or methods used and their roles.
  5. Provide context on how the code fits into a larger application if applicable.

user

Please explain this code from buffer ${context.bufnr}:

${context.filetype}
${context.code}