AI / Skills Workflows
If you use Codex, Cursor, Claude Code, ChatGPT, or another coding assistant to adopt markstream, the fastest way to get useful output is to give the tool the right constraints up front.
This page is intentionally practical: copyable prompts, rollout checklists, and what a reusable markstream-focused skill should cover.
Start with your goal
- Want packaged skills you can install right now: jump to Install the packaged skills
- Want ready-made prompt templates without cloning the repo: jump to Copyable prompts
- Want to migrate from another renderer with an assistant: start with Copyable prompts and the rollout pattern below
- Want to version reusable AI assets inside your own repo: read Repository assets
Install the packaged skills
For end users, the recommended command is the shared skills installer:
npx skills add Simon-He95/markstream-vueThat path works because the repository now publishes reusable skills under .agents/skills, which npx skills can discover directly from GitHub.
The Vercel skills installer also supports multiple source formats:
# GitHub shorthand (owner/repo)
npx skills add Simon-He95/markstream-vue
# Full GitHub URL
npx skills add https://github.com/Simon-He95/markstream-vue
# Direct path to one skill in this repo
npx skills add https://github.com/Simon-He95/markstream-vue/tree/main/.agents/skills/markstream-install
# Any git URL
npx skills add git@github.com:Simon-He95/markstream-vue.gitIf you specifically want the package CLI, you can still use:
npx markstream-vue skills install
# or
pnpm dlx markstream-vue skills installUseful variants:
npx markstream-vue skills list
npx markstream-vue skills install --target codex
npx markstream-vue skills install --target ./tmp/skills-test --mode copy --forcenpx skills add Simon-He95/markstream-vueis the primary recommendation for Codex-compatible skill installationskills installdefaults tocopy, which is safer fornpxanddlxusage- the default target is
~/.agents/skills --target codextargets${CODEX_HOME:-~/.codex}/skills--targetaccepts eitheragents,codex, or any custom path--forcereplaces existing installs at the target path
The prompts stay in the repository under prompts/; the packaged installer only handles the skill folders.
The same CLI can also expose bundled prompt templates:
npx markstream-vue prompts list
npx markstream-vue prompts show install-markstreamThat is usually the easiest way for npm users to discover the maintained prompt set without cloning the repository.
Repository assets
This repository now includes reusable assets you can version with the codebase:
.agents/skills/markstream-install/.agents/skills/markstream-custom-components/.agents/skills/markstream-migration/prompts/install-markstream.mdprompts/override-built-in-components.mdprompts/add-custom-tag-thinking.mdprompts/migrate-react-markdown.mdprompts/audit-markstream-integration.md
Use .agents/skills/ when you want reusable Codex workflow assets that GitHub-based installers can discover automatically. Use prompts/ when you want copyable starting prompts for humans or other assistants.
1. Give the AI these five facts first
Before you ask for code changes, include:
- framework and version, for example Vue 3, Nuxt 3, React 18, or Angular 20
- CSS stack, for example Tailwind, UnoCSS, reset libraries, or a design system
- rendering mode: static article, docs site, SSR, or streaming chat
- required peers: Monaco, Mermaid, D2, KaTeX, or Shiki
- whether overrides must stay scoped to one area of the app
Without that context, assistants often install the wrong peers or place CSS in the wrong order.
2. Copyable prompts
Install markstream in an existing Vue 3 app
Install markstream-vue into this Vue 3 app.
Use the smallest peer-dependency set that matches these needs: [fill in Monaco / Mermaid / D2 / KaTeX / Shiki].
Keep CSS order safe with my existing stack: [fill in Tailwind / UnoCSS / reset library].
Add one minimal render example, and explain whether I should use `content` or `nodes`.
If you replace or override anything, keep it scoped with `custom-id`.Migrate from react-markdown
Migrate this React codebase from react-markdown to markstream-react.
Audit which remark/rehype behaviors have no direct 1:1 equivalent.
Replace simple renderer overrides first, then call out anything that needs custom nodes, customHtmlTags, or parser/node post-processing.
Preserve existing user-visible behavior where practical.Add a custom tag such as thinking
Add support for a trusted custom Markdown tag named `thinking`.
Use `customHtmlTags` plus a scoped `setCustomComponents` mapping.
Render nested Markdown inside the custom component, and keep the implementation streaming-friendly.
Do not use global overrides unless there is a clear reason.Debug styling or SSR issues
Audit this markstream integration for CSS order, reset conflicts, optional peers, and SSR-only problems.
Check whether `markstream-vue/index.css` is loaded in the correct layer, whether KaTeX CSS is missing, and whether browser-only peers are gated behind client-only boundaries.
Explain the smallest fix set.3. What a reusable markstream skill should do
If you are building a reusable prompt, template, or coding skill around markstream, it should reliably cover these steps:
- detect the framework and package manager
- install only the required peers for the requested features
- place CSS after resets and inside
@layer componentswhen utility frameworks are involved - choose
contentfor simple rendering andnodesplusfinalfor streaming - use
custom-idfor overrides by default - point the user to the right docs page after making changes
Good follow-up links for a skill to cite:
- Installation
- Usage & Streaming
- Override Built-in Components
- Custom Tags & Advanced Components
- Troubleshooting
4. Point AI agents at the agent context file
For repository-aware assistants, also point them to:
That file is agent-facing. This page is human-facing. In practice, the best results come from giving the assistant both:
- the task-specific prompt from this page
- the repository context file from
/llms
5. A rollout pattern that works well
When the task is bigger than a one-file demo, ask the assistant to work in this order:
- install and verify peers
- make the base renderer work
- fix CSS order
- add scoped overrides or custom tags
- run tests or docs build
That sequence prevents most “it compiled but looks wrong” outcomes.