芸众原型助手
将本 Skill 作为芸众商城原型的统一入口。包内已包含 Router、后台原型规则、前台原型规则、运行时 Starter 与统一工作区契约。
1. 先路由,再设计
- Read
references/路由/decision-flow.mdandreferences/路由/scope-routing.md. - Classify the requirement from actor, goal, operation, and surface as:
-BACKEND_ONLY
-FRONTEND_ONLY
-BOTH
-NO_PROTOTYPE_REQUIRED - For
BOTH, also readreferences/路由/requirement-decomposition.mdandreferences/路由/shared-domain-rules.mdbefore designing either surface. - Record every atomic requirement in a coverage matrix. System/API/database/queue/native-SDK work is not automatically UI.
2. 后台子模式
For BACKEND_ONLY, or the backend work package of BOTH:
- Read
references/后台/entry.mdas the backend sub-mode entry. - Follow its progressive-loading instructions, but resolve all backend reference paths inside
references/后台/. - Use
assets/后台/prototype-starter/when a standalone admin runtime is useful. - Backend visual and interaction rules come only from the bundled backend references.
Backend scope includes Laravel/芸众 administration, plugin management, lists, forms, details, settings, workflows, records, logs, exports, permissions, and operator-facing actions.
Do not use backend UI patterns for H5/App/WebView storefront pages.
3. 前台子模式
For FRONTEND_ONLY, or the frontend work package of BOTH:
- Read
references/前台/entry.mdas the frontend sub-mode entry. - Follow its progressive-loading instructions, but resolve all frontend reference paths inside
references/前台/. - Use
assets/前台/prototype-starter/when a standalone mobile runtime is useful. - Frontend visual and interaction rules come only from the bundled frontend references.
Frontend scope includes customer-facing H5/App WebView/Mini Program WebView mall surfaces, goods, cart, checkout, orders, member flows, DIY pages, campaigns, plugin pages/extensions, and platform-capability mocks.
Do not use frontend mobile patterns for administration surfaces.
4. 前后台联动模式
For a cross-end requirement:
- Build a shared domain contract first: vocabulary, objects, fields, states, actions, transitions, and dependencies.
- Split responsibilities into:
- Shared domain
- Backend responsibilities
- Frontend responsibilities
- System/non-UI responsibilities - Apply Backend mode only to the backend package.
- Apply Frontend mode only to the frontend package.
- Read
references/路由/cross-end-consistency.mdand verify terminology, state names, fields, role semantics, and action availability across both prototypes. - Assemble the result using
references/路由/output-contract.mdand, when useful,assets/工作区/workspace-starter/. - Never visually merge desktop admin and mobile storefront into one design system. A unified launcher may link them as separate surfaces.
5. 无需原型模式
If the request is purely non-UI work such as queue optimization, database migration, API refactor, background synchronization, deployment, or algorithm changes:
- Return
NO_PROTOTYPE_REQUIREDwith the routing evidence. - List the non-UI responsibilities.
- Generate UI only for explicitly requested configuration, searchable records, monitoring, exception handling, or manual operations.
6. Output contract
For generated prototypes:
- Keep one coherent entry point.
- Use local assets; avoid CDN dependencies unless the user explicitly asks otherwise.
- Make simulated data and simulated system/native behavior explicit.
- Include requirement summary, scope verdict, IA/page map, assumptions, interactions, coverage, and limitations.
- For
BOTH, include shared domain and cross-end flow/consistency notes. - Prefer independently runnable static prototypes.
Read references/路由/output-contract.md for detailed workspace rules.
7. Validation
Before delivery:
- Read
references/路由/validation-rules.md. - Verify every atomic requirement is
COVERED,PARTIAL,NON_UI,OUT_OF_SCOPE, orUNVERIFIED. - Validate local HTML/CSS/JS/JSON paths and syntax.
- When browser automation is available, test page load, console, navigation, interactions, states, and screenshots at the appropriate desktop/mobile viewport.
- Do not claim real API, database, auth, payment, queue, upload, or native bridge behavior unless actually implemented.
- For
BOTH, run cross-end state/data consistency checks.
8. Isolation invariants
- Backend tokens/layout/components never become frontend defaults.
- Frontend dynamic theme/DIY/mobile patterns never become backend defaults.
- Shared domain rules define business semantics, not UI styling.
- Campaign styling stays scoped to campaigns.
- Legacy backend/frontend patterns remain excluded according to their respective
legacy-boundary.mdfiles. - Do not invent a third unified design system.
9. Escalation
Read references/路由/escalation-rules.md only when scope remains materially ambiguous, a backend/frontend boundary is crossed, or validation reveals a reusable rule defect.