Building Apps
Before the full walkthrough: write a short user journey, then build one step at a time with checks.
Apps vs games (same Grok skills)
An app here means a useful product: website, tools, multiplayer services, internal dashboards. You still use folders, AGENTS.md, clear goals, and verification—the content of the goals changes.
Start from a user journey
A user journey is the path a person takes through your product, written as a story:
1. Visit homepage while logged out
2. Sign up with email
3. Create a project
4. Invite a friend
5. Edit a document togetherPut this in JOURNEY.md. Build one step at a time until that step works for a human.
- Write journey + AGENTS.md (how to run, test, and start the dev server).
- Use plan mode for big structure — auth, database tables, API shapes.
- Implement one journey step with a verification sentence in every prompt.
- Manually click through the happy path yourself.
- Then empty states, errors, loading spinners (ask for them explicitly).
/plan
Add email/password signup and login.
Sessions should keep users logged in.
Protect the /app page so logged-out users are redirected.
Verification: I can register, log in, open /app, log out, and get redirected.Never paste production passwords into Grok. Teach variable names in AGENTS.md (DATABASE_URL) and keep real values in private env files that are not committed to Git.
Pick one journey step only (e.g. “static homepage with a working Sign up button that shows a form”). Finish that before anything else.
Follow the copy-paste guide: Walkthrough: Your First App (Focus List) — journey file, shell UI, features, localStorage, and exact good vs bad prompts.
This lesson is short on purpose. When you finish reading, open Walkthrough: First App and follow every phase in order.