onebox

Guide 26 of 27

For your agent: .md · all guides

On this page
  1. First, the facts
  2. Then, the right skill
  3. A prompt that works
  4. When the agent goes in circles
  5. When to ask a person
  6. Check it works

When you are stuck

Runs on: your Mac, with your coding agent.

Everyone gets stuck: a build fails, Apple rejects the app, a change does not show up. Your agent can fix most of it, if you give it the right facts and the right skill. This page says how, and when to stop and ask a person.

First, the facts

Before you ask, collect these. An agent with the facts fixes it in one try. An agent with a guess tries five things.

Take secrets out first. If a log shows a key or a token, replace it with <redacted> before you paste it. See secrets.md.

Then, the right skill

Most problems have a skill made for them. Ask your agent to use it by name.

What you seeAsk your agent to run
Apple rejected the app, or you ask “will Apple reject this?”ship-ios:app-store-ready, with the rejection text
The iOS build or the upload failsship-ios:expo-local-build. Its pitfalls list has the common errors
The build is uploaded but not in TestFlight, or says “Missing Compliance”ship-ios:appstore-connect
Your change does not show up on the simulatordev:test-loop. Its preflight finds a wrong Metro or a missing native rebuild
The agent says “fixed”, but you are not suredev:test-loop, and ask for the screenshot
A test build talks to the wrong server, or has no API URLship-ios:ios-preview-build
The box, a container or a backup looks wrongbox:box-setup, the check phase
A URL does not load, or DNS looks wrongbox:expose-service, with its audit
A staging deploy failsbox:staging-env
You do not know what is nextthe plan skill (/start:plan). It ticks what is done and shows the next step

A prompt that works

<what you ran, and from which folder>
Expected: <what should happen>
Got: <what happened>
Error (first lines):
<paste>
It last worked: <when, and what changed since>
Use <skill> if it fits. Find the cause before you change anything,
and tell me what you will change.

“Find the cause before you change anything” matters. Without it, an agent often changes things until the error goes away, and a new problem appears later.

When the agent goes in circles

You know the signs: the same fix twice, a new error after each change, or “it should work now” with no proof.

  1. Stop it after two or three tries. More tries rarely help.
  2. Ask for the cause, not a fix: “Explain why this fails. Do not change any files yet.”
  3. Go back to what worked. git status shows what changed. git diff shows how. git restore <file> undoes a file. Commit before a big change, so you always have a way back.
  4. Start a fresh session with a short summary: the goal, what you tried, the error. A long session full of failed attempts misleads the agent.
  5. Ask it to read the source: the guide for this step, or the tool’s own documentation, instead of working from memory.

When to ask a person

Ask when the problem is outside your code: your Apple account, a payment setting, an App Review decision you do not understand, or the same error after a fresh session.

Check it works

Wrong or out of date? Fix it on GitHub.