markstream-vue2
Integrate markstream-vue2 into a Vue 2.6 or 2.7 app. Use when Codex needs Vue 2-compatible setup, `@vue/composition-api` decisions, CSS wiring, optional peer setup, or scoped Markstream overrides in a Vue 2 repository that is not specifically Vue CLI / Webpack 4 constrained.
How do I install this agent skill?
npx skills add https://github.com/simon-he95/markstream-vue --skill markstream-vue2Is this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides instructions for integrating a Vue 2 markdown rendering library. It includes security-relevant configuration advice such as using strict mode for diagram rendering and maintaining safe HTML policies.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Markstream Vue 2
Use this skill when the host app is Vue 2 and not specifically a Vue CLI / Webpack 4 edge case.
Workflow
- Confirm the repo is Vue 2.6 or 2.7.
- Install
markstream-vue2.- Add
@vue/composition-apionly when the repo is Vue 2.6 and uses Composition API patterns.
- Add
- Import
markstream-vue2/index.cssafter resets. - Start with
<MarkdownRender :content="markdown" />.- 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. This is a conservative visual/performance choice, not an API incompatibility. This adapter has not adopted Vue 3's bounded append fades, so verify its animation behavior before enabling both. - 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
- Use scoped custom component mappings when the task needs overrides or trusted tags.
- Validate with the smallest useful dev or build command.
Default Decisions
- Vue 2.7 can use built-in Composition API support.
- Vue 2.6 needs
@vue/composition-apionly when the codebase actually relies on Composition API. - If the repo is Vue CLI / Webpack 4, prefer
markstream-vue2-cli. - If the repo is Vue 2 plus Vite worker imports, prefer
markstream-vue2-vite. - 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/vue2-components.mddocs/guide/troubleshooting.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/simon-he95/markstream-vue/markstream-vue2">View markstream-vue2 on skillZs</a>