markstream-vue2-cli – skill Lập trình cho agent AI
Tích hợp markstream-vue2 vào Vue CLI hoặc Webpack 4 với CSS tương thích export-map, dự phòng worker qua CDN và cấu hình mặc định an toàn cho khối code.
Cài skill markstream-vue2-cli bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-vue2-cli-902db.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /markstream-vue2-cli – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-vue2-cli-902db.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $markstream-vue2-cli – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-vue2-cli-902db.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /markstream-vue2-cli – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/markstream-vue2-cli-902db.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /markstream-vue2-cli – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Markstream Vue 2 CLI
Overview
Handle Vue CLI and Webpack 4 constraints that differ materially from modern Vue 2/Vite setup.
When to Use
Use when Vue 2 runs on Vue CLI or Webpack 4 and package export maps or Vite worker imports are unavailable.
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 plus Vue CLI/Webpack 4.
2. Install markstream-vue2 and only requested peers.
3. Import markstream-vue2/dist/index.css, because legacy tooling may not understand the CSS export map.
4. Avoid ?worker imports. Use Markstream CDN worker helpers for KaTeX or Mermaid only when needed.
5. Prefer stream-markdown code blocks over fragile Monaco worker wiring.
6. Keep content with smooth streaming for chat; set final and disable pacing/cursor for completed history.
7. Keep HTML safe and Mermaid strict; validate the actual legacy build.
Example
<script>
import MarkdownRender from 'markstream-vue2'
// Legacy Webpack may not resolve the package CSS export map.
import 'markstream-vue2/dist/index.css'
export default {
components: { MarkdownRender },
data: () => ({ content: '# Answer', done: false }),
}
</script>
<template>
<MarkdownRender
:content="content"
:final="done"
:fade="false"
/>
</template>Limitations
- CDN workers require network access and compatible content-security policy.
- Monaco-style worker setups are intentionally not covered.
- Vue 2.6 may also require
@vue/composition-api.
Security & Safety Notes
Do not introduce CDN workers without reviewing CSP, network policy, and dependency trust. Preserve 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.
Skill liên quan
- mason – Tạo mã sạch, hoạt động đúng, khớp với kiến trúc và danh sách kiểm tra.
- matematico-tao – Phân tích độ phức tạp của mã, đồ thị phụ thuộc, đồng thời và bất biến dựa trên các giả…
- matplotlib – Matplotlib là thư viện trực quan hóa nền tảng của Python, dùng để tạo biểu đồ tĩnh, động…
- mcp-tool-developer – Xây dựng máy chủ và công cụ Model Context Protocol (MCP) từ đầu. Phát triển MCP toàn…
- mmx-cli – Dùng mmx để tạo văn bản, ảnh, video, giọng nói và nhạc qua nền tảng AI MiniMax. Dùng khi…
- mobile-developer – Phát triển ứng dụng React Native, Flutter hoặc native với kiến trúc hiện đại. Thành thạo…
- mobile-friendly-test – Mobile-Friendly Test. Dùng khi làm việc với trang có thể truy cập hoặc ảnh chụp màn hình…
- modellix – Tích hợp API/CLI của Modellix để tạo hoặc phiên âm hình ảnh, video, giọng nói bất đồng…