# 5 Step Claude Code System That Builds Apps While You Sleep
<!--
ref: @content/youtube/sean-kochel/2026-07-24-5-step-claude-code-system-that-builds-apps-while-you-sleep
tags: [app development, Claude Code, non-developer, automation, workflow]
triggers: [want to build an app, need a structured development process, struggling with coding, looking for automation solutions]
trigger_prompt: When someone has a raw app idea and seeks a systematic way to develop it into a functional application without deep coding knowledge.
version: 3
updated_at: 2026-10-31T20:27:17.599Z
-->

Sean Kochel (2026-07-24): Kochel argues that the bottleneck for non-developers isn't the coding — it's the absence of a system for converting a raw idea into tightly-scoped, well-documented intent that an agent can execute against.

*Synthesized from Sean Kochel on Sean Kochel, 2026-07-24.*

Sean Kochel is an AI builder who teaches non-developers how to take an idea through research, design, and spec-driven implementation using Claude Code, and here he builds a real fitness-tracking iOS app end to end on camera.

## Core Thesis

Kochel argues that the bottleneck for non-developers isn't the coding — it's the absence of a system for converting a raw idea into tightly-scoped, well-documented intent that an agent can execute against. His answer is a five-stage pipeline (light PRD → deep research → UX planning → design → vertically sliced epics), each stage producing artifacts that feed the next, with the actual build handed to a spec-driven tool (OpenSpec) running autonomously overnight. The payoff of front-loading all that planning is that you can let an agent run unattended for hours; the cost of skipping it shows up directly as redundant UI states and missing fields in the finished app.

## Key Insights

- Kochel's working example is a tracker for the **Mountain Tough** functional-fitness program, which ships Monday–Friday programming as a weekly PDF and has no app — users currently log weights by commenting under videos and scrolling comment threads to find last week's numbers.
- Because Mountain Tough's rep schemes are non-standard week to week, Kochel plans for **generative UI**: a language model parses the PDF and renders workout blocks on the fly rather than fitting them into a fixed template.
- Stage one uses a custom **`light-prd` skill** (open source, in his GitHub repo) that grounds itself in the problem, then interrogates you. This run produced **15 questions**; passing a `deep` flag pushes it to roughly **50**. The skill traverses a decision tree — an answer that creates a new ambiguity spawns a follow-up question.
- Every question and answer is written into the project as a decision log. Kochel says pointing the model back at that log later, when it drifts from a decision you already made, is one of the highest-value habits in the workflow.
- He deliberately picks the lighter option at every fork. He rejected confidence-scoring on parse failures and a full block editor in favor of autosave-and-edit-later, on the grounds that each "simple" addition compounds until the thing is no longer an MVP.
- Stage two runs Claude Code's built-in **deep research workflow** across two questions: the technical implementation (PDF parsing + LLM + on-the-fly UI generation) and the likely data schema, seeded with two real program PDFs. It fired off **22+ searches**, then ran **adversarial verification** on alleged facts. Several blog-post claims were refuted — Kochel's argument for why plain web search isn't enough.
- Research surfaced a requirement the PRD missed entirely: the PDFs carry **expert, intermediate, and beginner** variants for every exercise. Findings get reconciled back into the PRD via a second question round before any building starts.
- Stage three uses a **`prd-to-ux` skill** (a lighter version of one from his paid community) to settle mental model, information architecture, affordances, and every screen state — **empty, loading, success, partial data, error** — so the model isn't making "game time decisions" during design.
- Stage four is **Claude Design**, mobile app template, with a design system reused from another project. He feeds it **one screen at a time**, calling the common mistake dumping all screens at once. He finishes by prompting it into an interactive prototype, then exports to Claude Code as a **zip dropped into the project's `docs/` folder**.
- Stage five points a **`prd-to-epics` skill** at `docs/` (now holding both PRD and designs) to produce **vertically sliced epics** — seven for this app. He notes he was running **Fable 5** for this planning step.
- **OpenSpec** is initialized with Claude Code and driven on **Opus**. Its proposal command generates four artifacts per change: `proposal.md` (the what and why), `design.md` (system design and decisions), the specs, and the task list. `apply` then implements it.
- Kochel repeatedly stresses that language models fill gaps better when they know *why* — motivational intent in the proposal is what lets the model resolve unspecified decisions sensibly.
- The overnight run is a **dynamic workflow**: discover unimplemented epics → propose → implement with **one sub-agent per phase** → **one adversarial review sub-agent after each phase** → verify → finalize (sync specs, archive) → next epic. Epics must run **in sequence**, not batched in parallel, because later ones depend on earlier work.
- It ran **20 hours overnight** for seven epics — inflated by baked-in verification loops, iOS-simulator-driven checking, and dead time while it waited on questions Kochel didn't see until morning. The parser epic alone took **two to three hours**.
- The honest result: parsing worked, blocks rendered, but **weighted exercises (dumbbell pec flies, single-arm dumbbell press) had no weight field**, three redundant loading indicators stacked up, and block one's 5-minute AMRAP couldn't log rounds. Kochel attributes this to non-determinism — the same PDF run repeatedly yields different structures — and to how little time he spent in the specking phase.
- His bug loop, demoed on a separate AI-native nutrition tracker: file every bug as a **GitHub issue tagged `bug`**, then run a workflow once or several times a day that works the bug backlog — diagnose the cause, fix, test itself against the simulator or browser, optionally check in with you mid-fix.

## Actionable Takeaways

1. **Write functional requirements before features.** List what the system must *do* (upload a PDF, parse it, assemble a week, track live, view history, reconcile exercises across weeks for trend tracking) — not a feature list.
2. **Run a light-PRD skill that interrogates you.** Use `light-prd` (or equivalent) with roughly 15 questions for an MVP, the `deep` flag toward 50 when stakes are higher. Answer every question; do not let the tool decide for you.
3. **Persist the Q&A log into the project.** When the model later contradicts a decision, point it at that log rather than re-arguing.
4. **Choose the lighter option at every fork.** Autosave-and-edit-later over confidence scoring; view-only history over editable past entries; local-only over accounts. Each rejected "simple" addition is a new surface needing its own tests.
5. **Run deep research on both axes before building** — technical implementation *and* domain structure — seeded with real source documents. Pass in the current month and year to bias toward current best practices, and set token budgets, agent caps, and per-step model choices, because this stage is expensive.
6. **Reconcile research findings back into the PRD** through a follow-up question round before any code exists.
7. **Plan UX explicitly, state by state.** For every screen, define empty, loading, success, partial-data, and error before opening a design tool.
8. **Design screen by screen.** Paste one screen's spec into Claude Design, review, then move to the next. Ask for an interactive prototype at the end, then export the zip into `docs/`.
9. **Slice into vertical epics, then use a spec-driven tool.** Initialize OpenSpec with Claude Code, run `propose` per epic, read the proposal and design carefully — this is where Kochel says to spend time on anything you actually care about — then `apply`.
10. **Layer skills onto the apply step.** Start a fresh context window, paste the apply command, and add instructions like "use sub-agents for each phase" plus "one adversarial review sub-agent after each phase." Ora superpowers, compound engineering, and similar sub-agent-driven skills all plug in here.
11. **Bake verification into unattended runs.** Adversarial reviews, verify and finalize stages, and MCP-driven browser or iOS-simulator testing are what make a 20-hour run trustworthy — and are why it takes 20 hours.
12. **Route bugs into GitHub issues tagged `bug`,** then run a scheduled workflow over the backlog that diagnoses, fixes, and self-tests. Beats ad-hoc bug tracking.
13. **Pick the model provider on economics, not defaults.** Kochel used OpenAI purely because he had credits sitting there, and notes open-source models would likely be cheaper and just as good for parsing semi-structured PDFs into a roughly known schema.

## Notable Quotes

> "Parsing unstructured data — or semi-structured data — is something that a language model is actually good at." — Sean Kochel

> "It's going to keep everything on rails, and it's going to keep everything super well documented." — Sean Kochel

> "Language models are really much better when they're provided motivational intent behind something." — Sean Kochel

> "You could run this PDF through several different times and get different responses every time you do it." — Sean Kochel

> "When I let these things go unattended, I bake in serious verification loops." — Sean Kochel

---

*Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@protocol/protocol-api` · `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*