Portable Text Conversion

Converts HTML or Markdown content into Portable Text blocks for Sanity.

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 Conversion does

Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext/markdown (markdownToPortableText), @portabletext/block-tools…

How to install Portable Text Conversion

git clone https://github.com/sanity-io/agent-toolkit
cp -r agent-toolkit/skills/portable-text-conversion ~/.claude/skills/portable-text-conversion

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Portable Text Conversion

  • /portable-text-conversion Converts HTML or Markdown content into Portable Text blocks for Sanity.

It also activates on plain-language prompts like these:

  • Convert this Markdown file into Portable Text
  • Migrate this HTML blog post to Sanity's Portable Text
  • Build a pipeline that ingests HTML into Portable Text

Frequently asked questions

Is the Portable Text Conversion 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 Conversion 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 Conversion?
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 Conversion 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.