Saltar al contenido
Skillpedia
Sitios e interfaces (frontend)48 mil · #5175

markstream-vue2-cli

Qué hace

Esta herramienta te ayuda a usar la librería 'markstream-vue2' en proyectos antiguos de Vue 2 que usan Vue CLI o Webpack 4. Asegura que el CSS funcione correctamente y ofrece alternativas para funciones modernas que podrían no ser compatibles.

Cuándo usarla

  • ✓Cuando tu proyecto de Vue 2 usa Vue CLI o Webpack 4.
  • ✓Si no puedes usar funciones modernas como los 'package export maps' o las importaciones de 'workers' de Vite.
  • ✓Para integrar 'markstream-vue2' sin romper tu proyecto existente.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2-cli/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Cómo puedo usar markstream-vue2 en mi proyecto de Vue 2 con Webpack 4?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta ajusta cómo se importa y se configura 'markstream-vue2' para que funcione con las limitaciones de Vue CLI y Webpack 4. Importa el CSS por separado y usa alternativas para funciones como los workers.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

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.

Preguntas frecuentes

¿Qué son los 'package export maps'?

Son una forma más moderna de organizar e importar partes de una librería de JavaScript. Los proyectos antiguos podrían no entender esta organización.

¿Qué son los 'CDN worker fallbacks'?

Son alternativas para ejecutar ciertas tareas (como renderizar fórmulas matemáticas) usando código descargado de internet (CDN) si el método principal no funciona en tu entorno.

¿Por qué usar 'conservative code-block defaults'?

Significa que la herramienta usa configuraciones más seguras y sencillas para los bloques de código, evitando problemas de compatibilidad o seguridad en entornos antiguos.

Detalles

Descripción original del autor

Integrate markstream-vue2 into Vue CLI or Webpack 4 with export-map-safe CSS, CDN worker fallbacks, and conservative code-block defaults.

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#5175
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas