Agent Design Skill Upgrade: A Full Workflow for Mini Program Prototypes
This article walks through a recent upgrade to an agent design skill that adds mini program support. It explains how the skill proposes three distinct design directions before refinement, why mini programs cannot reuse mobile app design templates, how three common scenarios were validated end to end, and how structured page descriptions turn prototypes into real project skeletons. It also covers categorized testing, display improvements, and upgrade and adoption recommendations.
1. Background: Turning Frequent Feedback into Requirements
A design skill for agents rarely iterates in quick succession because the roadmap was finished early. More often, the previous release exposed a clear capability gap. Before this iteration, users raised two recurring issues: first, whether the skill could cover the mini program format and produce designs that match the visual conventions of that ecosystem; second, how environments that had already installed the skill could update to the new version without repeating configuration.
These two issues sit at different levels. The first is a question of capability boundaries; the second is a distribution and operations problem. The sensible response is not a set of scattered patches but an abstraction of the gap into one complete chain: design output must fit the real constraints of the target platform, the output must be consumable by downstream tools, and the result must be runnable and verifiable. This iteration follows that chain and focuses on three parts: a new mini program design module, a delivery path from prototype to a real mini program project, and an expanded prototype test set organized by app store category with an improved way of presenting results.
2. How the Design Skill Works: Propose First, Then Refine
The essence of this kind of skill is to insert a structured design decision step between the agent and the user. The user provides a single natural language requirement, and the skill first generates three clearly differentiated design directions in parallel for selection, then refines the chosen one. This mechanism addresses a typical pain point of generative design: when a single solution is produced at once, users can usually only accept it passively or reject it entirely, which makes communication expensive. Parallel multi-direction proposals move the review point earlier, so preferences can be expressed at a low-cost stage.
From an engineering perspective, the mechanism involves three key constraints. First, the directions must differ substantively rather than being color variations of the same solution, usually across three dimensions: information architecture, navigation pattern, and visual language. Second, the proposal stage should stay low fidelity to avoid locking in details too early and causing rework. Third, after selection the process enters an interactive refinement stage, and the output must have a real clickable interface structure rather than a stack of static images.
In terms of coverage, this kind of skill generally supports interactive prototypes for mobile apps and web pages, mini program interfaces, presentation slides (exportable as editable presentation formats), motion effects (exportable as common video and animated image formats), infographics and data visualization, social graphics and covers, app store promotional images, and expert review of existing designs. For runtime, any agent that supports skill loading can use it, including AI coding tools, plugin-style harness forms, and domestic or office-oriented agents. Some personal assistant products support skills differently, but the integration approach is largely the same: provide the skill description text to the agent.
3. Why Mini Programs Cannot Copy Mobile App Design
Mini programs run inside super app ecosystems, and their interaction assumptions differ structurally from those of standalone apps. Applying mobile app design templates directly almost inevitably causes problems.
The first issue is the ever-present capsule control. It occupies the top-right corner of the page at a fixed position and cannot be moved, which directly reduces the usable width of the navigation bar. The title, back entry, and action buttons must be rearranged within the remaining space, long titles need a truncation strategy, and custom actions on the right must avoid the capsule area.
The second issue is entry diversity. Users usually do not arrive from a home screen icon but from a shared card in a group chat, an offline QR code, a search result, or a history list. This means the first screen must answer who this is, what it can do for the user, and what the next action is, without relying on multi-screen onboarding. The primary entry source should be identified before design, because it determines first-screen information priority and the form of the landing page.
The third issue is short paths and weak retention. Users come, finish, and leave, so the core action must be completed within one or two steps, and form fields, payment steps, and authorization pop-ups all need to be reduced.
The fourth issue is engineering constraints. There are upper limits on subpackage and main package size, shared cards have a fixed aspect ratio, and the bottom tab bar is usually limited to two to five items. These are not style preferences but hard specifications that must be included at the design stage; otherwise the only option later is to discard and redo the work.
The new mini program module is therefore modeled on currently published specifications: capsule position and navigation bar height, a tab bar of two to five items, a 5:4 share card ratio, and the main package size limit. It also requires each design direction to first state the primary opening scenario before expanding into page structure.
4. Validation Across Three Typical Scenarios
To test whether the method works, three high-frequency mini program scenarios can be used for end-to-end validation: ordering at a community coffee shop, booking a court at a badminton venue, and signing up for a city hiking event. They correspond to a product type, a resource time-slot type, and an event form type, and the information structures they cover differ considerably.
The ordering scenario centers on menu browsing and cart efficiency and must handle category switching, option selection, and store and pickup time. The court booking scenario centers on time-slot visualization and conflict resolution and needs a calendar, a time-slot grid, and availability status. The signup scenario centers on information collection and credential delivery and needs form validation, remaining capacity, and display of the signup credential. For each scenario, three directions are produced first, then a clickable flow is completed for the selected direction, which readily exposes gaps in navigation and state design.
5. From Prototype to a Real Project
A prototype has engineering value only if downstream tools can consume it. A workable approach is to have the skill output a structured page description and style tokens, then have an AI coding tool generate the corresponding project skeleton, including page routing, component breakdown, state management, and API placeholders. For example:
{"page": "pages/order/index","nav": { "title": "Order", "customRight": false },"tabBar": ["Home", "Orders", "Profile"],"tokens": { "primary": "#1F6FEB", "radius": 8, "gap": 12 },"components": ["CategoryTabs", "GoodsList", "CartBar"]}
With a minimal project structure:
app.json # page registration, window and tab bar configurationpages/order/ # page logic, template and stylescomponents/ # reusable business componentsutils/request.js # API and error handling placeholders
Three points also need attention on the engineering side: control main package size by moving low-frequency pages into subpackages; cache first-screen data locally and use skeleton screens to reduce the impact of weak networks; and parse share card and QR code landing parameters uniformly through route parameters so that state stays consistent across different entry points.
6. Categorized Testing and Display Improvements
Expanding the test set by app store category is about coverage. Categories such as tools, social, health, education, travel, and finance differ markedly in information density, permission sensitivity, and compliance requirements, so category-based sampling is more likely than random sampling to reveal systematic defects. The display improvements focus on readability: consistent artboard sizes, annotations of key interactions, and side-by-side previews of multiple screens so reviewers can quickly compare directions.
7. Upgrade and Adoption Recommendations
For environments that already have the skill installed, the update is usually to run the installation command once more to overwrite the old version, with no need to reconfigure the environment. Adoption recommendations: state the target platform and primary entry in the requirement description; review only direction differences at the proposal stage without getting stuck on details; request interactive refinement after confirmation; deliver the structured description and project skeleton together; and finally verify capsule avoidance, tab bar count, and share card ratio on real devices under weak network conditions. Following this process noticeably reduces the rework rate from mini program design to a runnable implementation.
