Claude Code Tutorial: Build Your First App From a Spec
A beginner Claude Code tutorial for your first app: pick a niche, write a spec, plan, build in small steps, test, and keep the agent on track.
On this page · 11 sections
- The short answer
- Why does this Claude Code tutorial start with a spec?
- Step 0 — Pick a niche you've checked
- Step 1 — Write spec.md
- Step 2 — Add a CLAUDE.md
- Step 3 — Plan before code
- Step 4 — Build one screen at a time
- Step 5 — Test the thing users complained about
- Step 6 — Ship with a store page built from your research
- Common beginner mistakes
- Frequently asked questions
The short answer#
To build your first app with Claude Code, start from a checked niche and a one-page spec, not a one-line prompt. Ask Claude Code to read the spec and propose a plan, approve it, then build one screen at a time, running the app after each step. Keep your rules in CLAUDE.md so the agent stays consistent.
Why does this Claude Code tutorial start with a spec?#
"Build me a habit tracker" gives you the same habit tracker everyone else got. A spec tells Claude Code who it's for, what problem it fixes and what not to build. That's the difference between a demo and an app someone would choose over the leaders.
Step 0 — Pick a niche you've checked#
Before opening a terminal, check that people search for the idea, that the top apps are beatable and that users complain about something you can fix. ShotMatic does this on your Mac and returns BUILD, RESEARCH MORE or SKIP.
Step 1 — Write spec.md#
Keep it to one page: one-line pitch, who it's for, the problem (with quoted complaints), what competitors lack, MVP
screens, data, out of scope, "done when". See our spec template.
ShotMatic's AI Agent can draft brief.md and spec.md from your research.
Step 2 — Add a CLAUDE.md#
Claude Code reads CLAUDE.md automatically. Put your rules there:
# Rules
- Read spec.md before any change. Don't add features outside "MVP screens".
- Run the app / tests after each step and report what you ran.
- Ask before adding a dependency.
Step 3 — Plan before code#
"Read spec.md and CLAUDE.md. Propose a step-by-step plan for the MVP. Don't write code yet."
Edit the plan until it matches the spec. Cut anything that sneaks in.
Step 4 — Build one screen at a time#
"Do step 1 of the plan only. Then stop and tell me how to run it."
Run it. Fix. Commit. Next step. Small steps make mistakes cheap and diffs readable.
Step 5 — Test the thing users complained about#
If your niche's top complaint was "lost my data after an update", test exactly that: kill the app, update it, go offline. Your differentiation is only real if it survives the scenario competitors fail.
Step 6 — Ship with a store page built from your research#
Use the keyword people search, show your difference in screenshot one, and explain it in review notes.
Common beginner mistakes#
| Mistake | Fix |
|---|---|
| Huge first prompt | Plan first, then one step at a time |
| No rules file | CLAUDE.md with your constraints |
| Accepting without running | Run after every step |
| Feature creep | "Out of scope" list in the spec |
| Building a generic app | Start from niche evidence |
Do step 0 right — check your niche free.
Related: What app should I build with Claude Code? · Spec-driven development: write a PRD Claude Code can build from
Frequently asked questions
Do I need to know how to code to use Claude Code?
You can get a working prototype without much coding, but reading diffs and running the app yourself is what keeps it on track.
What is CLAUDE.md?
A Markdown file in your repo that Claude Code reads automatically: project rules, commands, conventions. It saves repeating yourself every session.
What should my first prompt be?
Something like: 'Read spec.md and propose a step-by-step plan for the MVP. Don't write code yet.' Planning first avoids rewrites.