مهارات الذكاء الاصطناعي الجاهزة (AI Skills)
الملفات بصيغة SKILL.md تمثل حزم خبرات مركزة (فحص الجودة، الأمان، تحسين الأداء، محركات البحث). يتم حقنها في الوكيل ليتبع معايير المهندسين الكبار تلقائياً.
المختبر التفاعلي: تجربة أثر المهارات على الكود المصدري
شاهد تحول الكود عند تزويد الوكيل بمهارة متخصصة
اختر مهارة وطبقها على الكود لتشاهد كيف تتغير طريقة مراجعة الذكاء الاصطناعي وجودة المخرجات.
src/api/endpoint.ts// الدالة المستهدفة بدون اختبارات:
export async function calculateDiscount(cartTotal, couponCode) {
if (couponCode === 'SAVE20') return cartTotal * 0.8;
return cartTotal;
}// نتيجة تطبيق skills/qa-testing/SKILL.md:
import { describe, it, expect } from 'vitest';
import { calculateDiscount } from './cart';
describe('calculateDiscount - Edge Cases & Coverage', () => {
it('يطبق خصم 20% للكوبون الصحيح', () => {
expect(calculateDiscount(100, 'SAVE20')).toBe(80);
});
// كشف حالات الحواف الحرجة (Edge Cases):
it('يتعامل بحذر مع القيم السالبة والصفر', () => {
expect(calculateDiscount(0, 'SAVE20')).toBe(0);
expect(() => calculateDiscount(-50, 'SAVE20')).toThrow('INVALID_TOTAL');
});
it('يتجاهل الكوبونات المنتهية أو غير الصالحة دون كسر السلة', () => {
expect(calculateDiscount(100, 'INVALID')).toBe(100);
expect(calculateDiscount(100, null)).toBe(100);
});
});المهارة جعلت الوكيل يبحث فوراً عن حالات الفشل غير الواضحة (الأرقام السالبة، القيم الفارغة null)، وكتب مجموعة اختبارات شاملة تغطي 100% من المسارات.
مكتبة المهارات الجاهزة للنسخ والتثبيت (SKILL.md Library)
25 قاعدة تنفيذية مباشرة تحكم تصميم وبناء واجهات المستخدم والـ RTL واللغة العربية الفصيحة وتطهير الواجهات من حشو الذكاء الاصطناعي.
يكتشف سيناريوهات الحواف (Edge Cases) ويكتب اختبارات Unit و E2E للتحقق من صمود التطبيق.
يدقق الثغرات الأمنية الشائعة (OWASP Top 10)، ويفحص تشفير الجلسات وصلاحيات الوصول.
يلاقي الاستعلامات البطيئة ومشاكل N+1 في قاعدة البيانات ويقترح حلول التخزين المؤقت (Caching).
يصمم بنية العناوين، الـ Open Graph، والـ Structured Data (JSON-LD) لتصدر نتائج جوجل.
يهتم باتساق الخطوط والألوان وسهولة استخدام العناصر وتجاوبها مع كافة أحجام الشاشات.
يراجع الكود قبل الدمج كمهندس خبير بفريقك للتأكد من نظافته ومطابقته لأفضل المعايير.
skills/ بمشروعك--- name: product-ux description: Product UX Designer & Arabic Design System Architect --- # CORE PRINCIPLE Design less. Communicate clearly. Interact intentionally. Gamify purposefully. Respect the user's cognitive load. Maintain system consistency. Support Arabic RTL and English LTR correctly. Remove unnecessary content and UI. Never add elements just to make the interface look richer. The final product must feel simple, intentional, coherent, educational, and human-designed — not AI-generated. ## Executive Rules: 1. Product UX: Prioritize usability and task completion over decoration. Every element must have a purpose. 2. UX Research: Reduce cognitive effort and friction. Use progressive disclosure. 3. UX Writing: Use concise, human UX writing. Action-oriented labels. No generic AI filler. 4. Arabic Language: Correct Modern Standard Arabic, natural terms, consistent technical phrasing. 5. Arabic RTL: True RTL for layout, navigation, cards, directional icons, and transitions. 6. English LTR: Natural LTR flow without accidental RTL inheritance. 7. Bidirectional Content: Seamless mixed-direction handling (code, numbers, technical terms). 8. Localization: Adaptable containers supporting varying text lengths. 9. Design System Consistency: Reuse typography, tokens, colors, and motion patterns. 10. Simplicity: Prefer the simplest interface that solves the problem. Remove visual noise. 11. Gamification: Only when it improves learning, motivation, or retention. 12. Interactive Learning: Active learning over passive reading; do not complicate simple info. 13. Duolingo-Inspired Learning: Small steps, immediate feedback, clear next action. 14. Motion Design: Purposeful, predictable, and short animations only. 15. Feedback: Clear, immediate communication of action results and guidance. 16. Accessibility: WCAG contrast, touch targets >= 44px, keyboard navigation, semantic tags. 17. Responsive Design: Fluid adaptation across mobile, tablet, and desktop. 18. Component Intelligence: Match component pattern to content rather than forcing cards. 19. Component Reusability: Controlled variants and distinct states (hover, active, disabled, loading). 20. Visual Hierarchy: Unmistakable hierarchy of size, weight, and spacing. 21. AI Design Cleanup: Strip generic cards, decorative icons, fake stats, and artificial badges. 22. AI Content Cleanup: Eliminate AI clichés like "In today's digital world..." or "Let's explore...". 23. No Hallucinated Content: Never invent metrics, testimonials, or certifications. 24. Content–Design Relationship: Structure follows content intent and user decision. 25. Quality Gate: Rigorous 14-point audit before finalizing any component.
اختبر فهمك: مهارات الذكاء الاصطناعي
أجب لتأكيد استيعابك لكيفية استخدام ملفات SKILL.md:ما الفرق الأساسي بين إعطاء الذكاء الاصطناعي أمراً عادياً وبين تزويده بملف SKILL.md؟