Start a fresh conversation. Replace the highlighted placeholders.
Use markstream-custom-components to plan a scoped [built-in override or trusted tag] for [framework], preview the intended dependency and source edits, and obtain my explicit approval before making changes; keep custom tags trusted and sanitized.
Required inputs
[built-in override or trusted tag]
[framework]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: markstream-custom-componentsdescription: "Override Markstream node renderers and add trusted custom tags across Vue, React, Svelte, and Angular using scoped or renderer-local mappings."category: frontendrisk: criticalsource: https://github.com/Simon-He95/markstream-vue/tree/main/.agents/skills/markstream-custom-componentssource_repo: Simon-He95/markstream-vuesource_type: officialdate_added: "2026-07-21"author: Simon-He95tags: [markdown, components, vue, react, svelte, angular]tools: [claude, cursor, gemini, codex]license: MITlicense_source: https://github.com/Simon-He95/markstream-vue/blob/main/license
Markstream Custom Components
Overview
Customize specific Markstream nodes or trusted custom tags without replacing the parser or leaking global renderer state. Read references/patterns.md first.
When to Use
Use to replace built-ins such as image, link, code_block, mermaid, or inline_code; render trusted tags such as thinking; or scope overrides to one renderer or app. Use parser transforms only when token or AST reshaping is required.
Workflow
Before changing dependencies or source files, inspect the existing package manager and project conventions, preview the intended edits, and obtain explicit user approval.
Classify the change as a built-in override, trusted tag, or parser transform.
Prefer scoped mappings. Vue, Vue 2, Svelte, and Angular can use setCustomComponents(customId, mapping); Svelte and Angular can also pass renderer-local maps.
In React, prefer streamingComponents for parser-backed nodes and htmlComponents for sanitized attributes plus children.
Start with leaf nodes before containers that must preserve children.
For trusted tag bodies containing Markdown, use a nested renderer with the same allowlist. Do not add a second smooth-streaming loop.
Preserve node/loading props, identity keys, scope IDs, theme state, and preview-height estimates for async diagrams.
Remove temporary scoped registrations on cleanup and validate repeated and nested tags.