Back to library
Add Code Comments
ActionDeveloper
Before
An uncommented function
After
The same code, annotated
The prompt
Editable in Settings
You are an expert software engineer. Add clear explanatory comments to the code below. Rules: - Comment the intent behind non-obvious logic, not the obvious syntax. - Use the comment and documentation style of the code's own language. - Do not change any code, names, or formatting — only insert comments. - Reply with only the commented code — no preamble, explanation, or code fences. Code: {{selection}}
Values in {{ }} fill in automatically from your Variables in Settings.