FirstPrompt
Anmelden
Mit Claude eine App veröffentlichenModul 1 · Heute Abend deine App auf dem Handy
Lektion 4 von 6VorherigeNächste
2:30

Dieses Video gibt es vorerst auf Englisch. Die deutsche Fassung folgt bald.

Die Dateien, die Expo für Claude geschrieben hat

KostenlosVideo 2:30

Du liest als Gast – dein Fortschritt wird nur auf diesem Gerät gespeichert.

Kostenlos registrieren und sichern

By the end of this lesson you know what the two agent files in your new project are, which one to write in, and why. You will have added five rules to AGENTS.md that describe your actual machine — no emulator, Windows, physical phone — and started Claude Code inside the project so it reads them.

Open the project folder in a file explorer and turn on hidden files. Alongside the things you would expect — src, package.json, app.json — there are two you did not ask for.

A file tree of the new Expo project with AGENTS.md, CLAUDE.md and the .claude settings file highlighted
Two files, written for you by create-expo-app. Nobody teaches these yet, because they did not exist when the current crop of courses was recorded.

create-expo-app writes them by default, and that changes what this course is: directing an agent to build a mobile app is now the vendor-supported workflow rather than a clever hack. If you ever want a project without them, npx create-expo-app@latest --no-agents-md skips both.

What each one is for

points the agent at the Expo documentation that matches your project's SDK version. That sentence is worth more than it looks: models were trained on older Expo, and a lot of AI-written Expo code is two, three or four SDK versions out of date and confidently wrong. This file is the correction.

8 Min. Lesezeit
Lektion 4 von 6

Modul 1 · Heute Abend deine App auf dem Handy

0/6
  1. 2:28Was du baust und was es kostetVideo
  2. 2:28Die Toolchain unter Windows installierenVideo
  3. 2:36Deine App auf deinem HandyVideo
  4. 2:30Die Dateien, die Expo für Claude geschrieben hatLäuft
  5. 2:49Deine erste Änderung, ohne Code zu tippenVideo
  6. 1:59Modul 1 im RückblickVideo
AGENTS.md

.claude/settings.json pre-enables the official Expo plugin from the Claude Code plugin marketplace.

There is no CLAUDE.md. Claude Code reads AGENTS.md directly, so there is nothing to import, and the same file serves Claude Code, Codex or Cursor without per-agent configuration.

So the rule for the rest of this course, and it is Expo's own guidance:

Put project instructions in AGENTS.md, not CLAUDE.md. One place, every agent, no duplication.

Your first edit

AGENTS.md as written knows about Expo. It does not know about you: that you are on Windows, that there is no emulator on this machine, that the test device is a phone on your desk.

Open AGENTS.md in any text editor — Notepad is fine — and add these five rules at the bottom.

## This project's machine
 
- Run on a physical Android device via `npx expo start`. Never assume an
  emulator or simulator is available.
- Install packages with `npx expo install <package>`, never `npm install`,
  so versions match the SDK.
- This project is developed on Windows. Never suggest Xcode, CocoaPods, or
  `npx expo run:ios`.
- Do not run `npx expo prebuild` without asking me first.
- Do not run lint or a typecheck unless I ask. I check changes on my phone.

Every line prevents something specific. The first stops the four-hour emulator detour from lesson 2. The second matters more than it reads: npx expo install picks the package version matching your SDK, npm install picks the newest, and that mismatch is the commonest cause of an Expo build failing for reasons nobody can explain. Expo's section already says the same, so Claude may point out the repeat; yours just makes it explicit. The third saves you being told to open Xcode on a machine that cannot run it. The fourth is a guard rail — as of SDK 57, expo prebuild clears and regenerates the native folders by default. The fifth keeps Claude out of a trap in the template itself: Expo's section tells it to run lint and a typecheck before calling any task done, and the untouched template already fails its typecheck, in src/components/app-tabs.web.tsx, a file you never touch. Without this line Claude chases that error after every task. Your phone is the check instead.

The AGENTS.md file open in an editor with the four newly added machine rules below the section Expo generated
Expo's section stays where it is. Yours goes underneath. Four short, checkable sentences beat a page of good intentions.

Keep the file short. Anthropic's guidance is under 200 lines — longer files consume more context and reduce adherence, which is the unglamorous reason an agent sometimes ignores an instruction you definitely wrote down.

Module 4 adds one more rule here, the one that stops Claude spending your money on builds you did not authorise. It can wait until there is money to spend.

Start Claude inside the project

This is where the account from lesson 1 starts to matter: from here Claude has to run in the folder and read and write your files, and that needs a subscription or Console credits.

Run it from inside the project folder, not from your Documents folder. Leave the dev server running in its own window.
claude

Claude Code reads AGENTS.md from the folder you start it in, so starting it here is what loads Expo's section and your five rules. One directory up loads nothing, and you get a confident agent with no idea what machine it is on.

Ask it a question with a checkable answer:

Read AGENTS.md and tell me, in one sentence each, the five rules I added about this machine.

If it comes back with your five rules, it read them. If it comes back with something general about Expo, you started it in the wrong folder.

The plugin and the MCP server

Two more first-party pieces exist, and both become properly useful in module 4.

The official Claude Code plugin installs Expo's skills and registers Expo's MCP server in one step. Run it from inside a session with /plugin install expo@claude-plugins-official. The skills are discovered from the conversation rather than invoked as slash commands, so there is no list to memorise.

The Expo MCP server lives at https://mcp.expo.dev/mcp and gives the agent live access to current Expo documentation, your build history and — the part that matters later — the ability to screenshot your running app and tap on it. That is module 4's signature lesson, and the answer to the oldest complaint about AI app-building: that the model cannot see the phone.

Prüf dein Ergebnis
  • You can find AGENTS.md and .claude/settings.json in your project
  • Your five rules are in AGENTS.md
  • claude starts from inside the project folder
  • Asked to read AGENTS.md, it lists your five rules back to you
Melde dich an, um deine Arbeit prüfen zu lassen
Wenn du das siehst Claude does not seem to know about my rules

Two causes, in order of likelihood. You started Claude Code from a folder above the project, so it never read the project's AGENTS.md — exit, cd into the project, start again. Or the rules never reached the file: open AGENTS.md again, check they are there and saved, then start Claude again.

Wenn du das siehst Every message triggers a login that fails with a 401

Reported in June 2026: inside an Expo project directory, every message triggered an automatic /login that failed and left Claude Code unresponsive, while the same session worked normally outside the project. Deleting .claude and emptying the enabled-plugins list did not fix it for the person who reported it. If it happens to you, you have not done anything wrong — check whether the report is still open before you lose an evening to it.

What you just learned

  • create-expo-app writes AGENTS.md and .claude/settings.json by default; --no-agents-md opts out.
  • AGENTS.md points the agent at SDK-matched Expo docs, which is the correction for a model trained on older Expo.
  • Claude Code reads AGENTS.md directly, so there is no CLAUDE.md and nothing to import.
  • Project instructions go in AGENTS.md, kept under about 200 lines, because long files reduce adherence.
  • Claude Code loads AGENTS.md from the folder you start it in, so start it inside the project.

Übung

Probier das auf deinem eigenen Computer aus. Der Kurs läuft in Claude Code, und dafür brauchst du einen bezahlten Claude-Plan.

In Claude öffnen
NächsteDeine erste Änderung, ohne Code zu tippen
Vorherige
Nächste
KurseMit Claude eine App veröffentlichen entdeckenPrompt-PacksLass deine Idee scheitern, bevor du sie baust