markstream-vue2-vite
Skill này làm gì
Công cụ này giúp bạn dùng thành phần 'markstream-vue2' trong các dự án Vue 2 có sử dụng Vite. Nó đảm bảo mọi thứ hoạt động đúng, bao gồm các tính năng đặc biệt như biểu đồ (Mermaid) và công thức toán (KaTeX).
Khi nào nên dùng
- ✓Khi dự án của bạn dùng Vue 2 và Vite.
- ✓Khi bạn cần biểu đồ (Mermaid) hoặc công thức (KaTeX) hoạt động trong dự án Vue 2.
- ✓Khi bạn muốn tích hợp thành phần 'markstream-vue2' một cách an toàn và hiệu quả.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2-vite/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sao để thiết lập markstream-vue2 trong dự án Vue 2 với Vite để hiển thị biểu đồ?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ cấu hình dự án để Vite có thể 'đóng gói' và dùng các tính năng đặc biệt của markstream-vue2, như tính năng cho biểu đồ. Nó cũng điều chỉnh cách văn bản được hiển thị để an toàn và nhanh hơn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Markstream Vue 2 Vite
Overview
Use Vite-native worker bundling while preserving Vue 2 compatibility and rendering safety.
When to Use
Use when the host is Vue 2 with Vite and needs bundled Mermaid or KaTeX workers. Use the generic Vue 2 skill when worker/bundler behavior is irrelevant.
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.
- Confirm Vue 2 with Vite and install only requested peers.
- Import
markstream-vue2/index.cssafter reset, Tailwind, or UnoCSS layers. - Use package worker entrypoints with Vite
?workeror?worker&inlineimports only when needed. - Add
@vue/composition-apionly for Vue 2.6 code requiring it. - Keep
contentwith smooth streaming for chat; setfinaland disable pacing/cursor for history. - Use
nodesonly for externally owned parsing. Keep HTML safe and Mermaid strict. - Validate the Vite build and worker loading path.
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"
/>
</template>
Limitations
- Vite worker syntax is not portable to Vue CLI/Webpack 4.
- Inline workers can increase bundle size.
- Optional peers may impose additional browser requirements.
Security & Safety Notes
Review worker source, CSP, dependency changes, and bundle impact. Do not relax safe rendering defaults.
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.
Câu hỏi thường gặp
Vite là gì?
Vite là công cụ hiện đại để xây dựng dự án web, nổi tiếng về tốc độ.
Vue 2 là gì?
Vue 2 là phiên bản cũ hơn nhưng vẫn được dùng rộng rãi của một framework phổ biến để tạo giao diện web.
“Workers” là gì?
Workers là các chương trình nhỏ chạy ở nền để thực hiện tác vụ mà không làm đơ giao diện chính của website.
Chi tiết
Mô tả gốc của tác giả
Integrate markstream-vue2 into Vue 2 plus Vite with bundled worker imports, CSS ordering, Composition API compatibility, and safe streaming defaults.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5176
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.