Your first real build. You create a throwaway Codex project, send my first build prompt and watch Codex create a whole React site from nothing. While it works, you install the grilling skills we use for the rest of the course. Then you review what Codex changed, run the site and open it in Chrome.
grill-me, grilling, grill-with-docs, domain-modeling) with one npx command, and understand what a skill actually is./ menu and read one of them.npm run dev and open it in Chrome.A skill is a reusable prompt saved as a file, with a name you can call by typing / and the name in the message box. Instead of typing “ask me ten hard questions about my plan before you build anything” every time, you install a skill called grilling once, and from then on /grilling does it. Each skill is a folder containing a SKILL.md file: plain text instructions that Codex reads and follows when you call it. Skills live in ~/.agents/skills on your Mac, which means they are available in every project. They are the only add-on this course uses.
~/codex-course/auctionhouse-throwaway)Codex needs a folder to work in. We give it a brand-new empty one, so there is nothing to confuse it and nothing of yours it could damage. I keep everything for this course under ~/codex-course, so the throwaway goes there too. Paste into Terminal:
mkdir -p ~/codex-course/auctionhouse-throwaway ls -A ~/codex-course/auctionhouse-throwaway | wc -l
Line by line:
mkdir -p ~/codex-course/auctionhouse-throwaway creates the folder. -p also creates any missing parent folders and does not complain if the folder already exists.ls -A … | wc -l lists everything in the folder, including hidden files, and counts the lines. It is a quick way to prove the folder is truly empty.0: the folder exists and is empty. That is the “blank slate” we start from. Nothing else prints; mkdir is silent when it succeeds.
A project in Codex is simply a folder on your Mac that you have given Codex permission to read and edit. Everything Codex does in a chat, reading files, writing code, running commands, happens inside that folder. It cannot wander off into your Documents or your photos. One project can have many chats; the sidebar groups them under the project name. This is also why we made the folder first: Codex wants an existing folder to point at.
auctionhouse throwaway
~/codex-course/auctionhouse-throwaway
Before you click Create, the dialog shows auctionhouse throwaway as the name with auctionhouse-throwaway listed under Source folders.
After: the sidebar's Projects list has auctionhouse throwaway with “No chats” under it, and the main area asks What should we work on in auctionhouse throwaway?. The bar above the message box shows the project name instead of “Choose project”.
Before sending anything, check the two buttons under your message box. The left one should say Approve for me and the right one 5.6 Sol Medium. If either is different, fix it now using guide 2 steps 4 and 7. The build in the next step depends on both.
Paste my prompt into the message box and press Enter. Read it once before you send it. I am deliberately specific: I name the framework (React), I limit the scope (two routes only), I give a number (six sample auctions), and I ask for three different looks so I can pick one instead of accepting the first design. The more precise the request, the less Codex has to guess, and guesses are where things go wrong.
A route is one address inside a web app. / is the home page; /auction/42 is “the page for auction number 42”. In a React app, a router looks at the address in the browser bar and decides which screen to show. “Two routes” therefore means two screens: the list of auctions, and one auction's detail page. Keeping it to two is how I stop Codex from building a login page, a seller dashboard and a dozen other things nobody asked for.
I would like to build an auction site. it's going to roughly model how other popular auction sites look online. please use React keep it to two routes right now: - Home page with auctions on it as well as some sample auctions (6) - separate route to actually view the auction I'd like you to build it with three different looks/themes, have those available on the homepage, and let me click between them
Your message appears in the chat, and the lines starting with - turn into bullets. A new chat appears under the project in the sidebar with a spinning indicator; after a few seconds it renames itself to something like “Build React auction site”. Codex writes a short opening line similar to “The workspace is empty, so I'm setting this up as a fresh Vite React app…”, and then you see it working: creating files, running commands, thinking. It runs for a few minutes; mine took about 4½ minutes.
If Codex pauses and asks you to approve a command, for example npm install (which downloads the packages the project needs from the internet), click Approve. Don't sit and watch the spinner: leave this chat working and go straight to step 4 in Terminal. If Codex ever stops before it's done (you see “You stopped…” or it simply goes quiet with no summary), send the single word continue in the same chat and it picks up where it left off.
This is your first real build. Codex reads and writes a lot of text over several minutes on Sol, so expect a noticeable charge on your API bill. Check platform.openai.com → Usage afterwards so you learn what a build like this costs. That number is useful: it tells you what a “build me a site” prompt actually costs, and you will budget better for the rest of the course.
While Codex builds, switch to the Terminal app and run the command below. It is an interactive installer: it asks you a series of questions. Use the arrow keys to move, Space to tick or untick an item, and Enter to confirm and move to the next question.
npx skills@latest add schneidenbach/skills
npm installs packages into a project. npx downloads a package and runs it immediately, without installing it anywhere permanent, which is perfect for one-off tools like this installer. skills@latest means “the newest version of the tool called skills”, and add … tells it which collection of skills to fetch. The first time you run it, npm asks permission to download the tool; that is the “Ok to proceed?” question below.
Answer the questions exactly like this:
y and press Enter.~/.agents/skills points at them, so updating later is easy.A “Security Risk Assessments” table where every row says Safe / 0 alerts / Low Risk (the installer scans each skill's text for anything dangerous before installing), then Installed 4 skills, listing ~/.agents/skills/grilling, grill-with-docs, grill-me and domain-modeling, and finally “Done! Review skills before use; they run with full agent permissions.” That last line is a fair warning: a skill is a prompt, and Codex will follow it with the same permissions it has for everything else, so only install skills from sources you trust.
The list of skills offered may be longer than four, because the collection grows over time. Only the four above matter for this course. Confirm they landed by running ls ~/.agents/skills in Terminal; it should print domain-modeling grill-me grill-with-docs grilling. If you ticked something extra by mistake, it does no harm, but you can delete its folder from ~/.agents/skills.
Back in Codex, click New chat. It opens inside the same project, and your build keeps running in its own chat; you can see it still spinning in the sidebar. Type the text below in the message box but don't press Enter. We only want to see the menu that pops up.
/grill
A menu above the box lists three skills whose names start with “grill”:
Delete the text and type just / to see the full list, which also includes Codex's built-in commands (Init, Model, Plan mode, Reasoning, Status…) and the fourth skill, domain-modeling. Built-in commands and your installed skills live in the same menu; that is the whole idea of “custom slash commands”. Clear the box when you're done.
I want you to read one skill, so you see that there is no magic inside. Open the grilling skill in VS Code:
code ~/.agents/skills/grilling/SKILL.md
It is a page of plain English telling Codex how to behave when you call /grilling: ask questions one round at a time, challenge weak assumptions, do not start building until the plan is solid. We use it for real in guide 8. For now, just notice that a skill is nothing more than a well-written prompt saved in a file.
If the grill skills don't show up in the / menu, wait until the build in the other chat has finished. Then quit Codex fully (Cmd+Q), reopen it, and try again. Codex scans ~/.agents/skills when it starts, so a restart is sometimes needed after installing.
Click the build chat in the sidebar (the one named something like “Build React auction site”). Wait until the spinner stops and the chat shows Worked for … with a time. Then read the summary Codex wrote. Always read the summary: it is Codex telling you what it believes it built, and the first place you catch a misunderstanding.
A summary similar to:
/auction/:id · Three switchable themes: Gallery, Modern, and Market · Theme persistence between routes · Responsive desktop and mobile layouts”App.jsx, styles.css, data.jsnpm run build…” and Run it with: npm run devYour file names, theme names and numbers will differ. That's normal; every run is a little different.
/auction/:id and the Edited cardIn a route like /auction/:id, the :id part is a placeholder. It means “whatever comes after /auction/ is the id of the auction to show”, so one route serves all six auctions. The Edited 6 files +519 -0 card is Codex's receipt: six files touched, 519 lines added, 0 removed (it is a new project, so nothing existed to remove). Undo reverts everything from this turn; Review shows you the changes line by line. You will see this card after every build in the course.
Click Review on the “Edited … files” card. A panel opens on the right showing the changes. At the top of that panel there is a dropdown that reads Last Turn ▾; click it to see the other views, then switch back to Last Turn.
A diff is the difference between two versions of a file, shown line by line. Lines marked with a green + were added; lines with a red − were removed; unchanged lines are context. Reviewing the diff, rather than the whole file, is how engineers check an AI's work quickly: you look only at what moved. The dropdown's other views (Uncommitted, Unstaged, Staged, Committed, Branch) are different Git slices of the same idea; we use them from guide 15 onwards when we start committing each part.
A list of new files (index.html, package.json, src/App.jsx, …), each with green + lines, because everything is new. The dropdown offers Last Turn, Uncommitted, Unstaged, Staged, Committed, Branch. I stick with Last Turn here, which means “what this chat just changed”, and I do not read every line of a throwaway. In guide 7, when we build the real app, we read much more carefully.
The top-right toggle side panel icon also opens Files, Side chat, Browser and Terminal. I use Side chat a lot: it lets me ask “what does this file do?” without adding noise to the main chat that is doing the work. If you don't see Side chat in your version, open a New chat in the same project for side questions instead. The Uncommitted/Staged views need Git, and this throwaway folder is not a Git repo, so they may be empty. That's expected.
Click the toggle bottom panel icon (left of the two icons at the top-right). The terminal opens, already inside the project folder. Run:
npm run dev
npm run dev runs the “dev” script from package.json, which starts Vite's development server: a small web server on your own Mac that serves the site and reloads the page instantly whenever a file changes. localhost is the address that means “this very computer”. The number after the colon, 5173, is the port: one machine can run many servers at once, and each listens on its own numbered door. Vite's default door is 5173. Later, our backend will listen on a different port, and the database on yet another.
Vite starts and prints something like VITE v8.x ready in 68 ms and ➜ Local: http://localhost:5173/. The command does not finish and return to the prompt; it keeps running, serving the site, until you stop it with Ctrl+C. That is correct behaviour for a server.
If you see vite: command not found, Codex didn't install the packages. Run npm install first (it reads package.json and downloads everything listed there into a node_modules folder), then npm run dev again. If the prompt isn't in the project folder, run cd ~/codex-course/auctionhouse-throwaway first; pwd tells you where you are.
Codex has a built-in browser in the side panel, but it does not work with an API-key sign-in, so go straight to Chrome. Copy the address below into the address bar and press Enter.
http://localhost:5173
A polished, very “AI-looking” auction site. In my run, Codex named the site GAVEL, with the tagline “Remarkable objects. Open for bidding.”, luxury lots (a Porsche, an Eames Lounge Chair, a Rolex), a theme switcher at the top-right, and a Choose your viewing style section offering Gallery / Modern / Market. Clicking a lot opens its own page, for example /auction/eames-lounge-chair; that is the second route. Click between the three themes and watch the whole look change. Your names and designs will differ from mine, but the structure (six lots, detail pages, three themes) should match the prompt.
Leave npm run dev running in the bottom panel and keep this Chrome tab open. Guide 6 continues in this same chat with the site still up. If you need to stop it later, click in the bottom panel and press Ctrl+C.
Nothing later depends on this throwaway site, because we delete it in guide 7, so there is no reference copy to catch up from. If the build stopped halfway, send the first message below in the build chat. If the site is broken in the browser, copy the error text from the terminal or from Chrome into the chat and let Codex fix it, or just move on. What does matter is the skills: if step 4 went wrong, run the install again and check the folder.
continue
npx skills@latest add schneidenbach/skills ls ~/.agents/skills
The second line lists the installed skills folder; you want to see all four names. If a skill is missing, re-run the installer and make sure it is ticked (Space) before you press Enter.
SKILL.md files. They live in ~/.agents/skills, work in every project, and are the only add-on this course uses.npm run dev starts a local dev server on localhost:5173. It keeps running until you stop it; that is normal for any server.