Registry / sanity-io

sanity-io/agent-toolkit/portable-text-conversion

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 (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.

Agent skill · version 0.0.0-main.1795730491.g627296c · from sanity-io/agent-toolkit

Install

npx yarkr-cli add skill:sanity-io/agent-toolkit/portable-text-conversion

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:sanity-io/agent-toolkit/portable-text-conversion
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:sanity-io/agent-toolkit/portable-text-conversion

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:sanity-io/agent-toolkit/portable-text-conversion

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.