LLM-Assisted Development in Practice: From Requirements Breakdown to Reliable Launch
Evaluating LLM-assisted coding by delivery reliability—not generation speed. This article walks through a wallpaper and AI image-creation app: product boundaries, architecture, data modeling, waterfall lists, recoverable generation jobs, human–model workflow, security and cost, and how to measure whether assistance actually reduces total engineering cost.
1. Judge coding models by reliable delivery, not how fast they write
When you use a large language model to build an app, the most visible result is volume: several screens at once, a batch of APIs, or a clickable prototype. Speed of generation is not the same as engineering quality.
A maintainable product still needs complete business logic, clear module ownership, sound data permissions, recoverable errors, and controllable cost. Even if the model emits many files, missing those pieces means long debugging and rework.
Evaluate assistance on questions like these:
- Does it surface implicit constraints before it starts coding?
- Does it produce a consistent front-end/back-end data contract to cut integration drift?
- Can it split complex features into independently verifiable tasks?
- Does it handle permissions, concurrency, retries, and failure recovery—not only the happy path?
- When requirements change, can it limit blast radius instead of rewriting the project?
Those questions track real development better than “how many lines were generated.” Architecture suggestions from a model are useful, but a complete write-up is not proof that the design has been validated.
2. Example: wallpaper and intelligent image-creation app—define the business boundary first
A seemingly simple wallpaper client usually has three kinds of capability.
Content browsing: category filters, wallpaper lists, album details, preview, and download.
User content management: uploads, managing works, processing status, and deleting unused items.
Intelligent image creation: analyzing a reference image, generating a description, editing prompts, then calling image generation to produce new work.
Do not implement all of this as one pile. Split the product into a minimal closed loop and later extensions.
2.1 Minimal closed loop: shortest path first
A first version can focus on two paths:
Consumption: browse list → open details → save the image.
Creation: upload a reference → edit the description → submit a job → view the result.
Album management, complex style templates, multi-round editing, and ops analytics can wait. That is not a weaker product; it exposes critical risk early—whether uploads are stable, whether generation jobs return reliably, and whether users may access results.
2.2 Rules that are easy to omit
Requirements should also answer:
- Which upload formats, sizes, and resolutions are allowed?
- Are private works invisible to other users by default?
- What permissions apply to download, share, and delete?
- After a failed generation, is retry allowed, and does it consume quota?
- If the user leaves the page after submit, can they still query the result?
- For edits involving a person’s appearance, how are consent, privacy, and content risk handled?
These rules drive schema, APIs, and UI states. Adding them after screens are written usually means large rework.
3. Architecture: clear ownership beats stacking technologies
A practical layout is client + business backend + data stores + model services.
The client handles interaction, image preprocessing, job submit, and status. The backend handles identity, authorization, orchestration, quota, and model calls. A database holds structured records; object storage holds originals, thumbnails, and outputs.
The client should not call model services with long-lived credentials. Credentials can be extracted, and you lose control of access and spend.
Suggested flow:
User selects an image
→ client does basic checks and preprocessing
→ backend authorizes upload and records ownership
→ user submits analysis or generation
→ backend runs the job and updates status
→ client polls progress
→ backend returns results after permission checks
At small scale, admin features can share infrastructure with the product API, but admin identity must stay distinct from end users. Moderation, takedowns, and quota adjustments must not be “protected” only by hiding buttons on the client.
Why module boundaries matter
At least:
- Assets: upload, metadata, access control, deletion.
- Content: wallpaper lists, categories, albums, publish state.
- Creation: analysis, prompt editing, generation jobs.
- Users: identity, ownership, quota.
- Admin: review, configuration, operations.
Clear boundaries give the model a stable responsibility map. Changing prompt-editing logic should not rewrite auth; changing list pagination should not change quota deduction.
4. Data modeling: do not store only image URLs
For image products, data design often decides later maintenance. A single URL cannot support permissions, review, deletion, and job tracking.
4.1 Asset records
Include asset id, owner, storage location, dimensions, file size, created time, and availability.
Manage originals and thumbnails separately. Lists should load thumbnails; detail views fetch high-quality images so first paint is not delayed by original downloads.
4.2 Wallpaper records
These describe how content is shown: link to an asset plus category, title, tags, publish state, and sort keys.
Separating assets from display records avoids duplicating the same file across albums. Deleting a display row need not delete the underlying object immediately.
4.3 Generation job records
At minimum:
- job id and user id;
- input assets and a prompt snapshot;
- current status and created time;
- start and end times;
- output asset ids;
- failure reason and retry info;
- a business request id to detect duplicate submits.
Keep the prompt as a snapshot at submit time, not a live editable document. Otherwise later prompt edits make history untraceable.
4.4 User work records
Works organize what the user sees: link jobs and assets, plus visibility and favorites.
A job is one processing run; a work is a manageable result. Splitting them covers multi-output jobs and failed jobs with no result.
5. Wallpaper waterfall: layout is not the only problem
Waterfall lists are hard because of pagination, size math, request order, and memory—not only staggered tiles.
5.1 Fetch width and height up front
List payloads should include image dimensions. The client can reserve height from column width before images load, reducing layout shift.
If size is known only after load, cards jump as the user scrolls.
5.2 Pagination needs a stable order
Sort keys must define a unique order—for example publish time plus a unique id.
For continuously updating lists, cursor pagination often reduces duplicates and gaps. Choose based on the database, sort, and scale—not a default recipe.
5.3 Stop stale requests from overwriting new filters
If the user switches categories quickly, an older request may return last. Without guards, it overwrites the current list.
Use a request sequence number or cancel obsolete requests. Only results that match the current query may update the UI.
5.4 Lazy load is not unbounded retention
Load near the viewport to cut initial traffic, but long lists still consume memory. Recycle off-screen items or use windowed rendering, and avoid decoding too many high-resolution images at once.
6. Intelligent image creation: turn a long flow into recoverable jobs
Upload, analyze, edit, generate looks like one interaction, but latency, failure modes, and cost differ at each step.
Uploads fail on network drops; analysis may return incomplete structure; generation can be slow or reject inputs.
Do not chain every step behind one long-lived client request.
6.1 Structure analysis output
Organize analysis by subject, composition, color, style, and background so users can inspect and edit.
Model descriptions can be wrong. The UI should allow edits rather than treat analysis as fact. Do not treat analysis as ground truth for identity, sensitive attributes, or consent.
Prompt UI can separate “keep” vs “change.” That clarifies intent; it does not guarantee the generator follows every item.
6.2 Explicit job states
Example:
Pending → running → succeeded
Pending → running → failed
Add canceled or timed-out if needed. Be explicit which states can change and which are terminal.
The client should read status from job queries, not only in-memory variables. Returning to the screen should restore the job list.
6.3 Retries and duplicate execution
A timeout does not mean the job never landed. Another generate click can duplicate work and cost.
The backend should detect duplicates with a business request id. For unclear external calls, query existing jobs or results before retrying. Do not auto-retry every error with a new generation.
6.4 Quota needs atomicity
“Read balance then decrement” can overspend under concurrency. Reservation, job creation, and release on failure need a consistent design—transactions, conditional updates, or an explicit compensation path, depending on storage.
7. Human–model collaboration: agree contracts, then generate by module
Effective assistance is a checkable cadence, not “generate the whole repo.”
Step 1: Design first, code later
Ask for modules, data structures, call graph, security boundaries, and open questions.
Review for missing permissions, failure paths, and environment constraints. A complete architecture narrative does not mean every detail fits your stack.
Step 2: Freeze API contracts
Each API needs inputs, outputs, identity rules, business errors, and side effects.
Creating a generation job should state not only that a job id is returned, but how duplicates are handled, how insufficient quota is returned, and whether a record is created when asset ownership checks fail.
Step 3: Implement the smallest closed loop
Ship one full path, then expand. After each module, build, run, and test so issues do not pile up until the end.
Step 4: Require explainable change scope
Have the model list files touched, why, and whether existing APIs change. Developers must review permission and schema changes.
This reduces “lots of plausible code that does not work together.”
8. Security, review, and cost: do not skip before launch
Image apps hold user data and content risk. Before launch, at least:
Uploads: the server still validates type, size, and ownership. Do not trust extensions or client-supplied metadata.
Access: private assets need authorization. Temporary credentials should expire with the use case so sensitive images are not exposed for long.
Model calls: limit input size, concurrency, and repeats; log status and failures. Logs should not store long-lived credentials or unnecessary sensitive content.
Governance: define review for upload, generation, and public display. Personal viewing is not the same as public distribution.
Copyright: state source and allowed use. User uploads and generated outputs are not automatically full commercial rights.
Cost: watch storage, image delivery, model calls, and backend compute separately. Add quota, rate limits, and alerts early—not after a bill spike.
9. How to tell if the development experience actually improved
“It runs” is only a start. Under similar tasks and the same acceptance bar, record:
- time from locked requirements to first runnable loop;
- how much of the first generation needed human edits;
- count of contract mismatches between front and back;
- defects found in test and regressions after fix;
- how many modules a new requirement touches;
- coverage of permissions, recovery, and logging.
Tests should include happy path, invalid input, unauthorized access, network interruption, duplicate submit, job failure, and continuous pagination. For long generation, also verify recovery after leaving the page.
Without that evidence, one successful preview does not show that assistance lowered total cost.
10. Closing: models expand throughput; engineering methods decide quality
The useful direction for LLM-assisted development is connecting requirements breakdown, design discussion, coding, and diagnosis—not only faster code.
It does not replace developer judgment on product boundaries, security, and acceptance. For uploads, generation, and user content, permissions, job consistency, content governance, and cost often matter more for launch quality than visual polish.
A reliable path: lock requirements, then review architecture; agree contracts, then implement by module; verify, then release gradually. Put the model inside that process so assistance moves from throwaway prototypes to maintainable, traceable, sustainable delivery.
