Vibe Coding with Next-Gen LLMs: A Full-Stack Practice from Requirements to Deployment
The paradigm of AI-assisted development is shifting from simple code completion to full-system planning. This article explores a real-world project using next-generation large language models (LLMs) to build a mini-program featuring wallpaper browsing and AI image capabilities. It details the full workflow—from defining product requirements and outputting a complete technical architecture to module-by-module code generation and deployment. The article also shares practical experiences and advice on how developers can restructure their workflows to collaborate with LLMs as architectural partners rather than just coding tools.
1. From “Code Completion” to “System Planning”: The Paradigm is Shifting
In the past, the most common use case for AI programming assistants was asking them to “write a carousel” or “implement a pagination API.” The model would return a code snippet, and the remaining assembly, debugging, and troubleshooting still relied entirely on the developer. Models at this stage were essentially advanced code snippet generators, with their value ceiling determined by the developer’s own architectural skills.
With next-generation LLMs improving in long-context understanding, multi-file project generation, and task planning, the collaboration paradigm has undergone a qualitative shift. You no longer ask, “How do I write this code?” Instead, you present a complete product requirement, let the model propose a technical solution first, and then implement it module by module. I recently validated this path with a real project—building a mini-program from scratch that includes wallpaper browsing and AI image capabilities, using an LLM as the core collaborator from architectural design to deployment preview.
The core conclusion is: When a model possesses the ability to “plan first, implement later,” it truly upgrades from a tool to a colleague.
2. Step 1: Let the Model Output a Complete Technical Architecture
In this practice, my input to the model was not a requirement for a specific function, but a product-level description: build a WeChat mini-program that includes a wallpaper waterfall layout, categorized browsing, user upload management, and integrated AI capabilities—supporting image analysis, prompt editing, image-to-image generation, and one-click outfit changing.
The model’s first output was not code, but a complete technical proposal:
1. Frontend Selection
- Use the native mini-program development framework to ensure unobstructed performance and platform API access.
- The page structure is planned into three main tabs: Home (Wallpaper Browsing), AI Creation, and Profile.
- Core interactive components include a waterfall layout, image preview, and upload management.
2. Backend and Infrastructure Selection
- Adopt a serverless cloud development model (cloud database, cloud functions, cloud storage) to eliminate self-hosted server and maintenance costs.
- Database collections are split by business domain: wallpaper metadata table, user behavior table, and generation task table.
- Cloud functions are divided following the “high cohesion” principle: content query, file processing, and AI gateway operate independently.
3. AI Capability Selection
This step best reflects the model’s “architect perspective.” It did not vaguely say “integrate a large model,” but split it by capability dimensions:
- Image understanding: Select a visual understanding model to analyze the main style, visual details, and background atmosphere of the uploaded image.
- Text generation: Select a text model to optimize and expand prompts.
- Image generation: Select an image generation model for image-to-image generation and outfit changing effects.
This approach of “splitting models by task, each performing its own duties” is exactly the standard practice for senior engineers doing AI application architecture. The capability boundaries of understanding models and generative models are different; mixing them will lead to uncontrollable results and costs.
3. Step 2: Module-by-Module Generation, Implementing the Architecture
After confirming the architecture, we enter the module-by-module implementation phase. Here are the implementation highlights for several key modules:
1. Wallpaper Gallery Module
- Cloud database design: Establish index fields by category, tag, and resolution to support filtered queries.
- Cloud function implements pagination queries and category filtering to avoid pulling all data at once.
- The frontend waterfall component encapsulates lazy loading logic: triggering on reaching the bottom, pre-loading buffer, and image placeholders. The first-screen experience is significantly better than pulling all data via a naive
wx.request.
The schematic pagination query logic is roughly as follows:
// Cloud Function: Paginated wallpaper list retrievalexports.main = async (event) => {const { category, page, pageSize } = eventconst where = category ? { category } : {}return await db.collection('wallpapers').where(where).orderBy('createdAt', 'desc').skip(page * pageSize).limit(pageSize).get()}
2. Upload Management Module
- The client performs image compression first (controlling resolution and quality parameters) to reduce upstream traffic and storage costs.
- Upload securely using the temporary credential mechanism of cloud storage to avoid hardcoding long-term keys on the client side.
- After the upload is complete, a cloud function callback writes the metadata to ensure consistency between data and files.
3. AI Image Generation Module
This is the core link of the entire project, with the following flow: Upload -> AI Analysis -> Prompt Editing -> Image Generation.
User uploads image -> Compress -> Cloud function forwards to visual model↓Returns three-dimensional description (subject/details/atmosphere), highlighting key elements↓Text model optimizes prompt -> User can edit -> Submit for image generation↓Generated results support: Save, Regenerate, Continue Editing
In this chain, the model not only generated the invocation logic but also handled numerous engineering details: asynchronous task polling and timeout fallback, generation failure retries, and user-friendly error code prompts.
4. Real-World Experience: Generating 30+ Files at Once, But Not “Zero-Human”
The quantitative takeaway from the entire project: a single session produced over 30 files. The structure was complete, the code was directly runnable, and no fatal bugs occurred. Compared to the early experience of “generating a code snippet and getting three errors,” this is a leap forward.
However, it must be emphasized that the premise of high-efficiency output is a high-quality collaboration method. I summarized three key takeaways:
- Productize your requirement descriptions, don’t just provide snippets. Rather than saying “write an upload feature,” fully explain the upload scenario, file types, size limits, and failure handling. The model’s ability to utilize complete context is far greater than before.
- Architecture first, manual confirmation. Let the model output the proposal before writing code, and have humans review the rationality of the technical selection. Ten minutes of review at this step can prevent hours of rework later.
- Proceed module by module, verify promptly. Do not attempt to generate the entire project in one sentence. Iterating by module and verifying each step makes the rhythm more controllable.
5. Advice for Developers: Restructure Your Workflow Instead of Being Anxious
Watching the rapid iteration of model capabilities, many developers feel anxious. But this practice made me realize that the correct response is not to compete with the model on typing speed, but to restructure your own workflow:
- Use the model as an architect, not just a completion tool—solution first, code later.
- Shift your focus upstream to requirement definition, solution review, and quality assurance—these are precisely the parts hardest for models to replace.
- Build your own library of prompts and engineering templates—precipitate the best practices of collaborating with models into reusable assets.
The shift from “AI helps me write code” to “AI and I build systems together” has already happened. For developers, mastering this collaboration paradigm earlier will give you the initiative in the next stage of engineering practice. If conditions permit, try replicating a complete pipeline in a similar serverless environment—doing it yourself is far more convincing than reading any number of reviews.
