markstream-nuxt

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Markstream Nuxt

Markstream Nuxt

Use this skill when the host app is Nuxt and SSR boundaries matter.
当宿主应用为Nuxt且SSR边界至关重要时,可使用本技能。

Workflow

工作流程

  1. Confirm the repo is Nuxt 3 or 4.
  2. Install
    markstream-vue
    plus only the optional peers required by the requested features.
  3. Keep browser-only peers behind client-only boundaries.
    • Prefer
      <client-only>
      wrappers,
      .client
      plugins, or guarded setup paths.
  4. Import
    markstream-vue/index.css
    from a client-safe app shell or plugin.
  5. Start with
    content
    , and move to
    nodes
    plus
    final
    only when the UI is streaming.
  6. Validate with the smallest relevant Nuxt dev, build, or typecheck command.
  1. 确认仓库为Nuxt 3或4版本。
  2. 安装
    markstream-vue
    以及所需功能仅需的可选依赖项。
  3. 将仅浏览器依赖项置于仅客户端边界之后。
    • 优先使用
      <client-only>
      包装器、
      .client
      插件或受保护的配置路径。
  4. 从客户端安全的应用壳层或插件中导入
    markstream-vue/index.css
  5. content
    开始,仅当UI处于流式传输状态时,才切换为
    nodes
    搭配
    final
  6. 使用最相关的最小化Nuxt开发、构建或类型检查命令进行验证。

Default Decisions

默认决策

  • SSR safety comes before feature completeness.
  • Avoid import-time access to browser globals from server code paths.
  • Treat Monaco, Mermaid workers, and similar heavy peers as client-only unless the repo already has a proven SSR pattern.
  • SSR安全优先于功能完整性。
  • 避免在服务器代码路径中于导入时访问浏览器全局对象。
  • 除非仓库已有成熟的SSR模式,否则将Monaco、Mermaid Worker及类似的重型依赖项视为仅客户端使用。

Useful Doc Targets

有用的文档目标

  • docs/nuxt-ssr.md
  • docs/guide/installation.md
  • docs/guide/usage.md
  • docs/guide/troubleshooting.md
  • docs/nuxt-ssr.md
  • docs/guide/installation.md
  • docs/guide/usage.md
  • docs/guide/troubleshooting.md