Markstream Install 标志

Markstream Install

社区热门
Simon-He95
markstream-install

将 markstream-vue、markstream-react、markstream-vue2、markstream-angular 或 markstream-svelte 安装并接入现有仓库。适用于 Codex 需要选择合适的包、安装最精简的框架专用 peer 依赖集、修复 CSS/reset 顺序、选择 Vue 3 渲染器模式和内置、纯文本或自定义代码块路径、决定使用 `content`、`nodes` 还是 Vue 3 虚拟滚动协调方案,或添加最简可运行的渲染器示例时。

Add to TypingMind

概览

发布者Simon-He95
代码仓库markstream-vue
技能名称markstream-install
星标数
3K
复刻数
188
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Simon-He95 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Markstream Install AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Simon-He95/markstream-vue/tree/main/.agents/skills/markstream-install
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Simon-He95/markstream-vue.git /tmp/markstream-vue
mkdir -p .claude/skills
cp -r /tmp/markstream-vue/.agents/skills/markstream-install .claude/skills/markstream-install
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Markstream Install,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Markstream Install。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Markstream Install 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Markstream Install

Use this skill when the task is "add markstream to an app" or "fix a broken markstream install".

Read references/scenarios.md before making dependency choices.

Workflow

  1. Detect the target framework and CSS stack.
    • Check package.json, app entry files, Tailwind or UnoCSS config, and whether the repo is SSR or streaming-focused.
    • Choose the package that matches the host app: markstream-vue, markstream-vue2, markstream-react, markstream-angular, or markstream-svelte.
    • Use markstream-svelte only for Svelte 5 apps.
  2. Install the smallest peer set that matches the requested features.
    • Add peers only for features the user actually needs. Check the chosen package's peerDependencies; peer availability differs by renderer.
    • Vue 3 fenced code uses the built-in renderer automatically. Add stream-diffs for the enhanced File/Diff surface, omit it for automatic <pre><code> fallback, or set render-code-blocks-as-pre to force the plain path.
    • Add @antv/infographic plus setInfographicLoader(...) only when infographic fences are needed.
    • Do not install every optional peer by default.
    • For Vue 3 enhanced code-block preloading, use preloadCodeBlockRuntime from markstream-vue. If the application intentionally owns a runtime controller, import that advanced API directly from stream-diffs.
  3. Fix CSS order.
    • Put reset styles before Markstream styles.
    • In Tailwind or UnoCSS projects, use @import 'markstream-*/index.css' layer(components);.
    • Do not rely on renderer imports to inject CSS; import the package CSS subpath explicitly.
    • Import katex/dist/katex.min.css when math is enabled.
  4. Add the smallest working render example.
    • Use content for static or low-frequency rendering.
    • In Vue 3 apps with long AI conversations, thread restore, or an existing message virtualizer such as vue-virtual-scroller, do not stop at a trivial renderer. Use MarkstreamVirtualTimeline or useMarkstreamVirtualAdapter() and follow docs/guide/performance.md.
    • For Vue 3, choose renderer mode by surface before tuning lower-level props.
      • mode="chat": AI chat or SSE output; lightweight batches, fade=false, max-live-nodes=0, and smooth-streaming="auto".
      • mode="docs": rich document surfaces; default mode, larger batches, tooltips, and fade.
      • mode="minimal": lightweight non-chat surfaces.
      • In Vue 3 (including Nuxt), smooth-streaming controls output pacing and fade controls opacity; they can be enabled together. mode="chat" keeps fade=false as a lightweight default. Add fade when gradual text reveal is desired; keep it off when animation cost matters more.
      • Regular fenced code uses the built-in renderer, enhanced by stream-diffs when installed. Use render-code-blocks-as-pre for a forced plain path or setCustomComponents(customId, { code_block: ... }) for a scoped application-owned renderer.
    • For streaming AI chat in other Markstream packages, start with content and built-in smooth streaming.
      • Auto mode is the default: smoothStreaming="auto" / smooth-streaming="auto".
      • Auto pacing activates when typewriter=true or maxLiveNodes <= 0 / 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.
      • For high-frequency smooth streams, consider fade=false / :fade="false" / [fade]="false" to avoid fade stacking.
    • Streaming vs recovering history: in chat UIs the same renderer starts streaming and later switches to history when final becomes true.
      • Vue 3 streaming: mode="chat", final, optional fade for gradual reveal, and optional typewriter for a cursor.
      • Vue 3 recovering/completed chat history: keep mode="chat" on the same chat row; use :smooth-streaming="false", typewriter=false, and choose fade independently; it may remain enabled during both streaming and history display.
      • Use mode="minimal" for lightweight non-chat recovered content, and use mode="docs" only for rich document surfaces.
      • Other packages streaming: smoothStreaming="auto" / smooth-streaming="auto", fade=false, typewriter=true.
      • Other packages recovering history: smoothStreaming=false / smooth-streaming=false, fade=true, typewriter=false.
      • Optional policy for other packages: smoothStreaming={isStreaming ? 'auto' : false}, fade={!isStreaming}; this is not a required coupling.
    • Use nodes + final only for worker preparsing, shared AST stores, or custom AST control.
    • In Vue 3, use typewriter="simple" for a lightweight cursor on high-frequency streams; use precise mode only when the cursor must follow complex inline layout.
    • For a non-virtual Vue 3 chat scroller, import useStickToBottom from markstream-vue/utils; call scheduleScrollToBottom() after the content update instead of starting a smooth scrollIntoView() animation for every token. Use MarkstreamVirtualTimeline with stick-to-bottom="auto" for long mixed timelines.
    • For manual pacing with nodes, use useSmoothMarkdownStream: enqueue() chunks, finish() when done, render from visible, wait for caughtUp before final parsing.
    • Preserve the default hardening: HTML policies now default to safe, and Mermaid runs in strict mode by default.
  5. Keep customization scoped.
    • If the task requires overrides, prefer customId / custom-id plus scoped setCustomComponents(...).
  6. Validate.
    • Run the smallest relevant build, typecheck, test, or docs build command.
    • Report which peers were installed, where CSS lives, and whether the repo should later adopt nodes.

Default Decisions

  • Prefer the minimal peer set over "install everything".
  • For Vue 3, omit mode only when the surface should use rich docs defaults.
  • Prefer content for most streaming chat now that built-in smooth streaming is available across Vue 3, Vue 2, React, Svelte, and Angular.
  • Move to nodes only when another layer owns parsing or AST transforms.
  • For Vue 3 apps that already virtualize messages, keep the outer virtualizer responsible for mounted rows; use Markstream virtual-scroll coordination so item height comes from metrics.totalHeight, not the renderer DOM height.
  • When using content for streaming, smooth streaming (smooth-streaming="auto") is on by default for typewriter or max-live-nodes <= 0. Set :smooth-streaming="false" to preserve raw chunk cadence.
  • Streaming vs recovering history: keep the renderer mode stable. In Vue 3, fade is independent of pacing and can stay enabled throughout a stream. The conservative fade-off streaming examples for other packages are not an API restriction; those adapters have not adopted the Vue 3 bounded fade implementation. See docs/guide/ai-chat-streaming.md for Vue 3 examples.
  • Treat CSS order as a first-class part of installation, not a later cleanup.
  • When the request includes SSR, explicitly gate browser-only peers behind client-only boundaries.
  • Do not widen HTML or Mermaid security defaults unless the user explicitly needs trusted legacy compatibility.
  • Enhanced code blocks in every Markstream package use stream-diffs; there is no stream-monaco or Shiki direct integration in current versions.
  • Direct CodeBlockNode and top-level renderer configuration use the same codeBlockOptions / CodeBlockOptions contract. Keep component chrome in codeBlockProps; do not nest runtime options there.
  • In Vue 3, large code blocks can be highlighted off the main thread by injecting an upstream @pierre/diffs WorkerPoolManager through setStreamDiffsWorkerPool(...). The host builds the pool with its own bundler and adds @pierre/diffs as a direct dependency. This is a Vue 3-only enhancement; the other framework packages do not expose it.
  • If compatibility requires it, scope the opt-out to the trusted surface with htmlPolicy / html-policy="trusted" and mermaidProps.isStrict = false instead of changing app-wide defaults blindly.

Useful Doc Targets

  • docs/guide/installation.md
  • docs/guide/usage.md
  • docs/guide/performance.md
  • docs/guide/troubleshooting.md
  • docs/guide/component-overrides.md

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Markstream Install AI 技能有什么作用?

将 markstream-vue、markstream-react、markstream-vue2、markstream-angular 或 markstream-svelte 安装并接入现有仓库。适用于 Codex 需要选择合适的包、安装最精简的框架专用 peer 依赖集、修复 CSS/reset 顺序、选择 Vue 3 渲染器模式和内置、纯文本或自定义代码块路径、决定使用 `content`、`nodes` 还是 Vue 3 虚拟滚动协调方案,或添加最简可运行的渲染器示例时。

为什么在 TypingMind 中使用 Markstream Install?

因为您只需安装一次,就能搭配任何模型使用。Markstream Install 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Markstream Install?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Simon-He95/markstream-vue/tree/main/.agents/skills/markstream-install。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Markstream Install?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Markstream Install 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Markstream Install 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Markstream Install AI 技能免费吗?

是的。Simon-He95 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇