Case study · Live on the App Store

Habit Jr.
From idea to the App Store.

Habit Jr. is a routine app that kids and parents use together. I designed it and shipped it end to end, with coding agents doing most of the implementation. This page is about the process: how I ran the agents, what I kept for myself, and what kept the work safe to ship.

1 day
From written spec to a working prototype
18 days
From spec to the 1.0 release
1
Engineer, directing coding agents

How I ran the agents

I acted as product owner and lead engineer. The agents did most of the typing. Every change went through the same loop.

1

Decide what to build

I write the goal in plain words, or a short plan for anything big, like notifications or subscriptions. Open questions get settled here, by me, and go in the decision log.

2

An agent builds it on a branch

A Claude Code session reads the repo's instructions, spec and progress log, then does the work across the app, API and infrastructure. Sometimes several run at once, each on its own branch.

3

Checks decide, not trust

Before pushing, the agent has to pass the same checks CI runs: type checks, the API contract check, tests against a real database, and an iOS build. A pull request that fails doesn’t merge.

4

I review and try it

I read the change, try it on my own devices, and push back in plain words. “This is confusing” is a normal review comment. Then it merges and deploys to staging on its own.

5

I release it

Production deploys and App Store builds wait for my approval. The agent writes down what changed and what’s left in the progress log, so the next session starts where this one stopped.

The repo is the memory

An agent starts every session with no memory of the last one, so everything it needs lives in the repo:

  • Instructions file. What the app is for, how to write copy for kids, and the house rules: a branch and pull request for every change, and which checks to run first.
  • Spec with requirement IDs. Every requirement has an ID, so a change can say exactly what it covers.
  • Decision log. Each call gets an ID, a date and a reason. When I changed my mind, the old entry stayed, marked superseded.
  • Progress log. Updated at the end of each session with what was done, what was checked, and what’s next.

What I kept for myself

Product decisions, the look and feel, testing on real devices, and anything that can’t be undone: app releases, production deploys, the Apple and Cloudflare accounts, and secrets. Secrets never go in the repo, and the account that deploys can’t read them.

Design first, then code

Parents and kids, ages 4 to 12, make routines together, and the kids do them on their own device. They earn points and stickers, and families can join a friend crew, where kids send each other cheers and fill a shared jar together.

1

Rules before screens

Because it’s for children, a few rules came first: no ads, no photos, no free text from kids, no rankings between siblings, and it has to work offline. The repo’s instructions file says what the app is for, so every screen and every line of copy starts from the same place: families build habits together, with friends, and nothing pressures a child.

2

A spec and a mock

I wrote a spec and made an HTML mock of the main screens. That was enough for a working prototype a day later, and it told me which ideas held up once they were real.

3

Boards before code

After that, design lived in one canvas in Claude, with a page per area: app screens, friends and stickers, seasons, notifications, the subscription. New features got boards first. I approved them, and the plan for the feature named the boards the agent had to build from.

4

Check the build against the design

Agents put the app and the boards side by side, in the simulator and in a browser, and fixed what drifted. When a screen had the right content but only an approximation of the artwork, I sent it back until it matched.

5

Try it in real hands

I used the builds on my own iPhone and iPad. Real use caught things the boards couldn’t, like text that disappeared in Dark Mode. Before submitting, I checked the app against Apple’s rules for the Kids category.

Where the spec and the boards disagreed, I made the call and wrote it in the decision log. I chose native Swift over React Native, for example, and cut the task row down to one menu because two buttons on every row was confusing.

One API, one worker, one database

Habit Jr. system architectureThe iOS app talks over HTTPS through a Cloudflare tunnel to the Hono API. The API and the worker both use one PostgreSQL database. The API also calls Apple sign-in and Resend email.SwiftUI appiPhone + iPadencrypted offline outboxCloudflaretunnel, no open portsAPI (Hono, Node)versioned /v1 routesBetter Auth at /api/authpure domain packagescoring and recurrenceWorker35-day horizon, day and week closePostgreSQLrow-level securityapp + auth schemasappend-only eventsThe API also calls Apple sign-in and Resend email

I picked boring, well-known parts on purpose: SwiftUI on the phone, a TypeScript API, and PostgreSQL. Agents are good at well-known tools, and I can review their work quickly.

The important rules live where an agent can’t skip them. The database itself keeps each family’s data separate. The server calculates every score. History is append-only. The app’s API client is generated from the server’s contract, and CI fails if the two drift. So a mistake shows up as a failing check, not a bug in production.

Shipping without surprises

Every pull request runs the full set of checks: types, the API contract, tests against a fresh PostgreSQL as the restricted database login, and an iOS simulator build. Before launch I also had an agent load-test a staging copy seeded with 1,000 families. It found slow queries, and the fixes made the main reads 10 to 70 times faster.

A merge to main deploys to staging automatically. Production never rebuilds anything: I tag a release, approve it, and the image that already ran on staging goes out. A rollback is the previous tag. The API, website and app each have their own version, and unfinished features stay off behind flags the app reads from the server, so turning one on doesn’t need a new App Store build.

It runs on Kubernetes behind a Cloudflare tunnel, with a managed PostgreSQL for production, and the infrastructure is defined in Terraform.

Knowing when it breaks

It’s a kids’ app, so logs and metrics carry counts, timings and opaque IDs, never names or task text. Dashboards and a dozen alert rules live in Terraform next to the servers, so they get reviewed like any other change. Alerts email me when the API starts failing or slowing down, background jobs stop or pile up, a server runs low on memory or disk, or an environment stops sending data at all.

On top of that there’s a health check for the background worker, an audit trail of who did what, a command that rebuilds every score from history to prove the stored numbers are right, and a written incident runbook.

Building something similar?

Tell me what you have in mind and I’ll tell you how I’d build it.

Habit Jr. is my own product. Figures come from its repository as of November 2026.