← Prompting Templates
Add Comments and Documentation
Document code clearly.
# Add Comments and Documentation
**Prompt**
> Add concise comments and a docstring to the code below. Explain why, not what. Do not change behavior. Output the full file.
**Fill in**
- Code: [paste]
**Tips**
- Name the doc style
- Ask for a README section