شعار Designing Interaction States

Designing Interaction States

المجتمع
wdm0006
designing-interaction-states

صمّم الحالات التي تقضي فيها الشاشات وقتها فعلًا — من أول استخدام والحالات الفارغة إلى التحميل والهياكل النائبة، والتحقق من صحة المدخلات ورسائل الخطأ داخل الواجهة، ورسائل النجاح، وتأكيدات الإجراءات المدمّرة، والنصوص القصيرة لكل حالة — ليبدو المنتج مكتملًا، لا أن يعمل في المسار المثالي فحسب. استخدم هذه المهارة عند إنشاء نموذج أو قائمة أو لوحة معلومات أو واجهة رفع أو إتمام شراء أو إعدادات، أو إضافة إجراء غير متزامن، أو كتابة نصوص للأخطاء أو الحالات الفارغة، أو مراجعة واجهة تعرض صفحات فارغة أو أخطاء خامًا أو مؤشرات تحميل لا تختفي أبدًا.

Add to TypingMind

نظرة عامة

الناشرwdm0006
المستودعpython-skills
اسم المهارةdesigning-interaction-states
النجوم
111
التفريعات
17
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها wdm0006 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Designing Interaction States في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/wdm0006/python-skills/tree/main/skills/common/interaction-states
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wdm0006/python-skills.git /tmp/python-skills
mkdir -p .claude/skills
cp -r /tmp/python-skills/skills/common/interaction-states .claude/skills/designing-interaction-states
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Designing Interaction States في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Designing Interaction States تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Designing Interaction States بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Designing Interaction States

Most screens are designed in one state: full of realistic data, with every request succeeding. Users mostly see the others — empty on day one, loading on a slow network, an error on a typo. Those states are where an app feels either finished or neglected.

Contents

  • The state inventory
  • Empty and first-run states
  • Loading
  • Forms and validation
  • Errors
  • Success and feedback
  • Destructive actions
  • Microcopy rules
  • Checklist

The state inventory

For every screen, list and design each of these before calling it done:

StateQuestion it answers
First run / empty"What is this and what do I do first?"
Loading"Is it working?"
Partial / some data"Does it still look intentional with one item?"
Full / overflow"What happens with 500 items or a very long name?"
Error"What went wrong, and what do I do now?"
Success"Did it work?"
Offline / permission denied"Why can't I do this?"

Seed local data for each and screenshot them; reviewers should see every state.

Empty and first-run states

An empty state is the product's best onboarding surface. Replace "No items." with:

  • a one-line explanation of what will appear here,
  • the single primary action that fills it ("Import contacts", "Create your first project"), as a real button,
  • optionally a secondary path (sample data, docs link).

Distinguish empty because new from empty because filtered ("No results for 'acme' — clear filters") from empty because of an error (that is an error state, not an empty one).

Loading

  • Under ~300ms: show nothing (a flashing spinner reads as jank).
  • Content areas: skeletons shaped like the content, so the layout does not jump.
  • Actions: disable the button and show progress in it ("Saving…"), preventing double submits.
  • Over ~10s or multi-step: real progress (steps or percent) and the option to leave.
  • Never an indefinite spinner: every request has a timeout that becomes an error state with a retry.

Forms and validation

  • Labels above fields, visible always; help text below the label, not in the placeholder.
  • Mark optional fields ("(optional)") rather than starring required ones, when most are required.
  • Validate on blur or on submit, not on every keystroke; never show an error before the user has had a chance to type.
  • On submit with errors: keep everything the user typed, show a summary at the top linking to each field, move focus to the first invalid field.
  • Error text sits next to its field, says what is wrong and how to fix it, and is linked with aria-describedby (see the building-accessible-interfaces skill).
  • Use the right input types (email, tel, number, date, autocomplete attributes) so phones show the right keyboard and browsers can autofill.
  • One primary button per form, at the end, labelled with the outcome ("Create account", not "Submit").

Errors

A good error message has three parts: what happened, why (if known), what to do next.

BadGood
"Error 500""We couldn't save your changes. Your edits are still here — try again in a moment."
"Invalid input""Enter a date in the future."
"Failed to fetch""You're offline. We'll retry when you reconnect."
  • Never show stack traces, raw exception text or status codes to end users; log them with a reference ID and show the ID.
  • Errors are recoverable where possible: a retry button, preserved input, a link to the place to fix the cause (e.g. billing settings).
  • Page-level failures get a designed page (404, 500, expired link) with navigation back into the app, not the framework default.

Success and feedback

  • Confirm every action that changes data: inline ("Saved ✓" next to the button) for small edits, a toast for background actions, a full success screen for milestones (account created, payment complete) that says what happens next.
  • Toasts auto-dismiss (~5s) except for errors and anything with an action ("Undo").
  • Optimistic UI is fine for low-risk actions if failures roll back visibly.

Destructive actions

  • Prefer undo over confirmation for reversible actions ("Contact archived. Undo").
  • For irreversible ones, confirm with a dialog that names the object and the consequence ("Delete 'Q3 report'? This removes it for everyone and can't be undone.") and a button labelled with the action ("Delete report"), styled as danger — never a generic "OK".
  • For high-stakes deletes (an account, a workspace), require typing the name.

Microcopy rules

  • Plain words, sentence case, second person ("Your invoices"), active voice.
  • Buttons are verbs naming the outcome; links say where they go.
  • Be specific with numbers and names ("3 contacts imported, 2 skipped — see why").
  • Same term for the same thing everywhere (pick "workspace" or "team", not both).
  • No blame ("You entered an invalid…" → "Enter a valid…"), no jokes in errors.

Checklist

  • Every screen has designed empty, loading, error and success states
  • No spinner without a timeout and an error path
  • Forms keep input on error, focus the first invalid field, and use real labels
  • Error messages say what happened and what to do; no raw exceptions shown
  • Destructive actions use undo or a specific, danger-styled confirmation
  • Screenshots of each state attached to the PR

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Designing Interaction States؟

صمّم الحالات التي تقضي فيها الشاشات وقتها فعلًا — من أول استخدام والحالات الفارغة إلى التحميل والهياكل النائبة، والتحقق من صحة المدخلات ورسائل الخطأ داخل الواجهة، ورسائل النجاح، وتأكيدات الإجراءات المدمّرة، والنصوص القصيرة لكل حالة — ليبدو المنتج مكتملًا، لا أن يعمل في المسار المثالي فحسب. استخدم هذه المهارة عند إنشاء نموذج أو قائمة أو لوحة معلومات أو واجهة رفع أو إتمام شراء أو إعدادات، أو إضافة إجراء غير متزامن، أو كتابة نصوص للأخطاء أو الحالات الفارغة، أو مراجعة واجهة تعرض صفحات فارغة أو أخطاء خامًا أو مؤشرات تحميل لا تختفي أبدًا.

لماذا تستخدم Designing Interaction States على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Designing Interaction States عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Designing Interaction States في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/wdm0006/python-skills/tree/main/skills/common/interaction-states. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Designing Interaction States؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Designing Interaction States؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Designing Interaction States معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Designing Interaction States مجانية؟

نعم. نشرها wdm0006 على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار garrytan

Landing Report

garrytan
المجتمعشائع

لوحة انتظار للقراءة فقط لسير عمل ship المراعي لمساحات العمل. (gstack)

19.9K
133.5K
الملفات: 1
عرض
شعار garrytan

Gstack Openclaw Ceo Review

garrytan
المجتمعشائع

استخدمه عندما يُطلب منك مراجعة خطة، أو الاعتراض على مقترح، أو إجراء مراجعة بصفتك الرئيس التنفيذي، أو البحث عن ثغرات في نهج ما، أو التفكير في توسيع نطاق العمل، أو اتخاذ قرار بشأن توسيع الخطة أو تقليصها.

19.9K
133.5K
التعليمات
عرض
شعار JuliusBrussee

Caveman Stats

JuliusBrussee
المجتمعشائع

اعرض استخدام التوكنات الناتجة والمقروءة من ذاكرة التخزين المؤقت، ونمط الاستخدام لجلسة Claude Code الحالية، أو اعثر على تقرير الاستخدام الأصلي للمضيف. يُفعَّل بالأمر: /caveman-stats.

6.2K
106.3K
التعليمات
عرض
شعار pytorch

Ci Metrics

pytorch
مؤسسةشائع

استعلم عن مقاييس PyTorch CI وGitHub Actions وHUD وGrafana والبنية التحتية. استخدم هذه المهارة عندما يسأل المستخدم عن مدة CI أو حالات فشل المهام أو أوقات الانتظار في قوائم الانتظار أو اتجاهات مسارات العمل أو سلامة المشغّلات أو بيانات لوحات المعلومات أو مقاييس…

31K
103.6K
الملفات: 1
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇