StoicBuilder

HandbookIV the PraetoriumNaming your stack

IVthe Praetorium, Direct the agent

Naming your stack

1 min readUpdated 28 November

In plain words

Naming your stack means telling the agent which framework, database, login service, styling and hosting your app uses, so its code fits what you have.

Where you see it

You ask ChatGPT for a login page and get Firebase code, when your Lovable app runs on Supabase. Inside a project the agent can read package.json, but it can still write code for an older version of a tool than the one you run.

Your promptagent
Stack: React + Vite, TypeScript, Supabase (databaseand login), Tailwind, hosted on Netlify.Use only these, and check package.json for versionsbefore writing code.
Two lines that keep the agent from writing for the wrong tools.

What goes wrong

  1. Getting code for the wrong tool

    Ask a chatbot for "a login page" and it picks a common setup, often not yours. Firebase code pasted into a Supabase app won't build, or adds a second login system next to the first.

  2. Code written for an older version

    Tailwind v4 is set up in your CSS file rather than tailwind.config.js, so a config file written for v3 can be ignored. Versions matter, so name them.

  3. A second tool for the same job

    Without being told, an agent may install a new date library, form library or database client next to the one you already have. Now your app has two ways to do one thing.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Before writing code, read package.json and tell me the framework, database, login and styling tools this project uses, with versions. Use only those, and ask before adding anything new.

Quick check

Sign in to earn +10 XP for it

You paste a ChatGPT login snippet into your Supabase app, and it imports from "firebase/auth". What went wrong?

Got a prompt that touches naming your stack?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.