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.
Install
npx skills add sanity-io/agent-toolkit --skill portable-text-conversionnpx skills add sanity-io/agent-toolkit --skill portable-text-conversion -a claude-code -gnpx skills add sanity-io/agent-toolkit --skill portable-text-conversion -a codex -ggemini skills install https://github.com/sanity-io/agent-toolkit.git --path skills/portable-text-conversiongh skill install sanity-io/agent-toolkit portable-text-conversiongit clone --depth 1 https://github.com/sanity-io/agent-toolkit /tmp/sanity-io__agent-toolkit
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/sanity-io__agent-toolkit/skills/portable-text-conversion ~/.claude/skills/portable-text-conversion # Claude Code
cp -R /tmp/sanity-io__agent-toolkit/skills/portable-text-conversion ~/.agents/skills/portable-text-conversion # Codex, Cursor, Gemini CLI, Copilot, OpenCode