wp-block-themes
طوّر قوالب كتل ووردبريس بإرشاد خبراء
تستخدم قوالب كتل ووردبريس ملف theme.json للإعدادات والأنماط العامة. توفر هذه المهارة إرشادًا متخصصًا لإعداد theme.json وإنشاء القوالب وإدارة الأنماط ومعالجة مشكلات التنسيق في محرر الموقع.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "wp-block-themes". Find all block themes in this repository
Resultado esperado:
- تم العثور على قالبَي كتل:
- • TwentyTwentyFive (theme.json at theme-twentytwentyfive/theme.json)
- - Version: 3
- - يحتوي على مجلدات القوالب والأجزاء والأنماط والستايلات
- • CustomTheme (theme.json at themes/custom-theme/theme.json)
- - Version: 3
- - يحتوي على مجلدات القوالب والأجزاء
Usando "wp-block-themes". Help me configure theme.json settings
Resultado esperado:
- لـ WordPress 6.9+، استخدم theme.json الإصدار 3.
- أقسام الإعدادات الأساسية:
- - color: palette, gradients, duotone
- - typography: fontFamilies, fontSizes, lineHeight
- - spacing: spacingScale, spacingUnits
- - layout: contentSize, wideSize
- أضف presets لعناصر التحكم الظاهرة في المحرر، واستخدم styles للمظهر الافتراضي.
Usando "wp-block-themes". Why are my styles not applying
Resultado esperado:
- تحقق من تسلسل الأنماط:
- 1. Core defaults → 2. theme.json → 3. child theme → 4. user customizations
- المشكلات الشائعة:
- - تم تعديل قالب خاطئ (تحقق من Site Editor → theme)
- - تخصيصات المستخدم تتجاوز الإعدادات الافتراضية للقالب
- - صياغة JSON غير صحيحة في theme.json
- - تنويعات الأنماط مخزنة في قاعدة البيانات
Auditoría de seguridad
Riesgo bajoThis skill provides documentation and guidance for WordPress block theme development. The only executable script (detect_block_themes.mjs) safely reads theme.json files using bounded filesystem operations with no network access or command execution. All 92 static findings are false positives: markdown backticks are misinterpreted as shell execution, documentation URLs as network calls, and JSON content hashes as C2 indicators.
Problemas de riesgo medio (1)
Factores de riesgo
📁 Acceso al sistema de archivos (1)
Puntuación de calidad
Lo que puedes crear
تهيئة theme.json
إعداد الإعدادات العامة والجاهزات والطباعة والألوان وأنماط الكتل لكل كتلة في theme.json
إنشاء قوالب كتل
بناء قوالب HTML وأجزاء القوالب لقوالب ووردبريس المعتمدة على الكتل
تصحيح مشكلات التنسيق
حل مشاكل عدم تطبيق الأنماط وعدم التطابق في المحرر ومشكلات تسلسل الأنماط
Prueba estos prompts
Run detect_block_themes to find all theme.json files in this repository and identify which are block themes
Review the theme.json file at [PATH] and suggest improvements for settings and styles
Create a new template file at templates/[NAME].html following WordPress block theme conventions
Debug why styles from theme.json are not appearing in the Site Editor. Check style hierarchy and user overrides
Mejores prácticas
- شغّل detect_block_themes للتحقق من جذر القالب الصحيح قبل إجراء التغييرات
- افهم تسلسل الأنماط: core defaults → theme.json → child theme → user customizations
- اختبر التغييرات في Site Editor والواجهة الأمامية لتأكيد تطبيق الأنماط بشكل صحيح
Evitar
- تحرير theme.json دون فهم تسلسل الأنماط
- إنشاء قوالب دون التحقق من الأنماط والاتفاقيات الحالية
- تفعيل قالب جديد دون التحقق من إعدادات theme.json
Preguntas frecuentes
ما إصدارات WordPress المدعومة؟
ما هي إصدارات theme.json؟
كيف تتكامل هذه المهارة مع الأدوات الأخرى؟
هل تعدّل هذه المهارة ملفاتي؟
لماذا لا تُطبق أنماط theme.json الخاصة بي؟
كيف تختلف تنويعات الأنماط عن theme.json؟
Detalles del desarrollador
Estructura de archivos