Agent skill

Markstream Migration

by Simon-He95 in Simon-He95/markstream-vue

Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x.

MITAuto-check passedDocuments & Office

Install Markstream Migration

skills CLI
$ npx skills add Simon-He95/markstream-vue --skill markstream-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Simon-He95/markstream-vue markstream-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Simon-He95/markstream-vue.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/markstream-migration .claude/skills/markstream-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
markstream-migration
GitHub stars
3k
Token cost
~2k tokens
SKILL.md length
937 words
Files
4 (incl. references)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x.

  • Works in 7 steps: Audit the repo's current renderer usage. → Classify the migration. → Swap the renderer first. → …
  • Codex needs to replace another renderer
  • SKILL.md covers Choose The Migration Route, Route A: Adopt Markstream From…, Route B: Upgrade… and Default Decisions, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Markstream Migration is an agent skill from Simon-He95/markstream-vue. Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x. Use when Codex needs to replace another renderer, classify direct vs custom vs plugin-heavy adoption, preserve behavior during adoption, migrate custom renderers into scoped Markstream overrides, decide when nodes streaming is worth adopting, or replace removed 1.x code-block dependencies, APIs, preview payloads, and parser types.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/adoption-checklist.md` and `references/vue-1x-to-2x.md`).

It sits in Documents & Office, covering Markdown. It works with Vue.js, React and Mermaid. The repository describes itself as: Multi-framework streaming Markdown renderers for AI apps: Vue/Nuxt, React/Next.js, Svelte, and Angular, with Mermaid, KaTeX, stream-diffs code blocks, safe HTML, and low-jitter… The licence is MIT.

When your agent uses it

  • Codex needs to replace another renderer
  • Classify direct vs custom vs plugin-heavy adoption
  • Preserve behavior during adoption
  • Migrate custom renderers into scoped Markstream overrides

Example prompts

  • “/markstream-migration”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Audit the repo's current renderer usage.
  2. Classify the migration.
  3. Swap the renderer first.
  4. Migrate custom renderers.
  5. Review gaps honestly.
  6. Consider renderer mode and smooth streaming before jumping to nodes.
  7. Validate and summarize.

What it can do on your machine

Read from SKILL.md and the folder at commit d5d0c00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Markstream Migration loads about 2k tokens when it runs, and up to ~5.9k if it reads all its reference files. Until then it costs about 117 tokens; SKILL.md has 937 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~117
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Simon-He95/markstream-vue at commit d5d0c00, republished under its MIT licence (© Simon-He95). 937 words, ~1,981 tokens.

Download SKILL.mdSave it as .claude/skills/markstream-migration/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
markstream-migration
description
Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x. Use when Codex needs to replace another renderer, classify direct vs custom vs plugin-heavy adoption, preserve behavior during adoption, migrate custom renderers into scoped Markstream overrides, decide when `nodes` streaming is worth adopting, or replace removed 1.x code-block dependencies, APIs, preview payloads, and parser types.

Markstream Migration

Use this skill when a repo already renders Markdown and the task is either to adopt Markstream safely or to upgrade an existing markstream-vue 1.x integration to 2.x.

Choose The Migration Route

Inspect package.json, the lockfile, imports, and renderer props before changing code.

  • If the repo already depends on markstream-vue 1.x, read references/vue-1x-to-2x.md and follow Route B. Confirm the package dependency instead of routing only from shared names such as MarkdownCodeBlockNode or InternalParseOptions, which can also appear in other adapters.
  • Otherwise, when replacing react-markdown, markdown-it, marked, or another renderer with a Markstream package, read references/adoption-checklist.md and follow Route A.
  • If both apply, complete the 1.x to 2.x package and API upgrade first, then audit the separate renderer replacement as an adoption task.

Route A: Adopt Markstream From Another Renderer

  1. Audit the repo's current renderer usage.
    • Search for markdown renderers, plugin chains, raw HTML handling, security props, and custom renderers.
    • List every call site that will be touched.
  2. Classify the migration.
    • direct: simple string-in renderer swap.
    • renderer-custom: custom renderers but limited parser work.
    • plugin-heavy: remark, rehype, markdown-it, or other transform-heavy pipelines.
    • security-heavy: allow or deny lists, URL rewriting, sanitization, or raw HTML policies.
  3. Swap the renderer first.
    • Introduce the correct Markstream package and CSS.
    • Import Markstream CSS through the package CSS subpath; do not rely on the renderer import to inject styles.
    • Preserve user-visible behavior before adding richer Markstream-only features.
    • Audit whether the old renderer allowed broad raw HTML or Mermaid loose-mode HTML labels before claiming parity.
  4. Migrate custom renderers.
    • Convert built-in node renderers into scoped node-type overrides.
    • In React, prefer renderer-local streamingComponents for parser-backed tags and htmlComponents for sanitized HTML-prop components; use setCustomComponents for built-in node overrides or shared compatibility registration.
    • In Svelte or Angular, prefer the renderer-local customComponents input when the mapping does not need shared registration.
    • For trusted tag-like content, prefer customHtmlTags.
    • Use parseOptions.preTransformTokens, postTransformTokens, or postTransformNodes only when the old pipeline truly requires token or AST transforms.
  5. Review gaps honestly.
    • Do not claim 1:1 parity where none exists.
    • Call out parser, plugin, security, or HTML behavior that still needs manual review.
  6. Consider renderer mode and smooth streaming before jumping to nodes.
    • For Vue 3, choose mode="chat" for AI/SSE output, mode="docs" for rich document surfaces, and mode="minimal" for lightweight non-chat surfaces.
    • If the app streams content and only needs pacing, smooth-streaming="auto" (the default) handles it without requiring nodes.
    • Move to nodes only when the app needs custom AST control, worker preparsing, or high-frequency structural updates.
    • 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. Do not carry a legacy :fade="!isStreaming" binding into a Vue 3 migration unless the host wants that policy.
    • Streaming vs recovering history: when migrating a chat UI, keep mode="chat" on the same chat row and switch pacing/animation props instead. Vue 3 streaming: mode="chat", final, and optional fade. Vue 3 completed chat history: keep mode="chat", use :smooth-streaming="false" when pacing is unnecessary, and choose fade independently. Use mode="docs" only for separate rich document surfaces.
  7. Validate and summarize.
    • Run the smallest relevant tests or build.
    • Report direct mappings, TODOs, and remaining verification work.
Show full SKILL.md (390 more words)Show less

Route B: Upgrade markstream-vue 1.x To 2.x

  1. Freeze the current integration surface.
    • Record the installed markstream-vue version and package-manager resolution.
    • Find old code-block dependencies, renderer values, props, public types, runtime helpers, preview handlers, and direct parser imports.
    • Identify the smallest build, typecheck, SSR, and code-block checks that prove the current behavior.
  2. Choose one release line.
    • Use the coordinated beta family only after it is published and next resolves to that generation, or markstream-vue@2 after stable release.
    • Check registry versions and dist-tags before editing the manifest; repository version bumps do not prove that a package is installable.
    • Install only the adapter used by the application. Add parser or core directly only when the application imports it directly.
    • Keep packages on the same prerelease generation; do not mix unrelated beta versions.
  3. Apply only the required dependency and API changes from references/vue-1x-to-2x.md.
    • Remove both former code-block runtimes. Rename supported monacoOptions / codeBlockMonacoOptions fields to the shared codeBlockOptions contract and delete unsupported Monaco-only fields.
    • Add stream-diffs only when enhanced code or diff blocks are required; otherwise use the plain fallback.
    • Preserve the existing Markdown, diagram, math, HTML-policy, worker, CSS, streaming, and virtualization setup unless a documented 2.x break requires a change.
  4. Validate the migrated behavior and leave a rollback path.
    • Check package resolution, public types, preview payload consumers, normal and diff fences, themes, responsive diff layout, and SSR or packed installs where relevant.
    • Report the exact 1.x version or legacy dist-tag that restores the previous line.

Default Decisions

  • Renderer swap first, streaming optimization second.
  • Do not treat an existing Markstream version upgrade as a renderer-adoption rewrite.
  • For 1.x to 2.x, preserve application behavior outside the documented code-block and parser changes.
  • Keep a coordinated beta family on one prerelease generation and make rollback explicit before changing dependencies.
  • Smooth streaming is an intermediate option between "just content" and "full nodes migration": it paces visible output without requiring AST control.
  • Preserve safety over feature parity when HTML or security rules are involved.
  • Prefer explicit TODOs over vague claims.
  • Prefer renderer-local component maps where the target framework exposes them.
  • Recommend against migration when the current stack depends heavily on transforms that Markstream does not mirror directly.
  • When preserving trusted legacy behavior is necessary, use scoped htmlPolicy / html-policy="trusted" and mermaidProps.isStrict = false instead of weakening defaults everywhere.

Useful Doc Targets

  • docs/guide/migration-2-0.md
  • docs/guide/react-markdown-migration.md
  • docs/guide/react-markdown-migration-cookbook.md
  • docs/guide/ai-chat-streaming.md
  • docs/guide/installation.md
  • docs/guide/component-overrides.md
  • docs/guide/advanced.md

© Simon-He95, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .agents/skills/markstream-migration of Simon-He95/markstream-vue.

  • SKILL.md
  • agents/openai.yaml
  • references/adoption-checklist.md
  • references/vue-1x-to-2x.md

Open the folder on GitHubat commit d5d0c00

Compare with similar skills

Markstream Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Markstream Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Markstream Migration this skillSimon-He95/markstream-vue3k—~2kAutomated safety check: PassMIT
Portable Textportabletext/editor280—~656Automated safety check: PassMIT
Chatbot Mvp Distillationpdsuwwz/chatgpt-vue3-light-mvp578—~722Automated safety check: PassMIT
Chatbot Mvp Distillation Zhpdsuwwz/chatgpt-vue3-light-mvp578—~414Automated safety check: PassMIT
Portable Text Serializationsanity-io/agent-toolkit1881 repos~1.1kAutomated safety check: PassMIT
Packages Documentationreactive/data-client2k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Portable Text

    portabletext/editor

    Work with Portable Text, a JSON-based specification for structured block content.

    280 GitHub stars~656 tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Chatbot Mvp Distillation

    pdsuwwz/chatgpt-vue3-light-mvp

    Distill the chatgpt-vue3-light-mvp project into reusable architecture for building similar ChatGPT-style web products in other repositories.

    578 GitHub stars~722 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Chatbot Mvp Distillation Zh

    pdsuwwz/chatgpt-vue3-light-mvp

    将 chatgpt-vue3-light-mvp 项目蒸馏为可迁移到其他项目的中文架构指南。适用于设计或实现类似 ChatGPT 的 Web 对话产品,包括 SSE/fetch 流式响应、模型适配器契约、打字机渲染、Markdown/代码/KaTeX/Mermaid 渲染、推理过程展示,以及从本 Vue 3 MVP 迁移到其他项目的方案规划。

    578 GitHub stars~414 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Portable Text Serialization

    sanity-io/agent-toolkit

    Official

    Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text.

    188 GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Packages Documentation

    reactive/data-client

    Write, update, and format documentation for @data-client public APIs - API reference (Docusaurus/MDX), README files, JSDoc/TSDoc docstrings, usage examples, migration guides, deprecation notices…

    2k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • X Article Publisher

    wshuyi/x-article-publisher-skill

    Publish Markdown articles to X (Twitter) Articles editor with proper formatting.

    869 GitHub starsUsed in 2 repos~3.6k tokens
    Documents & OfficeAuto-check passed

More from Simon-He95/markstream-vue

All 11 skills in this repo
  • Markstream Custom Components

    Simon-He95/markstream-vue

    Override built-in Markstream node renderers and add trusted custom tags across Vue, React, Svelte, and Angular.

    3k GitHub stars~955 tokensUpdated 3 days ago
    Auto-check passed
  • Markstream Install

    Simon-He95/markstream-vue

    Install and wire markstream-vue, markstream-react, markstream-vue2, markstream-angular, or markstream-svelte into an existing repository.

    3k GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed
  • Markstream Angular

    Simon-He95/markstream-vue

    Integrate the alpha markstream-angular package into an Angular 20+ app.

    3k GitHub starsUsed in 1 repo~802 tokens
    Auto-check passed
  • Markstream Nuxt

    Simon-He95/markstream-vue

    Integrate markstream-vue into a Nuxt 3 or Nuxt 4 app. An agent skill from Simon-He95/markstream-vue.

    3k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Markstream Vue2

    Simon-He95/markstream-vue

    Integrate markstream-vue2 into a Vue 2.6 or 2.7 app. An agent skill from Simon-He95/markstream-vue.

    3k GitHub starsUsed in 1 repo~733 tokens
    Auto-check passed
  • Markstream Vue2 Vite

    Simon-He95/markstream-vue

    Integrate markstream-vue2 into a Vue 2 plus Vite app. An agent skill from Simon-He95/markstream-vue.

    3k GitHub starsUsed in 1 repo~706 tokens
    Auto-check passed

Questions about Markstream Migration

What does Markstream Migration do?

Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x. Markstream Migration is an agent skill from Simon-He95/markstream-vue.x.

When should I use Markstream Migration?

Markstream Migration fits situations like: Codex needs to replace another renderer; classify direct vs custom vs plugin-heavy adoption; preserve behavior during adoption; migrate custom renderers into scoped Markstream overrides.

How do I install Markstream Migration in Claude Code?

Run `npx skills add Simon-He95/markstream-vue --skill markstream-migration -a claude-code`. Or copy the skill folder (.agents/skills/markstream-migration in Simon-He95/markstream-vue) into .claude/skills/markstream-migration in your project. Claude Code loads it when a task matches its description.

How do I install Markstream Migration in Codex?

Run `npx skills add Simon-He95/markstream-vue --skill markstream-migration -a codex`. Or copy the skill folder (.agents/skills/markstream-migration in Simon-He95/markstream-vue) into .agents/skills/markstream-migration in your project. Codex loads it when a task matches its description.

Can I use Markstream Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Simon-He95/markstream-vue --skill markstream-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/markstream-migration, .gemini/skills/markstream-migration, .github/skills/markstream-migration and .opencode/skills/markstream-migration in your project.

What does Markstream Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Markstream Migration is instructions for the agent only.

Does Markstream Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Markstream Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Markstream Migration use?

Markstream Migration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Markstream Migration use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.

What are the alternatives to Markstream Migration?

Skills that share tags, products or a category with Markstream Migration: Portable Text (portabletext/editor, 280 stars), Chatbot Mvp Distillation (pdsuwwz/chatgpt-vue3-light-mvp, 578 stars), Chatbot Mvp Distillation Zh (pdsuwwz/chatgpt-vue3-light-mvp, 578 stars) and Portable Text Serialization (sanity-io/agent-toolkit, 188 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Markstream Migration?

Simon-He95 (a GitHub user) maintains it in Simon-He95/markstream-vue, which has 3,025 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 5, 2026.

Source: Simon-He95/markstream-vue on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.