buefy
ما الذي تفعله
ترشد هذه المهارة الوكيل عندما يكتب شاشات Vue باستخدام مكتبة مكونات Buefy، المبنية على تنسيقات Bulma. وهي مناسبة للمطورين الذين يبنون تطبيقات ويب بـ Vue.
متى تستخدمها
- ✓عندما تكتب صفحة Vue فيها أزرار أو نماذج أو جداول أو نوافذ منبثقة.
- ✓عندما يذكر مشروعك Buefy في قائمة الاعتماديات.
- ✓عندما تحتاج إلى كود واجهة لمشروع Vue ولم تُختر مكتبة واجهات بعد.
رابط المهارة
https://github.com/buefy/buefy/blob/main/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابنِ لي نموذج تواصل في Vue بحقول Buefy وزر إرسال ورسالة خطأ.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يثبّت وكيلك Buefy أو يستخدمها إن كانت موجودة في المشروع، ثم يكتب مكونات Vue تستخدم الأجزاء الجاهزة في المكتبة وخصائصها وأحداثها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Buefy
Buefy is a lightweight UI component library for Vue 3 based on Bulma CSS. Components are Vue SFCs (<b-button>, <b-modal>, etc.) that wrap Bulma's class-based styles with reactive props, events, and slots.
When to run this skill
Trigger whenever you are:
- Writing a Vue template or SFC that includes any UI element (buttons, forms, modals, tables, navigation, etc.)
- Asked to "use Buefy" or "add a Buefy component"
- Working in a project that has
buefyin itspackage.jsondependencies - Generating component code without a specified UI library in a Vue project
Install
npm install buefy
Full bundle (registers all components globally)
// main.ts
import { createApp } from 'vue'
import Buefy from 'buefy'
import 'buefy/dist/buefy.css'
import App from './App.vue'
const app = createApp(App)
app.use(Buefy)
app.mount('#app')
Individual components (tree-shakeable)
// main.ts — register as plugins
import { createApp } from 'vue'
import { Button, Field, Input } from 'buefy'
import App from './App.vue'
const app = createApp(App)
app.use(Button)
app.use(Field)
app.use(Input)
app.mount('#app')
<!-- Or import directly in a SFC -->
<script lang="ts">
import { BButton, BField, BInput } from 'buefy'
export default { components: { BButton, BField, BInput } }
</script>
Usage rules
- Use the
typeprop, notclass— Buefy components expose Bulma modifiers as atypeprop. Usetype="is-primary"notclass="is-primary"on Buefy components. - Size prop values —
"is-small"|"is-medium"|"is-large". No bare size strings. - Always wrap form inputs in
<b-field>—<b-field>provides the label, validation message, and grouping. Direct bare inputs miss label/message wiring. - v-model target — Most components bind to
modelValue. Named v-models onb-table:v-model:selected,v-model:checked-rows,v-model:current-page,v-model:opened-detailed. - Icons — Use the
iconprop with the icon name only (nomdi-prefix). The icon pack (MDI by default) must be registered in your project. Example:icon="home"noticon="mdi-home". - b-table columns —
<b-table>requires:data="arrayOfObjects"and<b-table-column field="key" label="Header">children. Columns can also be passed via the:columnsprop. - Theming — Customize via Bulma SCSS variable overrides in a
.scssfile, not a JS config object. TheConfigProgrammaticutility sets defaults (icon pack, locale, etc.). - Programmatic APIs — Components like Toast, Snackbar, Dialog, Loading, Modal, and Notification can be opened imperatively. Import the programmatic class or use the composable:
import { ToastProgrammatic as Toast } from 'buefy' Toast.open('Hello world') // or with options: Toast.open({ message: 'Saved!', type: 'is-success', duration: 3000 }) // Composable-style (preferred in Composition API): import { useToast } from 'buefy' const { open: openToast } = useToast() openToast({ message: 'Saved!', type: 'is-success' })
Colors & Types
Use these values for the type prop on components that accept it:
| Value | Meaning |
|---|---|
is-primary |
Primary brand color (default blue) |
is-link |
Link color |
is-info |
Informational (cyan) |
is-success |
Success (green) |
is-warning |
Warning (yellow) |
is-danger |
Error / danger (red) |
is-dark |
Dark (near-black) |
is-light |
Light (near-white) |
is-white |
White |
is-black |
Black |
Size values: is-small · is-medium · is-large
Components
b-autocomplete
Autocomplete text input with dropdown suggestions.
Key props: v-model (String), data (Array — suggestion list), field (String — dot path into data objects for display), expanded, loading, icon, size, rounded, keep-first, open-on-focus, keep-open, clearable, placeholder
Slots: default (scoped: { option, index }) for custom option rendering; header, footer, empty, group
Emits: typing, select, focus, blur, infinite-scroll
<b-field label="Search">
<b-autocomplete
v-model="search"
:data="filteredResults"
field="name"
placeholder="Type to search"
@typing="onTyping"
@select="onSelect"
>
<template #default="{ option }">
{{ option.name }} — {{ option.category }}
</template>
</b-autocomplete>
</b-field>
الأسئلة الشائعة
هل أحتاج إلى تثبيت Buefy أولاً؟
نعم، إلا إذا كان مشروعك يحتويها. تعرض المهارة خطوة التثبيت وطريقة تسجيل المكونات.
هل تعمل مع Vue 3؟
نعم. تصف المهارة Buefy بأنها مكتبة مكونات لـ Vue 3.
هل أستطيع استخدام بعض المكونات فقط؟
نعم. تعرض المهارة كيفية استيراد مكونات بعينها بدلاً من الحزمة الكاملة.
التفاصيل
الوصف الأصلي من المؤلف
Official Buefy skill for Vue.js + Bulma UI components. TRIGGER when generating any Vue template, SFC, or component code that involves UI elements, forms, modals, tables, navigation, or feedback messages.
repo: buefy/buefy
الشعبية
- نجوم GitHub
- 9.5k
- الترتيب
- #12275
- الترخيص
- MIT
- آخر تحديث
- 8/9/2026
التعليقات
- …
مهارات مشابهة
angular-developer
280kيساعد وكيلك على كتابة شيفرة Angular وتقديم نصائح لبنية المشروع، ويفيد في بدء المشاريع الجديدة وإنشاء المكونات وتحسين الأداء وإمكانية الوصول.
frontend-a11y
280kيساعد وكيلك على جعل واجهات الويب متاحة للجميع، فيضمن أن المواقع والتطبيقات تعمل جيدًا مع قارئات الشاشة والتنقل بلوحة المفاتيح.
frontend-patterns
280kيطبّق وكيلك أنماط تطوير الواجهات الحديثة، فيحسّن الأداء ويدير الحالة ويتبع أفضل الممارسات في React وNext.js.