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

markstream-vue2

ما الذي تفعله

تساعد هذه المهارة على دمج مكوّن اسمه « markstream-vue2 » في مشاريع تستخدم Vue 2. وتضمن أن كل شيء يعمل بشكل صحيح مع الإصدار المحدد من Vue 2، وتتولى التفاصيل التقنية حتى لا تقلق بشأنها.

متى تستخدمها

  • ✓عندما تستخدم Vue 2.6 أو 2.7 وتحتاج إلى مكوّن لعرض النص المنسق (مثل Markdown).
  • ✓عندما تريد أن يظهر النص تدريجيا على الشاشة، كما في المحادثة.
  • ✓إذا احتجت إلى التأكد من التوافق مع إصدارات Vue 2 القديمة.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2/SKILL.md

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

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

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

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

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

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

“كيف أُعد markstream-vue2 في مشروع Vue 2 الخاص بي؟”

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

كيف تعمل

تتحقق المهارة من إصدار Vue 2 لديك، وتضيف التبعيات اللازمة. ثم تضبط المكوّن لعرض النص، مع خيارات لتأثيرات الكتابة أو الظهور التدريجي.

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

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

Markstream Vue 2

Overview

Handle Vue 2.6/2.7 compatibility decisions that the generic installer cannot resolve safely.

When to Use

Use for Vue 2 integration when no bundler-specific edge case dominates. Use markstream-vue2-cli for Vue CLI/Webpack 4 and markstream-vue2-vite for Vite worker imports.

Workflow

Inspect the existing package manager, installed package version and project conventions. A requested scoped integration already authorizes routine source/dependency edits; seek approval only for a material scope expansion or unresolved beta/alpha adoption decision.

  1. Confirm Vue 2.6 or 2.7 and install markstream-vue2.
  2. Add @vue/composition-api only for Vue 2.6 code that uses Composition API patterns; Vue 2.7 has built-in support.
  3. Import markstream-vue2/index.css after resets.
  4. Start with <MarkdownRender :content="markdown" /> and smooth streaming auto.
  5. For live chat disable fade and opt into the cursor; on completion set final, disable pacing/cursor, and enable fade only if desired.
  6. Use nodes only when another layer owns parsing. Use scoped mappings for overrides.
  7. Keep HTML safe and Mermaid strict; validate with the smallest build or dev command.

Example

<script>
import MarkdownRender from 'markstream-vue2'
import 'markstream-vue2/index.css'

export default {
  components: { MarkdownRender },
  props: { content: String, done: Boolean },
}
</script>

<template>
  <MarkdownRender
    :content="content"
    :final="done"
    :fade="done"
    :typewriter="!done"
  />
</template>

Limitations

  • Vue 2.6 and 2.7 have different Composition API requirements.
  • Legacy bundlers require the dedicated specializations.
  • Optional modern peers may not support every Vue 2 toolchain.

Security & Safety Notes

Review dependency and compatibility changes. Do not relax rendering safety for untrusted content.

Verify props, export paths and peer ranges against the installed package, not a mutable upstream main. Test partial and completed streams, malformed/untrusted Markdown, links and image URLs, cancellation and reduced motion. Safe HTML and strict diagrams reduce exposure but do not alone enforce URL/network privacy or application component permissions.

Vue 2 is end-of-life; preserve a requested legacy integration and document its maintenance/support decision rather than silently upgrading the whole application. Prefer reviewed locally bundled workers over mutable CDN code where feasible.

الأسئلة الشائعة

ما هي Composition API؟

هي طريقة أحدث لتنظيم الشيفرة في Vue.js. في Vue 2.6 قد تحتاج إلى تثبيت حزمة إضافية لاستخدامها، أما Vue 2.7 فيدعمها بشكل مدمج.

ماذا تعني « streaming state »؟

تعني أن النص يمكن أن يُعرض جزءا بعد جزء، كما لو كان يُكتب أو يُحمّل في الوقت الفعلي، بدلا من ظهوره دفعة واحدة.

هل يمكنني استخدام هذا مع أي إصدار من Vue؟

لا، هذه المهارة مخصصة لـ Vue 2.6 و2.7 تحديدا. أما الإصدارات الأخرى أو أدوات البناء (مثل Vite) فلها نسخ أخرى من هذه المهارة.

التفاصيل

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

Integrate markstream-vue2 into Vue 2.6 or 2.7 with correct Composition API decisions, CSS, streaming state, optional peers, and scoped overrides.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5177
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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