Skillpedia
المواقع والواجهات (frontend)19k · #10484

gpui-kit

ما الذي تفعله

تشرح هذه المهارة كيف تبني تطبيقات سطح المكتب بإطار GPUI Kit بلغة Rust، بما في ذلك مكتبة مكوناته. وهي موجهة للمطورين الذين يبنون تطبيقات سطح مكتب ويريدون مجموعة أجزاء واجهة جاهزة.

متى تستخدمها

  • ✓عندما تبدأ إعداد تطبيق سطح مكتب جديد بـ GPUI Kit.
  • ✓عندما تحتاج إلى استخدام مكون مثل نافذة الحوار أو الشريط الجانبي أو جدول البيانات.
  • ✓عندما تحتاج إلى التعامل مع حالة المكون أو السمات أو طبقات النوافذ المتراكبة.

رابط المهارة

https://github.com/longbridge/gpui-kit/blob/main/skills/gpui-kit/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/longbridge/gpui-kit/blob/main/skills/gpui-kit/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أعدّ تطبيق سطح مكتب بـ GPUI Kit فيه شريط جانبي وجدول بيانات ونافذة تأكيد.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

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

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

GPUI Kit

Applications depend on one crate, gpui-kit. GPUI is use gpui_kit::*;, and each layer is reachable by name: gpui_kit::component (styled components), gpui_kit::base (unstyled behavior), gpui_kit::assets (default icons), gpui_kit::platform.

Start with component-family conventions to choose the constructor, state owner, event, and layout contract for the task. Learn the family once, then verify the specific component supports the capability.

For a complete compiled view with retained state, subscriptions, and overlay layers, read the tested application recipe.

Read the Guides First

Two guides hold the rules this skill assumes. They are requirements, not inspiration. Read the guide file itself; do not answer from this page, from a similar file in the codebase, or from training data.

Guide Read before
Design Guides, skill gpui-kit-design-guides Choosing components, layout, spacing, hierarchy, color, density, interaction states, overlays, motion, interface copy
Coding Guides Crate layering, RenderOnce vs Entity<T>, state ownership, ElementId, events, focus, async, public API, naming, testing

Read the Design Guides first when the change has a visible surface: code structure preserves product intent, it does not replace it. If the design skill is not installed, fetch https://gpui-kit.com/docs/design-guides.md. The coding guide is a verbatim copy of https://gpui-kit.com/docs/coding-guides.md, so its links to ./design-guides.md and ./getting-started.md mean the design skill and https://gpui-kit.com/docs/getting-started.md.

Coding Guides section map

Read the whole guide for a new crate, module, or feature. For a narrow change, read "Architecture at a glance" and "Rules for coding agents" first, then the section for the change (grep -n '^## ' references/coding-guides.md).

Section Read when
Architecture at a glance Always; crate layering, ownership boundary
Bootstrap and root ownership main, init, Root, window creation, app-level state
Understand GPUI's phases and contexts Anything touching App, Window, Context<T>, render vs update
Choose the right unit Deciding RenderOnce vs Entity<T> vs custom Element
State ownership Where a piece of state lives, who mutates it, Entity<State> handles
Stable identity ElementId, lists, repeated elements, keyed state
Rendering and composition render, builder chains, when/map, child composition
Behavior and presentation boundary gpui-base vs gpui-component vs application code
Theme and styling cx.theme(), tokens, Styled, sizes, variants
Events, actions, and focus cx.emit, subscribe, actions!, keybindings, FocusHandle
Async work and side effects cx.spawn, background_spawn, Task, I/O, timers
Layout, measurement, and scrolling Flex layout, sizing, overflow, scroll handles, measuring
Lists, tables, and large data VirtualList, List, DataTable, delegates, large collections
Public API design Anything pub: builders, private fields, setter and reader naming
Platform and capability boundaries macOS/Windows/Linux/wasm differences, feature gates
File and naming conventions New files, modules, type and method names, Kind suffix, Context
Testing strategy What to test, #[gpui_kit::test], TestAppContext
الأسئلة الشائعة

ما لغة البرمجة المستخدمة؟

Rust.

هل توفر تطبيقاً كاملاً كمثال؟

نعم. توضح وصفة مُختبرة عرضاً كاملاً فيه الحالة والاشتراكات وطبقات النوافذ.

من أين تأخذ قواعد التصميم؟

من أدلة تصميم GPUI Kit، ويجب قراءتها قبل أي عمل على الواجهة.

التفاصيل

الوصف الأصلي من المؤلف

How to build desktop applications with GPUI Kit, the Rust framework published as the gpui-kit crate (GPUI plus gpui_kit::component, gpui_kit::base, gpui_kit::assets). Use when setting up a gpui-kit app, choosing or using a component (Button, Input, Select, Dialog, Sheet, Tabs, Sidebar, List, DataTable, Tree, Chart, etc.), handling component state, theming, or window overlays, and for GPUI mechanics: actions and keybindings, async tasks, contexts, custom elements, entities, events, focus, global state, layout and styling, ElementId, and tests including UI integration testing. Holds the normativ

repo: longbridge/gpui-kit

الشعبية

نجوم GitHub
19k
الترتيب
#10484
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة