Giverny

Portable Text Conversion

Convert HTML and Markdown content into Portable Text blocks for Sanity.

by Sanity★ 203FrontendOfficial

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

How to install Portable Text Conversion in Claude Code

Giverny gives you a ready prompt with the exact install command from sanity-io/agent-toolkit. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone sanity-io/agent-toolkit and copy the skills/portable-text-conversion folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Portable Text Conversion on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the portable-text-conversion skill on my current project.”

More Claude skills for frontend