portable-text-conversion
95 / 100 · Low risk
Fine to try.
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.
What this skill can do
Connects to the internet
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'portable-text-conversion' ] || [ -L ~/.agents/skills/'portable-text-conversion' ]; then echo 'A skill folder named portable-text-conversion already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/sanity-io/agent-toolkit' "$d" && git -C "$d" checkout --quiet '3ed3a143f8d3413faa7790ac0b2274fd3a8a6320' -- 'skills/portable-text-conversion' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/portable-text-conversion' ~/.agents/skills/'portable-text-conversion' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'portable-text-conversion' ~/.claude/skills/'portable-text-conversion' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/sanity-io/agent-toolkit/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-07 | 3ed3a14 | 95 |