Agent skill

Markstream React

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

Integrate the beta markstream-react package into a React 18+ or Next app.

MITAuto-check passedDocuments & Office

Install Markstream React

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

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

GitHub CLI
$ gh skill install Simon-He95/markstream-vue markstream-react --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-react .claude/skills/markstream-react && 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-react
GitHub stars
3k
Token cost
~1.2k tokens
SKILL.md length
510 words
Files
2
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Integrate the beta markstream-react package into a React 18+ or Next app.

  • Works in 8 steps: Confirm the repo is React 18+ or a… → Install markstream-react plus only the… → Import markstream-react/index.css from… → …
  • Codex needs to add the React renderer
  • SKILL.md covers Workflow, Default Decisions and Useful Doc Targets
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Markstream React is an agent skill from Simon-He95/markstream-vue. Integrate the beta markstream-react package into a React 18+ or Next app. Use when Codex needs to add the React renderer, choose the root, next, or server entrypoint, import CSS correctly, choose between content and nodes, keep client boundaries safe, add renderer-local streamingComponents or htmlComponents, use parser transforms, or prepare a repo for react-markdown migration.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Documents & Office, covering Markdown. It works with React, Vue.js 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 add the React renderer
  • Choose the root
  • Server entrypoint
  • Import CSS correctly

Example prompts

  • “/markstream-react”

Workflow steps

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

  1. Confirm the repo is React 18+ or a compatible Next host and accepts a beta renderer API.
  2. Install markstream-react plus only the requested optional peers.
  3. Import markstream-react/index.css from the app shell or client entry.
  4. Choose the entrypoint that matches the rendering boundary.
  5. Start with content.
  6. Respect SSR boundaries in Next.
  7. Use renderer-local components before custom parser work.
  8. Validate with the smallest useful dev, build, or typecheck command.

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 React loads about 1.2k tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 510 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

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). 510 words, ~1,187 tokens.

Download SKILL.mdSave it as .claude/skills/markstream-react/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
markstream-react
description
Integrate the beta markstream-react package into a React 18+ or Next app. Use when Codex needs to add the React renderer, choose the root, `next`, or `server` entrypoint, import CSS correctly, choose between `content` and `nodes`, keep client boundaries safe, add renderer-local `streamingComponents` or `htmlComponents`, use parser transforms, or prepare a repo for `react-markdown` migration.

Markstream React

Use this skill when the host app is React or Next and the task is to wire Markstream safely.

Workflow

  1. Confirm the repo is React 18+ or a compatible Next host and accepts a beta renderer API.
  2. Install markstream-react plus only the requested optional peers.
  3. Import markstream-react/index.css from the app shell or client entry.
  4. Choose the entrypoint that matches the rendering boundary.
    • Use markstream-react for the normal client renderer.
    • Use markstream-react/next for the Next-specific component surface.
    • Use markstream-react/server for server rendering without client hooks.
  5. Start with content.
    • For streaming or high-frequency AI output, 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}. This is a conservative visual/performance choice, not an API incompatibility. This adapter has not adopted Vue 3's bounded append fades, so verify its animation behavior before enabling both.
      • 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}.
    • Move to nodes + final only for worker-preparsed content, shared AST stores, or custom AST control.
    • Remember that htmlPolicy now defaults to safe, and Mermaid strict mode is on by default through mermaidProps.
  6. Respect SSR boundaries in Next.
    • Prefer use client, dynamic imports with ssr: false, or other client-only boundaries when browser-only peers are involved.
  7. Use renderer-local components before custom parser work.
    • streamingComponents receives parser-backed NodeComponentProps, supports incomplete custom tags, and automatically contributes its keys to the effective customHtmlTags list.
    • htmlComponents receives sanitized HTML attributes plus children; it does not receive the parser node/loading contract.
    • Prefer defineStreamingComponents(...) and defineHtmlComponents(...) for typed maps.
    • Keep scoped setCustomComponents for built-in node overrides or shared compatibility registration.
    • Use parseOptions transforms only when migration requires token or AST changes.
  8. Validate with the smallest useful dev, build, or typecheck command.
Show full SKILL.md (155 more words)Show less

Default Decisions

  • Renderer wiring first, migration cleanup second.
  • If the repo already uses react-markdown, pair this skill with markstream-migration.
  • Prefer content with built-in smooth streaming for most AI chat / token streaming surfaces.
  • Streaming vs recovering history: when a chat message transitions from streaming to history (e.g. final becomes true), switch props dynamically — smoothStreaming="auto", fade={false} for streaming; smoothStreaming={false}, fade={true} for history. See docs/guide/ai-chat-streaming.md for full examples.
  • Move to nodes only when another layer owns parsing or AST transforms.
  • Prefer renderer-local custom-tag maps over global registry mutation.
  • Prefer the smallest client-only boundary that solves the SSR issue.
  • Avoid smoothStreaming={true} for first-screen SSR content unless intentionally starting from blank; auto mode uses the mounted gate.
  • Keep htmlPolicy="safe" and Mermaid strict mode unless the request is preserving trusted legacy rendering.
  • If a trusted surface needs older behavior, use htmlPolicy="trusted" and mermaidProps={{ isStrict: false }} only on that surface and explain why.

Useful Doc Targets

  • docs/guide/react-quick-start.md
  • docs/guide/react-installation.md
  • docs/guide/react-components.md
  • docs/guide/react-next-ssr.md
  • docs/guide/react-markdown-migration.md
  • docs/guide/component-overrides.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 1 other file in .agents/skills/markstream-react of Simon-He95/markstream-vue.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit d5d0c00

Compare with similar skills

Markstream React 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 React compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Markstream React this skillSimon-He95/markstream-vue3k—~1.2kAutomated safety check: PassMIT
Portable Textportabletext/editor280—~656Automated safety check: PassMIT
Chatbot Mvp Distillationpdsuwwz/chatgpt-vue3-light-mvp578—~722Automated safety check: PassMIT
Portable Text Serializationsanity-io/agent-toolkit1871 repos~1.1kAutomated safety check: PassMIT
Chatbot Mvp Distillation Zhpdsuwwz/chatgpt-vue3-light-mvp578—~414Automated 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 yesterday
    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
  • Portable Text Serialization

    sanity-io/agent-toolkit

    Official

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

    187 GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-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
  • 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.

    868 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 2 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 2 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 Migration

    Simon-He95/markstream-vue

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

    3k GitHub stars~2k tokensUpdated 2 days ago
    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

Questions about Markstream React

What does Markstream React do?

Integrate the beta markstream-react package into a React 18+ or Next app. Markstream React is an agent skill from Simon-He95/markstream-vue. Integrate the beta markstream-react package into a React 18+ or Next app.

When should I use Markstream React?

Markstream React fits situations like: Codex needs to add the React renderer; choose the root; server entrypoint; import CSS correctly.

How do I install Markstream React in Claude Code?

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

How do I install Markstream React in Codex?

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

Can I use Markstream React 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-react -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-react, .gemini/skills/markstream-react, .github/skills/markstream-react and .opencode/skills/markstream-react in your project.

What does Markstream React need to run?

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

Does Markstream React 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 React 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 React use?

Markstream React 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 React use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Markstream React?

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

Who maintains Markstream React?

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.