Portable Text Serialization
Renders and serializes Portable Text into React, Vue, Astro, HTML, or Markdown.
Test report
- Verdict
- In test queue
- Tested
- —
- Environment
- Pending
In the test queue — machine-screened (validator 85/100, 161★ repo), full install/trigger/output test scheduled.
What Portable Text Serialization does
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering…
How to install Portable Text Serialization
git clone https://github.com/sanity-io/agent-toolkit
cp -r agent-toolkit/skills/portable-text-serialization ~/.claude/skills/portable-text-serialization
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Portable Text Serialization
-
/portable-text-serializationRenders and serializes Portable Text into React, Vue, Astro, HTML, or Markdown.
It also activates on plain-language prompts like these:
-
Render this Portable Text content in a React component -
Convert Portable Text to a Markdown string -
Build a custom serializer for our custom block types
Frequently asked questions
- Is the Portable Text Serialization skill free?
- Yes. The skill itself is free from sanity-io/agent-toolkit. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Portable Text Serialization work with Claude Code?
- It is in our test queue — we run every skill on real work before issuing a verdict, and this one is scheduled.
- How do I install Portable Text Serialization?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Portable Text Serialization with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.