🎨 Markstream Vue2 Cli

Integrate markstream-vue2 into a Vue 2 Vue CLI or Webpack 4 app. Use when Codex needs Webpack 4-friendly setup, CDN worker fallbacks for Mermaid or KaTeX, `dist/index.css` imports, Vue 2 composition-a

About Markstream Vue2 Cli

Use this skill when the host app is Vue 2 on Vue CLI or another Webpack 4-style stack.

The 346-word prompt provides structured frontend development guidance — covering detailed methodology and consistent output formats. Paste it into your CLAUDE.md or .cursorrules to activate.

Key Capabilities

  • Use `createKaTeXWorkerFromCDN(...)` and `createMermaidWorkerFromCDN(...)` when workers are needed.
  • `MarkdownCodeBlockNode` plus `stream-markdown` is safer than Monaco in Webpack 4-era repos.
  • For AI chat or streaming UIs, keep `content` and use built-in smooth streaming first.
  • `smooth-streaming="auto"` is the default and activates when `typewriter=true` or `max-live-nodes <= 0`.
  • `typewriter` only controls the blinking cursor and defaults to `false`.

What This Skill Covers

  • Workflow
  • Default Decisions
  • Useful Doc Targets

How It Works

  1. Confirm the repo uses Vue 2 plus Vue CLI or Webpack 4-era tooling.
  2. Install `markstream-vue2` and only the peers required for the requested features.
  3. Import `markstream-vue2/dist/index.css` in the app shell.
  4. Avoid Vite-style `?worker` imports.
  5. Prefer stable code block defaults over brittle Monaco wiring.

Use Cases

  • Building responsive UI components and layouts
  • Implementing accessible, WCAG-compliant interfaces
  • Debugging CSS, animations, and cross-browser issues
  • Integrating design systems and component libraries

Example Prompts

Component Create a responsive card component with hover effects
Form Build a multi-step form with validation

System Prompt (346 words)

Markstream Vue 2 CLI

Use this skill when the host app is Vue 2 on Vue CLI or another Webpack 4-style stack.

Workflow

  • Confirm the repo uses Vue 2 plus Vue CLI or Webpack 4-era tooling.
  • Install markstream-vue2 and only the peers required for the requested features.
  • Import markstream-vue2/dist/index.css in the app shell.
  • Avoid Vite-style ?worker imports.
- Use createKaTeXWorkerFromCDN(...) and createMermaidWorkerFromCDN(...) when workers are needed.
  • Prefer stable code block defaults over brittle Monaco wiring.
- MarkdownCodeBlockNode plus stream-markdown is safer than Monaco in Webpack 4-era repos. - For AI chat or streaming UIs, keep content and use built-in smooth streaming first. - smooth-streaming="auto" is the default and activates when typewriter=true or max-live-nodes <= 0. - typewriter only controls the blinking cursor and defaults to false. - fade controls node enter and streamed-text fade animations and defaults to true. - Streaming vs recovering history: in chat UIs the same MarkdownRender starts streaming and later switches to history when final=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". - Move to nodes + final only for worker-preparsed content, shared AST stores, or custom AST control. - Remember that html-policy now defaults to safe, and Mermaid strict mode is on by default through mermaid-props.
  • Validate with the smallest useful local dev or build command.

Default Decisions

  • Treat Monaco and worker-heavy setups as opt-in and fragile on Webpack 4.
  • Prefer CDN workers over bundler workers for Mermaid and KaTeX.
  • Keep the Vue 2 composition-api shim explicit when the repo is on Vue 2.6.
  • 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.md
  • docs/guide/vue2-installation.md
  • docs/guide/troubleshooting.md

Frequently Asked Questions

What is Markstream Vue2 Cli?

Markstream Vue2 Cli is a free frontend development skill for AI coding agents. Integrate markstream-vue2 into a Vue 2 Vue CLI or Webpack 4 app. Use when Codex needs Webpack 4-friendly setup, CDN worker fallbacks for Mermaid or KaTeX, `dist/index.css` imports, Vue 2 composition-a. It provides a specialized system prompt that configures your agent with frontend development expertise.

How do I use Markstream Vue2 Cli with Claude Code?

Copy the system prompt below and paste it into your CLAUDE.md file or Claude Code's custom instructions to activate Markstream Vue2 Cli.

Which AI coding agents work with Markstream Vue2 Cli?

Markstream Vue2 Cli is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Markstream Vue2 Cli free to use?

Yes, Markstream Vue2 Cli is completely free and open source. The full source is available on GitHub at https://github.com/Simon-He95/markstream-vue/blob/main/.agents/skills/markstream-vue2-cli/SKILL.md. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.