شو يعني «برومبت واحد» بالضبط
الخمس أشياء اللي بالبوست حقيقية: كل وحدة بناها Claude Fable 5.2 من رسالة وحدة، وما حدا عدّل الكود بإيده. بس «برومبت واحد» مش معناها «أول محاولة».
| البناء | شو هو بالكود | حجم الملف |
|---|---|---|
| كرة الثلج | shader واحد بـ WebGL | 927 سطر · 34 KB |
| روبوت الصلصال | shader بـ WebGL على مرحلتين | 939 سطر · 43 KB |
| لعبة السباق | canvas واحد مع JavaScript عادي | 1,385 سطر · 95 KB |
| المدينة بالليل | WebGL بدون مكتبات | 1,068 سطر · 50 KB |
| موقع المحمصة | HTML مع CSS وJavaScript | 1,359 سطر · 81 KB |
نفس البرومبت بيعطي نتيجة غير حسب وين بتلصقه. اختار الطريق قبل ما تبدأ.
وين تشغّلهم: الشات ولا Claude Code؟
الطريق الأول: شات Claude
- افتح محادثة جديدة، ومن قائمة الموديلات اختار Fable 5.2 (إذا متاح بخطتك، الجدول تحت).
- الصق البرومبت وابعته. الصفحة بتطلع كـ artifact جنب المحادثة. ما طلعت؟ الإعدادات ← Capabilities ← فعّل Code execution and file creation.
- بدك الملف عندك؟ اكبس Copy فوق الـ artifact، الصق الكود بملف جديد سمّيه
index.html، وافتحه بالمتصفح. - طلع خطأ؟ زر Try fixing with Claude جنب الخطأ بيجهّزلك رسالة فيها تفاصيله، ابعتها. وإذا الشكل مش عاجبك: خد screenshot والصقه بالمحادثة مع جملة «هيك طلعت، صلّح كذا».
الطريق الثاني: Claude Code
اعمل مجلد فاضي لكل بناء، وشغّل Claude جوّاه على Fable:
mkdir snow-globe
cd snow-globe
claude --model fable
- الاسم المختصر
fableبيفتح Fable 5.2 من نسخة 2.1.321 وطالع. نسختك أقدم؟claude update. وجوّا الجلسة:/model fable. - الصق البرومبت، وبعده السطر اللي بيفرق، وابعت.
- كيف بياخد screenshot؟ عندي كل واحد كتب سكربت صغير بـ Playwright بيفتح الملف بمتصفح بدون شاشة وبيحفظ صورة PNG، وبعدها قرأ الصورة (Claude Code بيشوف ملفات PNG وJPEG فعلاً). ما عندك Playwright؟ قله «ثبّت اللي بتحتاجه لتاخد screenshot». والطريق الثاني: شغّله بـ
claude --chromeمع إضافة Claude in Chrome (نسخة 1.0.36 أو أحدث، ومش على WSL). - Shift + Tab بيبدّل وضع الصلاحيات. بوضع auto أو acceptEdits ما بيوقف يسألك على كل تعديل ملف، وهاد اللي بدك إياه لشغل ساعة.
- ما ثبّتت Claude Code لسا؟ دليل التثبيت بخمس خطوات.
وين Fable 5.2 متاح بخطتك
| الخطة | Fable 5.2 |
|---|---|
| Free | مش متاح. الـ artifacts نفسها متاحة، فبتقدر تجرّب البرومبت على الموديل اللي عندك، بس ما بوعدك بنفس النتيجة. |
| Pro | متاح، بس بيتحاسب من رصيد الاستخدام (usage credits)، مش من حد الخطة. |
| Max · Ultra | ضمن الخطة، لحد نص حدّك الأسبوعي. |
| Team · Enterprise | متاح حسب نوع المقعد وإعدادات المدير (المقاعد المميزة بـ Team إلها نفس النص). |
| الـ API | $8 لكل مليون توكن دخل و$40 لكل مليون توكن خرج. |
السطر اللي بيفرق
الصقه بعد أي برومبت من الخمسة:
Render it, take a screenshot of your own result, look at it honestly, and keep improving it at least twice until it looks like a finished product, not a test.
هاد السطر كان جزء من الطلب عندي. Claude ما سلّم من أول محاولة: شغّل الملف، أخد صورة، شاف وين النتيجة بتبين «تجربة»، وصلّح. وعاد الكرّة أكتر من مرة قبل ما يوقف.
بديل السطر للشات (مع screenshot للنتيجة):
هاي صورة للنتيجة زي ما طلعت عندي.
احكيلي بصراحة شو اللي مخلّيها تبين تجربة مش منتج جاهز، وصلّح أهم 3 أشياء.
رجّعلي الملف كامل بعد التعديل.
ونفس الفكرة بدليل Claude Code الرسمي: لا تكتفي بـ «خلصت»، اطلب منه الدليل: الأمر اللي شغّله ونتيجته، أو الـ screenshot.
تحت كل برومبت: شو طلع عندي فعلاً، وشو حدوده بصراحة.
كرة ثلج زجاج بتكسر الضوء
shader واحد بـ WebGL، بدون ولا مكتبة وبدون ولا صورة: كرة زجاج على قاعدة خشب، جوّاها بيت بشبابيك مضوية وشجرتين صنوبر و110 ندفة ثلج.
- التحكم: السحب بالماوس بيدوّر الكاميرا، والكبسة «بتهزّ» الكرة والثلج بيتطاير.
- بصراحة: الصورة اللي بالبوست مرندرة بجودة أعلى (36 عيّنة لكل بكسل مع عمق ميدان)، والصفحة الحية بتمشي بعيّنة وحدة، فبتبين أخشن شوي. والبيت والشجر أشكال بسيطة.
Build a single self-contained index.html (one WebGL fragment shader, no libraries, no network requests) that ray-marches a photoreal snow globe: a clear glass sphere on a turned dark-walnut base, sitting on a dark desk. Inside the glass: a tiny snowy hill with a small house whose windows glow warm amber, two little pine trees, and snowflakes drifting. Real glass: Fresnel reflection, refraction of what is inside and behind, a bright specular highlight, a soft contact shadow and a faint caustic glow on the desk. A soft teal rim light from the left, warm key light from the right, shallow depth-of-field feel, subtle film grain. Dragging the mouse orbits the camera a little; clicking 'shakes' the globe so the snow swirls.
روبوت صلصال بيتحرّك مثل الـ stop motion
shader بـ WebGL على مرحلتين: روبوت صلصال صغير عليه بصمات أصابع، واقف على لوح قص أخضر، وجنبه فتافيت صلصال وأداة نحت خشب.
- التحكم: بيتحرّك 12 فريم بالثانية زي الـ stop motion: بيلوّح وبيرمش، وبالكبسة بينط.
- بصراحة: الحركة الحية انفحصت عندي على رندر برمجي بس (بدون كرت شاشة)، فجرّبه على جهازك.
Build a single self-contained index.html (one WebGL fragment shader, no libraries, no network requests) that ray-marches a stop-motion CLAY scene: a small chubby clay robot (rounded body, round head with two dot eyes and a little antenna, stubby arms, one arm raised waving) standing on a green self-healing cutting mat with its printed grid. Everything must read as hand-made modelling clay: soft blended joints (smooth-union SDFs), thumbprint dents and tiny surface irregularities, slightly uneven colour, soft subsurface-like shading, a big soft studio key light with a gentle shadow, shallow depth of field so the mat blurs toward the back. A few clay crumbs and a wooden sculpting tool lie on the mat. Animate it at 12 frames per second with a tiny hand-made jitter so it feels like real stop motion; the robot waves and blinks. Clicking makes it jump.
لعبة سباق كاملة من المتصفح
canvas واحد مع JavaScript عادي، وبدون ولا ملف خارجي: طريق ليلي بأسلوب ألعاب الأركيد، سيارات بتتجاوزها، وعدّاد سرعة ولفّات وترتيب وخريطة صغيرة.
- اللعبة كاملة: شاشة بداية، عدّ تنازلي، 3 لفّات، وشاشة نهاية بالوقت.
- التحكم: الأسهم أو WASD، وأزرار لمس على الشاشة للموبايل.
- بصراحة: انلعبت كاملة بفحص آلي (سباق كامل بدون أخطاء)، بس ما انجرّبت على موبايل حقيقي ولا على Safari أو Firefox. وخط العدّادات خط نظام Windows مع بدائل، واللافتات على الطريق كلمات عامة.
Build a complete playable night racing game in a single self-contained index.html (one canvas, plain JavaScript, no libraries, no network requests, no image files — draw everything in code). Pseudo-3D road in the classic arcade style: curves, hills, roadside lamp posts, signs and palm silhouettes scaling toward the horizon, a glowing city skyline and a big moon with parallax, wet-asphalt reflections of the lights. The player's car is a low sports car seen from behind with glowing tail lights; traffic cars to overtake. HUD: speedometer dial, lap timer, position, a small track map. Start screen, countdown, three laps, finish screen with the time. Controls: arrow keys / WASD and on-screen touch buttons. Engine hum with WebAudio that follows the speed (starts only after the first key press).
مدينة كاملة بالليل
WebGL بدون مكتبات: مدينة ما بتخلص، شبابيك مضوية، خطوط ضو السيارات بالشوارع، وقمر. والكاميرا بتطير بين الأبراج بدون توقّف.
- التحكم: الماوس بيلفّ النظر، وعجلة الماوس بتغيّر الارتفاع.
- بصراحة: العمارات صناديق وأسطوانات، والصورة اللي بالبوست بمعدّل 8 عيّنات والصفحة الحية بعيّنة وحدة.
Build a single self-contained index.html (WebGL, no libraries, no network requests) that renders an endless procedural 3D city at night, seen from a slow aerial fly-through between the towers: hundreds of buildings of varied heights and shapes with thousands of individually lit windows (warm amber, a few teal, some dark), roof lights and antennas, wet streets far below that mirror the lights, streams of car head- and tail-light trails along the avenues, low fog that glows around the lights, a few distant towers fading into haze, a faint starry sky and a moon. Filmic look: bloom on the brightest lights, slight vignette, depth haze. The camera glides forward forever; moving the mouse looks around; scrolling changes altitude.
موقع محمصة قهوة بالعربي
صفحة هبوط كاملة بالعربي من اليمين لليسار، لمحمصة خيالية اسمها «محمصة سِدرة»: فنجان مرسوم بالكود مع بخار حيّ، 3 كروت تحميص، خط زمني «من المزرعة للفنجان»، وصندوق اشتراك سعره بيتبدّل بين أسبوعي وشهري.
- التحكم: الفنجان بيميل مع الماوس، والبخار بيبعد عن المؤشر.
- بصراحة: الملف بيحمّل خطّين من Google Fonts، وهاد اتصاله الوحيد بالإنترنت. وبدون WebGL الفنجان بيتحوّل لرسمة مسطّحة.
- بالشات: ما في توثيق رسمي لقواعد الشبكة جوّا معاينة الـ artifact، فإذا شفت الخط العربي مش مزبوط، انسخ الكود وافتحه كملف index.html.
Build a complete animated landing page, in Arabic (RTL), for a fictional specialty-coffee roastery called «محمصة سِدرة» in a single self-contained index.html (HTML + CSS + plain JavaScript, no libraries, no image files — draw everything in code; no network requests except Google Fonts for one Arabic display face and one text face). Hero: a ceramic coffee cup on a saucer drawn in code so it looks three-dimensional (canvas or SVG with real shading, a highlight on the glaze, coffee surface with a crema swirl), with a live steam simulation rising from it (particles/curl noise), a few roasted beans scattered around with soft shadows, a big confident Arabic headline, one line of copy, a primary button and a small trust row. Then: three product cards (three roasts with tasting notes and a roast-level meter), a 'from farm to cup' horizontal timeline that animates on scroll, a subscription box with a weekly/monthly toggle that changes the price, and a footer. Micro-interactions everywhere: the cup tilts slightly with the mouse, the steam bends away from the cursor, buttons have tactile press states, numbers count up. It must feel like an expensive brand site, not a template.
البرومبت نقطة بداية. التعديل بجملة هو اللي بيحوّلها لشي بيخصّك.
عدّلها لمشروعك بجملة
بنفس المحادثة أو الجلسة، بعد ما تطلع النتيجة:
غيّر الموضوع (موقع المحمصة):
بدّل المحمصة بمتجر عطور اسمه [اسم متجرك]، وخلّي الألوان [ألوانك].
بدل الفنجان ارسم قارورة عطر، وخلّي كل الأقسام والحركات زي ما هي.
النتيجة طلعت بسيطة:
النتيجة بسيطة. خلّيها تبين مثل صورة منتج، مش تجربة shader.
حسّن الإضاءة والانعكاسات والظل، وما تغيّر فكرة المشهد.
المشهد بيعلّق على جهازك:
المشهد تقيل على جهازي.
خفّف الجودة تلقائياً لما ينزل عدد الفريمات، وضيف زر صغير للجودة: عالية، متوسطة، خفيفة.
طوّر اللعبة:
ضيف للعبة مستوى صعوبة ثاني فيه سيارات أكتر وأسرع، وزر «سباق جديد» بشاشة النهاية.
خلّي كل شي بنفس الملف.
شو بيخرّب النتيجة
| الغلط | الحل |
|---|---|
| بتلصق السطر اللي بيفرق بالشات وبتستنى يراجع لحاله | بالشات ما بيشوف نتيجته. ابعتله screenshot مع بديل السطر. |
| بتستنى نتيجة البوست من أول رد | عندي كل واحد أخد حوالي ساعة ومراجعات كتيرة. أول رد بداية، مش النهاية. |
| بتشغّل الخمسة ورا بعض على Fable | واحد واحد. Fable بيسحب من نص حدّك الأسبوعي (Max) أو من رصيدك (Pro). |
| بتفتح مشهد 3D على جهاز ضعيف | الكرة والروبوت والمدينة بدهم كرت شاشة منيح ليمشوا سلسين. اطلب «خفّف الجودة». |
| بتغيّر البرومبت كله مرة وحدة | غيّر شغلة وحدة كل مرة: الموضوع أو الألوان. وخلّي جملة single self-contained index.html وno libraries زي ما هي، هي اللي بتخلّي الملف يشتغل لحاله. |
| بتاخد الأسماء زي ما هي لمشروع حقيقي | المحمصة وأسعارها خيالية. بدّلها باسمك وأرقامك قبل ما تنشر. |