Building a Mobile AI Comic Drama App in 8 Days: An Engineering Practice Retrospective

    This article walks through how an MVP for a mobile-first AI comic drama app was built in about eight calendar days. It covers the six-stage generation pipeline, the three-layer approach to character consistency, what AI coding tools handled well and where they failed, and the engineering checklist behind task orchestration, idempotency, storage, and cost control. Readers will get a practical view of the architecture decisions and the current capability boundaries of AI coding tools in real projects.

    1. Project Background and Goals

    AIGC content formats are evolving quickly, and comic drama (storyboarded comic panels plus voiceover plus dynamic camera moves) is emerging as a lightweight narrative medium sitting between illustrated text and long-form video. Its production chain is long and involves many roles, which makes it a natural fit for decomposition into a multi-stage content generation pipeline.

    The goal I set for myself was clear: build an MVP that supports the entire creative workflow on a phone, not another web console that only works in a desktop browser. There were three core requirements:

    1. Mobile first: the creation entry point must live on the phone and support output in short bursts of spare time;
    2. End-to-end loop: users go from idea to finished cut without leaving the app;
    3. Configurable and extensible: the number of characters, the number of scenes, and shot pacing are all user-adjustable.

    The actual investment was about eight calendar days (including a holiday), and the result was a runnable minimum viable version. The point of this article is not to show off, but to review the engineering decisions and discuss where current AI coding tools stand in the AI Coding space.

    2. Overall Architecture: Turning Creation into a Pipeline

    The whole chain abstracts into six stages. Each stage is an independent model call, and stages are connected through structured data:

    1. Idea input
    2. → Script structuring (acts / scenes / dialogue)
    3. → Character and scene asset generation (text settings + reference images)
    4. → Storyboard breakdown (shots, shot size, duration)
    5. → Storyboard image generation (with character reference constraints)
    6. → Storyboard video generation (image-to-video)
    7. → Composition and export (stitching, voiceover, subtitles)

    The most important engineering judgment here is: do not cram multimodal generation into a single “mega prompt.” There are three reasons:

    • A single call has limited context, and a slightly long script gets truncated;
    • Failures cannot be localized, so retries are expensive;
    • Partial regeneration is impossible (a user may only want to change the third shot).

    So I went with a “staged approach plus structured intermediate artifacts” design. Each stage outputs JSON, which is persisted before the next stage begins. The benefit is that any stage can be rerun on its own, and it also leaves room to add human intervention later.

    3. Character Consistency: The Technical Core of the Project

    The most off-putting problem in comic drama is characters “changing faces every episode.” My solution stacks three layers: reference assets + prompt constraints + parameterized configuration.

    1. Characters as Assets

    A character is not a block of descriptive text but an asset object: it contains appearance settings, personality tags, costume details, and one or more reference images. Every later image generation involving that character carries the same reference input.

    1. {
    2. "character_id": "c_001",
    3. "name": "Lin Zhao",
    4. "appearance": "short hair, dark gray trench coat, a faint scar on the left eyebrow",
    5. "reference_images": ["oss://assets/c_001/front.png"],
    6. "style_lock": "Japanese cel shading, cool color palette"
    7. }

    2. Locking Both Style and Camera Language

    Beyond character references, I fix the global art style description and the camera language (shot size, angle, light position) to keep the model from drifting between storyboards. In practice, style drift hurts the viewing experience more than face drift, so the style lock has higher priority.

    3. Consistency Is a Tunable Parameter, Not Magic

    I set the default number of scene slots to 7 and the default number of character slots to 2, and exposed all of them as configurable. More slots make consistency harder to maintain and increase time and cost, so letting users trade off between “richness” and “stability” is a more honest product design.

    4. Building with AI Coding Tools: Practice and Boundaries

    The combination I chose was an AI coding tool on the terminal side plus a large language model service from a cloud vendor. The overall experience can be summed up as “scaffolding is extremely fast, business logic needs supervision.”

    1. What It Is Good At

    • Generating templated code such as project skeletons, routing, state management, and API wrappers;
    • Writing data models and field mappings between frontend and backend;
    • Adding tests, writing type definitions, and doing simple refactoring.

    2. Where It Tends to Slip

    • Long-chain state machines: state transitions across multi-stage tasks easily miss branches;
    • Async and failure recovery: details like timeouts, retries, and idempotency often need manual backstops;
    • Implicit cross-module conventions: when the model cannot see global conventions, it invents its own naming and structures.

    My way of dealing with this is to write constraints into a spec file inside the project and enforce “interface definitions first, implementation second,” so the tool works under an explicit contract.

    3. An Unexpected Takeaway on Cost Control

    The model consumption across the entire development and debugging phase came out to roughly the equivalent of twenty Chinese yuan, and it even coincided with a promotional credit grant. This suggests that the marginal cost at the MVP stage is already low enough to ignore; the real cost is trial-and-error time and requirement clarification.

    5. Engineering Details Checklist

    • Task orchestration: each stage runs as an async task, with the frontend polling or subscribing to progress;
    • Idempotency design: use “project + stage + shot ID” as the idempotency key to avoid duplicate charges;
    • Artifact storage: images and videos all go to object storage, and the database stores only metadata and references;
    • Failure degradation: a single failed shot does not block the whole piece; it can be skipped with a placeholder;
    • Observability: log the duration, tokens, and failure reason of every call to support cost accounting;
    • Mobile adaptation: long tasks run in the background, while the foreground handles only lightweight interaction and preview.

    6. Lessons Learned

    The core of shipping an MVP in 8 days was not how strong the model is, but breaking the creative workflow into fine enough stages. Staging makes failures controllable, assetization makes consistency reproducible, and parameterization leaves room for product tradeoffs. As for AI coding tools, they can multiply your implementation speed several times over, but architecture judgment, boundary conditions, and cost control still have to be owned by the developer. The next step is to add finer-grained shot editing and team collaboration, moving from “can generate” to “creates well.”