Vibe coding prompts
Prompts that keep producing bad code: innerHTML, missing keyboard support, extra libraries. Answers show the prompt line that fixes it.
Threads in Vibe coding prompts
- ✓
How do you prompt an AI to refactor code without changing what it does?
Pin the current behaviour with tests before any change, then ask for one small, named restructuring at a time, with explicit limits: same inputs and outputs...
2replies - ✓
How do you ask an AI to explain code you did not write?
To get an AI to explain code you did not write, give it the file and the code around it, say what you need to understand and at what level, and ask for a...
2replies - ✓
How do you get an assistant to write tests for code it generated?
To get useful tests from an assistant, write the list of behaviours yourself, ask for tests against that list in a fresh session, name the test runner, and...
2replies - ✓
Why does a coding assistant invent functions that do not exist?
A coding assistant invents functions because the language model behind it predicts code that looks right from patterns, and does not look up the library it is...
2replies - ✓
What does a context window mean for a coding assistant?
A context window is the most text, counted in tokens, that a model can work with in one request, including its own reply. For a coding assistant it holds the...
2replies - ✓
How do you prompt an AI to build an HTML form with built-in validation?
Name the browser's own validation features in the prompt: input types such as email and number, the required, minlength, maxlength, min, max and pattern...
2replies - ✓
Is ChatGPT an LLM, and which model does GitHub Copilot use?
ChatGPT is not itself an LLM: it is OpenAI's chat app, built on OpenAI's GPT large language models. GitHub Copilot does not use one model either. It offers...
2replies - ✓
What is an LLM, and how does it write code?
An LLM (large language model) is a neural network trained on huge amounts of text to predict the next token, a small chunk of text. It writes code the same way...
2replies - ✓
How do you get a coding assistant to write accessible HTML forms?
Ask for the native HTML by name: a visible label element tied to each field through matching for and id values, fieldset and legend around grouped choices, the...
2replies - ✓
What should go in an AGENTS.md or coding rules file?
An AGENTS.md file should hold what a coding agent cannot work out from your code: the exact build, test and lint commands, style rules that differ from the...
2replies - ✓
How do I prompt for JavaScript that works with a keyboard?
Spell it out in the prompt, control by control: real button and link elements for anything clickable, which keys do what, where focus goes after an action, and...
2replies - ✓
How do you keep API keys out of a vibe-coded app?
Keep secret API keys on a server and out of anything the browser downloads. Store them in environment variables or a secrets vault, list .env files in...
2replies - ✓
Do the CodeLifter prompts work with local models?
Nothing in them is tied to one vendor. They are plain English and ask for plain JavaScript with no dependencies, so you can give them to any local model...
2replies - ✓
How do you start vibe coding without shipping broken code?
Start vibe coding on a small, low-stakes project inside a git repository, commit before every request, and give the assistant a check it can run, such as a...
2replies - ✓
What is vibe coding, and where did the term come from?
Vibe coding is building software by telling an AI model what you want and accepting the code it writes without reading or fully understanding it. Andrej...
2replies - ✓
How do I stop a coding assistant from using innerHTML?
Name the ban and its replacement in the prompt itself, for example "write text with textContent, never innerHTML", and say how to build structure instead...
2replies