State your stack up front — don't let the model guess it.
I learned this one the expensive way. I asked the model to build me a login page, and it built a beautiful one — in React, with Tailwind, and a state library I had never used. My project was plain HTML, CSS and JavaScript. Nothing it wrote could drop into my code. I had two choices: rebuild my project around its guess, or throw the whole answer away and start again. I threw it away. An evening, gone.
The model didn't do anything wrong. I never told it what I was building with, so it guessed — and a model's guess is always the most popular stack on the internet, not yours. It will pick React when you're on Vue, Next.js when you're on plain HTML, Tailwind v4 syntax when your project runs v3. Every one of those guesses becomes rework for you, and the rework is always bigger than the prompt you skipped.
Now the first line of every project prompt is the stack, written out in full: language, framework, versions, and the libraries already in the project. "Plain HTML, CSS and vanilla JavaScript, no framework. Tailwind is not installed." One sentence. It takes five seconds to type and it saves the whole answer from being built for the wrong house.
Versions matter too. "React" is not a stack — "React 18, Vite, Tailwind v3" is. Two versions of the same tool can have different syntax, different file layouts, different answers. If you don't name the version, the model picks the newest one it knows, and your project is on the older one.
The model is a builder, not a mind reader. Tell it what the building is made of before you ask it to build. State the stack up front, in the first prompt, and every answer after that lands in code you can actually use.
2 likes · 2 views