wordpress-plugin-to-emdash
ما الذي تفعله
تساعد هذه المهارة على نقل سلوك إضافة WordPress وأنواع المحتوى والبيانات المخزنة فيها إلى نظام إدارة المحتوى EmDash. وهي مخصصة لأصحاب المواقع والمطورين الذين ينتقلون من WordPress إلى EmDash.
متى تستخدمها
- ✓عندما تنقل موقعًا من WordPress إلى EmDash وتحتاج إلى نقل ميزات إضافة فيه.
- ✓عندما تحتاج إلى تحديد ما إذا كانت الميزة تنتمي إلى مخطط الموقع أو شيفرته أو إلى إضافة.
- ✓عندما تخزّن إضافة WordPress بيانات يجب الحفاظ عليها أثناء النقل.
رابط المهارة
https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-plugin-to-emdash/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك مساعدتي في نقل إضافة الفعاليات الخاصة بي في WordPress، بما فيها نوع المحتوى المخصص ونموذج الحجز، إلى EmDash؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفحص الوكيل ميزات الإضافة وبياناتها وخطافاتها وشاشات إدارتها، ثم يسند كل مسؤولية إلى المكان الصحيح في EmDash. ويدوّن متطلبات البيانات والصلاحيات والترحيل قبل كتابة أي شيفرة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Port a WordPress plugin to EmDash
Preserve the plugin's user-visible behavior and data model without translating PHP line by line. WordPress and EmDash divide responsibilities differently, so first decide whether each feature belongs in site schema, Astro code, a sandboxed plugin, or a trusted native plugin.
Load creating-plugins before implementing plugin code. Load building-emdash-site when the port changes collections, seeds, queries, or frontend templates. Those skills define the current APIs; this skill covers migration decisions.
Understand the source
Inspect the plugin source, installation behavior, database changes, hooks, REST endpoints, scheduled work, admin screens, shortcodes or blocks, frontend output, permissions, and external services. Identify behavior that users rely on separately from WordPress-specific implementation.
Record:
- required content and configuration data;
- actions that mutate or publish data;
- authorization and trust boundaries;
- background or retry behavior;
- frontend and administrator interactions;
- import, migration, and rollback needs;
- license obligations for copied assets or code.
If the source, expected behavior, or target EmDash environment is missing, report the gap instead of inventing an equivalent.
Assign each responsibility
| WordPress responsibility | EmDash destination |
|---|---|
| Custom post type, taxonomy, or metadata | Collection, taxonomy, and fields created through the site schema or seed |
| Site-wide presentation setting | Site setting read by Astro templates |
| Plugin-owned user settings | ctx.settings; declare credentials as encrypted secret fields |
| Plugin-owned cursors, caches, or internal state | Plugin-scoped ctx.kv |
| Plugin-owned queryable records | Declared ctx.storage.<collection> storage |
| Content discovery, translation, or publication | Capability-gated ctx.content and ctx.schema; policy hooks and actions have separate authority |
| Runtime taxonomy or redirect management | ctx.taxonomies or ctx.redirects with narrow read/write capability |
| Comment administration | ctx.comments; reads expose personal data and moderation uses expected status |
| WordPress REST endpoint | Declared plugin route with explicit methods, inputs, headers, and response mode |
| Scheduled event | cron hook and ctx.cron scheduling |
| Admin page or form | Block Kit for sandboxed plugins; React only for a trusted native plugin |
| Post editor metabox or saved-entry action | admin.editorPanels or admin.editorActions on private routes |
| User or author lookup | ctx.users with users:read |
| Outbound HTTP request | ctx.http.fetch() with network:request and an allowedHosts entry |
| Media operation | Separate metadata, byte-read, metadata-write, and upload/delete authorities |
WP_Query or template tag |
EmDash content API in Astro site code |
| Shortcode or editor block | Existing Portable Text content where possible; a custom Portable Text block requires a trusted native plugin |
| Raw head markup or sc |
الأسئلة الشائعة
هل تترجم PHP سطرًا بسطر؟
لا. تركز على الحفاظ على السلوك المرئي للمستخدم والبيانات، لأن WordPress وEmDash يقسمان العمل بطريقتين مختلفتين.
ماذا لو كان ترخيص الإضافة يقيّد النسخ؟
تتضمن المهارة فحصًا لالتزامات الترخيص على الشيفرة أو الأصول المنسوخة.
هل تغطي القوالب المرئية أيضًا؟
لا. نقل القوالب المرئية مهمة منفصلة، وهذه المهارة مخصصة لوظائف الإضافات.
التفاصيل
الوصف الأصلي من المؤلف
Analyze and port WordPress plugin behavior, custom post types, shortcodes, admin workflows, and stored data to current EmDash extension points. Use for WordPress-plugin migrations or when deciding which behavior belongs in an EmDash plugin, site schema, seed, or Astro code. Do not use for visual theme ports without plugin functionality.
repo: emdash-cms/emdash
الشعبية
- نجوم GitHub
- 14k
- الترتيب
- #11250
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
adversarial-reviewer
14kيساعد وكيلك على البحث عن أخطاء خفية وافتراضات غير آمنة في تغيير برمجي، متجاوزًا المراجعة العادية عندما تطلب ذلك.
agent-browser
14kيتيح لوكيلك اختبار صفحة ويب في متصفح حقيقي، والتحقق مما يراه المستخدمون، والتأكد من الإجراءات، والتقاط لقطات شاشة كدليل.
building-emdash-site
14kيساعد وكيلك على بناء الجزء الخاص بالموقع من مشروع EmDash CMS المبني على Astro، ويشمل المحتوى والمخطط والقوائم والتصنيفات والنشر.
creating-plugins
14kيساعد وكيلك على بناء إضافة لنظام EmDash CMS، مع خطافات آمنة ومسارات وتخزين وواجهة إدارة.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.