skills/stitch-skills/stitch-ui-prompt-architect/SKILL.md
Build Stitch-ready prompts from vague UI ideas (Path A) or from a Design Spec plus user request (Path B). Use when polishing a UI prompt before Stitch generation, improving a prompt that produced poor results, or merging a Design Spec with framework contracts (uView, Element Plus, Layui, Bootstrap, Vant) into a sectioned Context/Layout/Components prompt.
npx skillsauth add partme-ai/full-stack-skills stitch-ui-prompt-architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Constraint: Only use this skill when the user explicitly mentions "Stitch" or when orchestrating a Stitch design task.
This skill acts as a Senior UX Designer and Prompt Engineer. It supports two paths so that local behavior is strictly stronger than a single-path prompt skill:
stitch-ui-design-spec-generator) into a final sectioned Stitch prompt. Use when a structured spec already exists.When injecting framework contract prefix (Path B) or translating component keywords, prefer the following authoritative docs:
| Framework | Official / Guide | Components | Other | |-----------|------------------|------------|--------| | Bootstrap Vue 3 | bootstrap-vue.org · docs · Vue 3 | components | GitHub | | Element Plus | element-plus.org (zh-CN) | design · overview | GitHub | | Layui-Vue | layui-vue.com | guide · components | GitHub | | Vant (Vue 3) | vant-ui.github.io | Vant zh-CN | GitHub | | uView 2.0 (Vue 2) | uviewui.com | guide/demo · components | GitHub | | uView Pro (Vue 3) | uviewpro.cn | guide · components · tools · layout | — |
stitch-ui-design-spec-generator) and needs a final [Context]/[Layout]/[Components] prompt; or user requests a prompt for a named framework (uView, Element Plus, Layui, Bootstrap, Vant).Follow these steps to turn a vague idea into a Stitch-ready prompt.
Evaluate what's missing:
| Element | Check for | If missing... | |---------|-----------|---------------| | Platform | "web", "mobile", "desktop" | Add based on context or ask | | Page type | "landing page", "dashboard", "form" | Infer from description | | Structure | Numbered sections/components | Create logical page structure | | Visual style | Adjectives, mood, vibe | Add descriptors (see references/KEYWORDS.md) | | Colors | Specific values or roles | Add design system or suggest | | Components | UI-specific terms | Translate to proper keywords |
stitch-design-md skill."Descriptive Name (#hex) for functional role (e.g. "Deep Ocean Blue (#1a365d) for primary buttons").Structure the enhanced prompt as:
[One-line description of the page purpose and vibe]
**DESIGN SYSTEM (REQUIRED):**
- Platform: [Web/Mobile], [Desktop/Mobile]-first
- Theme: [Light/Dark], [style descriptors]
- Background: [Color description] (#hex)
- Primary Accent: [Color description] (#hex) for [role]
- Text Primary: [Color description] (#hex)
- [Additional design tokens...]
**Page Structure:**
1. **[Section]:** [Description]
2. **[Section]:** [Description]
...
Output options: Return as text; or if the user requests, write to next-prompt.md (for stitch-loop) or a custom file.
Use when you have a Design Spec (from stitch-ui-design-spec-generator) and a User Request.
deviceType, designMode, theme, styleKeywords, etc.Return a single prompt with:
[Context]
...
[Layout]
...
[Components]
...
1. Context & Style
Combine deviceType, designMode, theme, styleKeywords.
Example: "Mobile High-Fidelity login screen. Cyberpunk aesthetic. Dark mode with neon blue accents."
2. Design Contract Prefix (Hard Constraints)
If the user request includes a named style (e.g. "uview 风格"), prepend the corresponding contract to [Context]:
| Keyword | Use skill output as prefix |
|---------|----------------------------|
| uview-pro, uviewpro | stitch-ui-design-spec-uviewpro |
| uview, uview2 | stitch-ui-design-spec-uview |
| element, element-plus | stitch-ui-design-spec-element-plus |
| vant, vant4 | stitch-ui-design-spec-vant |
| layui, layui-vue | stitch-ui-design-spec-layui |
| bootstrap, bs-vue | stitch-ui-design-spec-bootstrap |
3. Contract Selection JSON
When a named design system is present, generate CONTRACT_SELECTION_JSON_V1 to decide which component contracts and UI state snippets to inject (include only what the current screen needs). Schema: version, designSystem, mode, contracts.include, states.include.
4. Layout Structure
5. Component Details
Translate requirements into UI components (e.g. "Login" → Inputs, Primary Button, Forgot Pass link).
6. Content
Use specific copy (e.g. "Welcome back, Agent") instead of placeholder "Text".
Input: "make me a login page"
Output:
A clean, trustworthy login page with a centered form and subtle branding.
**DESIGN SYSTEM (REQUIRED):**
- Platform: Web, Desktop-first
- Theme: Light, minimal, professional
- Background: Clean White (#ffffff)
- Surface: Soft Gray (#f9fafb) for form card
- Primary Accent: Deep Blue (#2563eb) for submit button and links
- Text Primary: Near Black (#111827) for headings
- Text Secondary: Medium Gray (#6b7280) for labels
- Buttons: Subtly rounded (8px), full-width on form
- Cards: Gently rounded (12px), soft shadow for elevation
**Page Structure:**
1. **Header:** Minimal logo, centered
2. **Login Card:** Centered form with email, password fields, "Forgot password?" link
3. **Submit Button:** Primary blue "Sign In" button
4. **Footer:** "Don't have an account? Sign up" link
"Mobile login screen for a Fintech App. Clean minimalist aesthetic. Light mode.
Layout: Center-aligned vertical stack.
Header: Brand logo 'PayFast' and 'Welcome' title.
Form: Input field for 'Email' with mail icon. Input field for 'Password' with eye toggle.
Actions: Full-width primary blue button 'Sign In'. 'Forgot Password?' link.
Footer: 'Create Account' link."
stitch-design-md) or inject framework contract (Path B).English: Stitch, prompt, enhance, vague, design spec, DESIGN.md, next-prompt, stitch-loop, uView, Element, Layui, Bootstrap, Vant.
中文关键词: Stitch、提示词、增强、模糊需求、设计规范、DESIGN.md、next-prompt、stitch-loop、uView、Element、Layui、Bootstrap、Vant。
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.