Markstream Vue2 Vite
Developmentmarkstream-vue2-viteMarkstream Vue2 Vite is an Agent Skill for development published in the Simon-He95/markstream-vue repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Integrate markstream-vue2 into a Vue 2 plus Vite app. Use when Codex needs Vite-friendly worker imports, `?worker` or `?worker&inline` setup for Mermaid or KaTeX, modern CSS ordering, or Vue 2 compatibility in a Vite-based repository.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Simon-He95/markstream-vue/blob/HEAD/.agents/skills/markstream-vue2-vite/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/markstream-vue2-vite, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Markstream Vue 2 Vite
Use this skill when the host app is Vue 2 and the bundler is Vite.
Workflow
- Confirm the repo is Vue 2 with Vite-based tooling.
- Install
markstream-vue2plus only the requested optional peers. - Import
markstream-vue2/index.cssafter resets. - Use Vite worker imports when the repo needs bundled workers.
markstream-vue2/workers/... ?workeror?worker&inlinepatterns are allowed here.
- Keep Composition API decisions explicit for Vue 2.6 repos.
- For AI chat or streaming UIs, keep
contentand use built-in smooth streaming first.smooth-streaming="auto"is the default and activates whentypewriter=trueormax-live-nodes <= 0.typewriteronly controls the blinking cursor and defaults tofalse.fadecontrols node enter and streamed-text fade animations and defaults totrue.
- Streaming vs recovering history: in chat UIs the same
MarkdownRenderstarts streaming and later switches to history whenfinal=true.- Streaming:
smooth-streaming="auto",:fade="false",typewriter=true. Smooth pacing handles gradual appearance; fade would flicker. - Recovering history:
:smooth-streaming="false",:fade="true",typewriter=false. Content is already complete — pacing would slow it down, but fade gives a polished entry animation. - Dynamic switch:
:smooth-streaming="isStreaming ? 'auto' : false",:fade="!isStreaming".
- Streaming:
- Move to
nodes+finalonly for worker-preparsed content, shared AST stores, or custom AST control. - Remember that
html-policynow defaults tosafe, and Mermaid strict mode is on by default throughmermaid-props.
- For AI chat or streaming UIs, keep
- Validate with the smallest useful Vite dev or build command.
Default Decisions
- Prefer bundled workers over CDN workers in Vite-based Vue 2 repos.
- Keep UnoCSS or Tailwind resets before Markstream CSS.
- Use the generic
markstream-vue2skill only when the bundler-specific choice does not matter. - Keep
html-policy="safe"and Mermaid strict mode unless the task is preserving trusted legacy rendering. - If a trusted surface needs older behavior, use
html-policy="trusted"and:mermaid-props="{ isStrict: false }"only on that surface and explain why.
Useful Doc Targets
docs/guide/vue2-quick-start.mddocs/guide/vue2-installation.mddocs/guide/tailwind.mddocs/guide/troubleshooting.md