A Prompt for a Workout Logger App
One brief that builds a workout logger you would actually use between sets, with the reasoning behind every line and the prompts that come next.

Key takeaways
- A workout logger lives or dies on how fast you can log a set with sweaty hands, so the brief puts logging speed ahead of charts.
- Store every set as its own row. Charts, personal records and "last time" hints all come from that one table.
- Build it as an Expo app and run it on your phone with Expo Go; App Store and Play Store builds are not available from Startbase right now.
Here is a complete prompt for a workout logger you can paste into Startbase today. It builds a phone app where you start a workout, log each set in two taps, rest on a timer, and see your progress per exercise. Below the brief you will find why each line is there, the three follow-up prompts to send next, two variations, and the mistakes that usually show up in the first build with the exact wording to fix them.
The brief
Build a mobile workout logger as an Expo app, dark theme, big touch targets for use between sets. Use Startbase Cloud for sign-in (email magic link) and data. Data: exercises (name, muscle group, equipment, is_custom, owner), workouts (user, started_at, finished_at, notes), sets (workout, exercise, order, weight in kg, reps, is_warmup, completed_at), and routines (name, ordered list of exercises with target sets and reps). Seed 40 common exercises. Screens: 1) Today: a Start empty workout button and my routines as cards. 2) Active workout: one card per exercise, each set as a row with weight and reps steppers prefilled from my last session of that exercise, a check button that completes the set and starts a rest timer (default 90 seconds, adjustable per exercise), and Finish workout. 3) History: past workouts by date with total volume. 4) Exercise detail: a line chart of my best set per session (estimated one-rep max using the Epley formula) and my personal records. 5) Settings: kg or lb display, default rest time. Each user sees only their own workouts, sets and custom exercises. Out of scope for now: social features, coaching or AI plans, wearables, nutrition, and store publishing.
Why each part of the brief is there
- "Expo app, big touch targets": you log at the gym, not at a desk. Saying it up front changes the whole layout: steppers instead of text fields, a thumb-reachable check button, no tiny icons. You will test it on your own phone with Expo Go, which reloads live as the agent builds.
- Magic link sign-in: nobody wants to type a password with chalk on their hands. Email magic links are on by default in Startbase Cloud, so this costs nothing extra.
- Sets as their own table: this is the single most important line. Every useful feature (history, charts, personal records, "last time you did 80 kg for 6") is a query over sets. Apps that store a workout as one blob of text cannot chart anything later.
- Weight stored in kg, displayed in either unit: one storage unit keeps math and charts honest. Conversion happens only on screen.
- Prefill from last session: the fastest set to log is the one you only confirm. This one line is what makes the app feel smart.
- Rest timer started by the check button: one tap does two jobs, which is the kind of detail that makes people keep using a logger.
- Epley formula named: if you do not name a formula, the agent picks one, and you will not know which. Epley (weight times one plus reps divided by 30) is the common default.
- The privacy line: "each user sees only their own" tells the agent to write row-level security policies, so one account can never read another's training log.
- Out of scope list: it stops the first build from sprawling into a social network. You can add any of these later.
The first three follow-up prompts
Once the first build runs on your phone, log a real workout with it before asking for anything new. Then send these, one at a time, checking each on the phone:
- 01"Keep sets I log while offline. If saving fails, queue the set on the phone, show a small unsynced badge on the workout, and retry when the connection is back. Never lose a set."
- 02"Add supersets: let me link two exercises in the active workout so completing a set of the first jumps to the second, and the rest timer starts only after the second."
- 03"On Finish workout, show a summary card: duration, total volume, number of sets, and any new personal records with the old value crossed out."
The offline prompt comes first on purpose. Gym basements have bad signal, and a logger that drops a set once loses your trust for good. Supersets come second because they change the active workout screen, and it is easier to reshape that screen before you pile more on it. The summary card is the reward moment, and it reuses the personal-record queries you already have.
Two variations
A coach version for a small studio
Swap the single-user model for two roles. Add to the brief: "Add a coaches table. A coach can create routines and assign them to clients by email invite. Clients see assigned routines on Today and log against them. Coaches see each client's history read-only and can leave a short note on any workout. Clients never see each other." The rest of the brief stays the same. Be precise about who reads what, because the permissions are now the hard part, and test them by signing in as two different clients.
A bodyweight and running log
For people without a barbell, replace weight with the measure that matters: "sets record reps, or duration in seconds, or distance in meters, depending on the exercise type." Each exercise gets a type field, and the set row shows the right inputs. Change the chart from estimated one-rep max to best reps, longest hold or fastest pace per kilometer.
What usually goes wrong, and how to ask for the fix
- The rest timer stops when the phone locks. Timers that count in the background drift or freeze. Ask: "Store the rest timer's end time, not a countdown, and compute remaining time from it whenever the screen is shown again."
- Prefill shows the wrong session. Usually it pulls the last set of any workout, including warm-ups. Ask: "Prefill from the last completed working set (not warm-up) of the same exercise, from my most recent finished workout."
- Charts look jagged or empty. Often the chart plots every set instead of one point per session. Ask: "Plot one point per workout: the highest estimated one-rep max among working sets that day."
- Units get mixed. If old sets were saved in pounds before you added the setting, numbers jump. Ask: "Confirm every stored weight is kg and convert only for display. Find any sets that look like they were saved in pounds and list them before changing anything."
- Another account can see my exercises. Test with a second email. If custom exercises leak, ask: "Custom exercises must be visible only to their owner; seeded exercises are visible to everyone. Check the policies on exercises and sets."
When something breaks, describe what you did, what you expected and what you saw, in that order. "I logged three sets of squats, locked the phone for two minutes, and the timer still showed 1:30" fixes faster than "the timer is broken". If a follow-up makes things worse, restore the previous checkpoint and rephrase rather than stacking fixes.
Before you share it with your training partners
Run a full week of your own workouts through it first. Real use surfaces the friction that a demo never shows: an exercise missing from the seed list, a stepper that moves in 1 kg when your plates go in 1.25, a history screen that takes too long to load. Fix those, then share the Expo Go link with a friend or two.
Know the limits before you promise anyone an app icon on their home screen. Startbase builds and previews Expo apps and runs them on phones through Expo Go, and it can publish the web version, but App Store and Play Store builds are not available from Startbase right now. If you later want a store release, push the code to GitHub and run your own build workflow. For the bigger picture on features and data, read how to build a workout tracker, and if the tables and policies above are new to you, database basics for non-developers explains them in plain words. The Expo template docs cover the phone preview, and what a fitness app costs helps you plan the budget.
Frequently asked questions
Can I build a workout tracker without coding?
Yes. Paste a detailed brief like the one above into an AI app builder, test the result on your phone, and refine it with short follow-up prompts. The detail in the brief (tables, screens, who sees what) does the work code used to do.
Will my workout logger be on the App Store?
Not from Startbase right now. You can run the Expo app on your phone with Expo Go and publish its web version. For a store release, export the code or push it to GitHub and use your own native build workflow.
How do workout apps calculate a one-rep max?
Most use an estimate from a set of several reps. The Epley formula multiplies the weight by one plus the reps divided by 30. It is an estimate, less accurate at high reps, so it is best for tracking trends rather than as a true max.
Should a workout app work offline?
It should at least never lose a set. Queue sets on the phone when saving fails and retry when the connection returns, with a visible marker for anything not yet saved.

