본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #5176

markstream-vue2-vite

하는 일

이 도구는 Vite를 사용하는 Vue 2 프로젝트에서 「markstream-vue2」 컴포넌트를 쓰도록 돕습니다. 차트(Mermaid)와 수식(KaTeX) 같은 특별한 기능을 포함해 모든 것이 올바르게 작동하도록 합니다.

사용하는 경우

  • ✓프로젝트가 Vue 2와 Vite를 사용할 때.
  • ✓Vue 2 프로젝트에서 차트(Mermaid)나 수식(KaTeX)이 작동해야 할 때.
  • ✓「markstream-vue2」 컴포넌트를 안전하고 효율적으로 통합할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2-vite/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Vue 2와 Vite를 쓰는 프로젝트에서 차트를 표시하려면 markstream-vue2를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Vite가 markstream-vue2의 특별한 기능(차트 등)을 번들링(bundle)해 사용할 수 있도록 프로젝트를 설정합니다. 텍스트가 표시되는 방식도 더 안전하고 빠르도록 조정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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.

  1. Confirm Vue 2 with Vite and install only requested peers.
  2. Import markstream-vue2/index.css after reset, Tailwind, or UnoCSS layers.
  3. Use package worker entrypoints with Vite ?worker or ?worker&inline imports only when needed.
  4. Add @vue/composition-api only for Vue 2.6 code requiring it.
  5. Keep content with smooth streaming for chat; set final and disable pacing/cursor for history.
  6. Use nodes only for externally owned parsing. Keep HTML safe and Mermaid strict.
  7. 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.

자주 묻는 질문

Vite란 무엇인가요?

빠른 속도로 알려진, 웹 프로젝트를 만드는 현대적인 도구입니다.

Vue 2란 무엇인가요?

웹 사용자 인터페이스를 만드는 인기 프레임워크의 오래된 버전이지만, 여전히 많이 쓰이고 있습니다.

「workers」란 무엇인가요?

웹사이트의 메인 화면을 멈추지 않으면서 작업을 수행하는 백그라운드 작은 프로그램입니다.

상세 정보

작성자의 원본 설명

Integrate markstream-vue2 into Vue 2 plus Vite with bundled worker imports, CSS ordering, Composition API compatibility, and safe streaming defaults.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5176
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬