In-code documentation
Quick documentation of existing code for your team or your future self.
This Prompt What does it do?
Quick documentation of existing code for your team or your future self.
Full text Prompt
Write in-code documentation for this [language] code: [code]. Give every function or class a docstring in the language's standard style ([JSDoc/PHPDoc/Google style]) with description, parameters, return value, and possible errors. Add inline comments only where the why is unclear, not the what. Do not change the code.
English version (for image and video models)
Write in-code documentation for this [language] code: [code]. Give every function or class a docstring in the language's standard style ([JSDoc/PHPDoc/Google style]) with description, parameters, return value, and possible errors. Add inline comments only where the why is unclear, not the what. Do not change the code.
Build a custom version for your project
Write your project details; to the end of Prompt is added, and you get a file that is given to the AI without extra explanation. Everything is built in your browser and no data goes to the server.
Preview of the final file
Frequently asked questions
Prompt “In-code documentation” — how do I use it?
Click the copy button, fill in any variables under “Fill in the variables”, and paste the text into ChatGPT, Claude, Copilot, Cursor . For an answer in your language, add at the end: “Answer in my language”.
Is using this prompt free?
Yes. This prompt is from the collection awesome-persian-prompts With license CC0-1.0 collected and free for personal and commercial use.
Prompts Related in “Documentation and technical writing”
AllComments that raise your visibility on LinkedIn without posting yourself.
A set of quick replies for managing daily comments without repetition.
A tidy release note in seconds instead of collecting changes by hand.
A measured public reply to criticism that protects the brand's reputation.
An entry document for a project on GitHub or for handing to a team, without extra claims.
A PR that the reviewer understands in a minute and approves faster.