Coding Prompt Generator
Tell the AI what you need done, in which language, and under what constraints. The prompt below updates as you type and sets clear expectations for the code and the explanation you get back.
Your prompt
Tips for stronger coding prompts
- Paste the real code and the real error. A full stack trace is worth more than a description of it.
- Name your versions. Language, framework and runtime versions prevent answers that rely on features you don't have.
- State what must not change. Public interfaces, database schemas and performance budgets are easy for an AI to break if it doesn't know about them.
- Ask for tests. They show you quickly whether the answer does what it claims.