AI prompts for Developers
Prompt to write a README for a project
Writes a README explaining the project and how to install, run, and test it, from the config files you paste.
When to use it When a new colleague cannot run the project without asking you.
The prompt, ready to copy
Role: developer writing docs for new teammates. Task: write the project README. Context: - What the project does and for whom: [description] - How I run it: [commands in order] Source: <source> [package.json or equivalent, example config file (e.g. .env.example), folder structure] </source> Constraints: - Do not write a command or env variable that is not in the source or my steps - Do not include real values for variables; use dummy examples - If a needed step is missing (version, external service), write: [needs confirming] - Markdown with clear headings Output: Title and two-line description, requirements, installation, configuration, running, tests, short folder overview, common issues (if I gave any).
Example of filled brackets
Project: internal dashboard tracking maintenance requests in a government building Running: npm install, then npm run db:seed, then npm run dev Source: package.json, .env.example, and the folder tree
Check these before you use it
- Follow the steps yourself on a clean machine or fresh container
- Make sure the file contains no secret values
How to use this prompt
- Copy the prompt: Press the copy button or select the whole text.
- Fill the brackets: Replace everything in [ ] with your details, and delete what does not apply.
- Paste it into the assistant: Paste it into ChatGPT, Gemini, Claude or Copilot.
- Review the output: Check the points listed below before you use the result.