OpenParable
Skip to content
← Back to skills

Markstream Svelte

Development
markstream-svelte

Markstream Svelte is an Agent Skill for development published in the Simon-He95/markstream-vue repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Integrate markstream-svelte in Svelte 5 apps. Svelte 4 unsupported.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Simon-He95/markstream-vue/blob/HEAD/.agents/skills/markstream-svelte/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/markstream-svelte, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Markstream Svelte

  • Confirm Svelte 5; ask Svelte 4 users to upgrade.
  • Add package and only requested peers.
  • Import CSS after resets; KaTeX CSS for math.
  • Default to <MarkdownRender {content} />.
    • For streaming AI chat, keep content and use built-in smooth streaming first.
      • smoothStreaming="auto" is the default and activates when typewriter={true} or maxLiveNodes <= 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 renderer starts streaming and later switches to history when final={true}.
      • Streaming: smoothStreaming="auto", fade={false}, typewriter={true}. Smooth pacing handles gradual appearance; fade would flicker.
      • Recovering history: smoothStreaming={false}, fade={true}, typewriter={false}. Content is already complete — pacing would slow it down, but fade gives a polished entry animation.
      • Dynamic switch: smoothStreaming={isStreaming ? 'auto' : false}, fade={!isStreaming}.
    • Use nodes + final for worker-preparsed content, shared AST stores, or custom AST control.
  • Use $props() and callbacks.
  • Workers: setKaTeXWorker, setMermaidWorker, workers/*?worker.
  • Custom UI: scoped setCustomComponents, customId, customHtmlTags.
  • Verify with svelte-check, build, or e2e.