stitch::generate-design
ما الذي تفعله
تولّد هذه المهارة شاشات تطبيقات أو مواقع في Google Stitch وتعدّلها، انطلاقاً من أوصاف مكتوبة أو صور. وهي مناسبة للمصممين وفرق المنتجات الذين يريدون نماذج شاشات سريعة.
متى تستخدمها
- ✓عندما تريد توليد شاشة تطبيق أو موقع جديدة من وصف.
- ✓عندما تريد تغيير شاشة موجودة في Stitch بتعليمات واضحة.
- ✓عندما تريد عدة بدائل تصميمية لمقارنتها.
رابط المهارة
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/generate-design/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ شاشة Stitch لصفحة رئيسية لتطبيق متابعة اللياقة على الهاتف، بتخطيط نظيف وعصري.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تعيد المهارة كتابة طلبك بمصطلحات تصميم دقيقة، وتتحقق من نظام التصميم في مشروعك، ثم تطلب من Stitch توليد الشاشة أو تعديلها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Generate Design
Create new design screens from text descriptions, images, or mockups, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP.
[!NOTE] Refer to your system prompt for instruction on handling MCP tool prefixes for all tools mentioned in this skill (e.g.,
list_projects,generate_screen_from_text,edit_screens).
🎨 Prompt Enhancement Pipeline
Before calling any Stitch generation or editing tool, you MUST enhance the user's prompt.
1. Analyze Context
- Project: Use
list_projectsto find the correctprojectId. If no suitable project exists, create one usingcreate_project. - Design System: Check if a design system exists for the project via
list_design_systems. If one exists, design tokens (colors, fonts, roundness) are already applied at the project level — do NOT include any color, font, or theme instructions in the generation prompt. If none exists, delegate to the manage-design-system skill first before generating screens.
2. Refine UI/UX Terminology
Consult Design Mappings to replace vague terms.
- Vague: "Make a nice header"
- Professional: "Sticky navigation bar with glassmorphism effect and centered logo"
Use Prompting Keywords for component names, adjective palettes, color roles, and shape descriptions.
3. Structure the Final Prompt
Format the enhanced prompt for Stitch. Focus exclusively on layout, content, and structure — never include colors, fonts, or theme instructions (these are handled by the manage-design-system skill at the project level).
For new screens, use this template:
[Overall purpose and user intent of the page]
**PLATFORM:** [Web/Mobile], [Desktop/Mobile]-first
**PAGE STRUCTURE:**
1. **Header:** [Description of navigation and branding]
2. **Hero Section:** [Headline, subtext, and primary CTA]
3. **Primary Content Area:** [Detailed component breakdown]
4. **Footer:** [Links and copyright information]
For edits, be specific about what to change:
- Location: "Change the [primary button] in the [hero section]..."
- Visuals: "...to a darker blue (#004080) and add a subtle shadow."
- Structure: "Add a secondary button next to the primary one with the text 'Learn More'."
[!CAUTION] Do NOT include hex codes, font names, color palettes, roundness values, or any design system tokens in a generation prompt. These are applied at the project level by the manage-design-system skill and will conflict if duplicated. (For edit prompts, hex codes are acceptable for precise color adjustments.)
4. Present AI Insights
After any tool call, always surface the outputComponents (Text Description and
Suggestions) to the user.
See examples/enhanced-prompt.md for a full before/after prompt enhancement example.
Steps
Determine the Mode
Decide which flow to use based on the user's request:
- User wants to create from a text description → Generate from Text flow
- User provides an image, screenshot, or mockup → Generate from Image flow
- User wants to modify an existing screen → Edit flow
- User wants layout/color/content variations → Generate Variants flow
Generate from Text Flow (New Screen)
1. Enhance the User Prompt
Apply the Prompt Enhancement Pipeline above.
2. Identify the Project
Use list_projects to find the correct projectId if it is not already known.
3. Generate the Screen
Call the generate_screen_from_text tool with the enhanced prompt and the
designSystem ID (if found in Step 1).
{
"projectId": "...",
"prompt": "[Your Enhanced Prompt]",
"designSystem": "assets/...", // Optional: Pass if found in Step 1
"deviceType": "DESKTOP" // Options: MOBILE, DESKTOP, TABLET
}
4. Present AI Feedback
Always show the text description and suggestions from outputComponents to the
user.
5. Download Design Assets
After generation, download the HTML and screenshot urls from outputComponents
to the .stitch/designs directory.
- Naming: Use the screen ID or a descriptive slug for the filename.
- Tools: Use
curl -oviarun_commandor similar. - Directory: Ensure
.stitch/designsexists.
6. Review and Refine
- If th
الأسئلة الشائعة
هل تختار الألوان نيابة عني؟
إذا كان للمشروع نظام تصميم، تأتي الألوان والخطوط منه، لذلك لا يذكرها الطلب.
ماذا لو لم يكن هناك نظام تصميم؟
ترسلك المهارة إلى مهارة نظام التصميم لإنشائه قبل توليد الشاشات.
هل أستطيع البدء من صورة؟
نعم، تستطيع المهارة توليد شاشات جديدة من نص أو من صور.
التفاصيل
الوصف الأصلي من المؤلف
Generate new screens from text prompts or images, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional UI/UX terminology, design tokens and theme system capabilities.
الشعبية
- نجوم GitHub
- 8.7k
- الترتيب
- #12344
- الترخيص
- Apache-2.0
- آخر تحديث
- 17/8/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
stitch::react-components
8.7kيساعد وكيلك على تحويل تصاميم Stitch إلى مكونات React وVite، أو تحديث المكونات الموجودة لتطابق أحدث تصميم، مع فحوص للجودة.
stitch::react-native
8.7kيساعد وكيلك على تحويل تصاميم Stitch للويب إلى مكونات React Native لتطبيقات الهاتف، أو تحديث شاشات الجوال الموجودة لتطابق تصميماً أحدث.
react-vite-dashboard
8.7kيساعد وكيلك على بناء لوحات تحكم React وVite كثيفة البيانات من تصاميم Stitch، مع TanStack Query ورموز تصميم من ملف DESIGN.md.
shadcn-ui
8.7kيساعد وكيلك على إيجاد مكونات shadcn/ui وتثبيتها وتخصيصها، وهي أجزاء واجهة جاهزة تُنسخ إلى المشروع ومبنية على Radix أو Base UI وTailwind CSS.
مهارات مشابهة
canvas
394kيتيح لوكيلك عرض أداة مرئية مستضافة على لوحة Mac متصلة، ثم إخفاء اللوحة أو نقلها إلى صفحة أخرى.
control-ui
394kيساعد وكيلك على تنظيم واجهة OpenClaw Control UI واستكشاف أخطائها، بما في ذلك الجلسات ولوحات المعلومات وبوابات Gateway المتصلة.
diagram-maker
394kيساعد وكيلك على إنشاء مخططات واضحة بصيغة SVG أو HTML أو Excalidraw قابلة للتعديل، للعمليات وبنية الأنظمة والرسومات على السبورة.