Portable Text Serialization
sanity-io/agent-toolkit
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text.
Work with Portable Text, a JSON-based specification for structured block content.
$ npx skills add portabletext/editor --skill portable-text -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install portabletext/editor portable-text --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/apps/docs/public .claude/skills/portable-text && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .claude/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/portabletext/editor/tree/main/apps/docs/publicType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add portabletext/editor --skill portable-text -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install portabletext/editor portable-text --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/apps/docs/public .agents/skills/portable-text && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .agents/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add portabletext/editor --skill portable-text -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install portabletext/editor portable-text --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/apps/docs/public .cursor/skills/portable-text && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .cursor/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/portabletext/editor.git --path apps/docs/public--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add portabletext/editor --skill portable-text -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install portabletext/editor portable-text --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/apps/docs/public .gemini/skills/portable-text && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .gemini/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install portabletext/editor portable-textInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add portabletext/editor --skill portable-text -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .github/skills && cp -r skills-src/apps/docs/public .github/skills/portable-text && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .github/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add portabletext/editor --skill portable-text -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install portabletext/editor portable-text --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/apps/docs/public .opencode/skills/portable-text && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "portable-text" agent skill from https://github.com/portabletext/editor/tree/main/apps/docs/public into .opencode/skills/portable-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "portable-text", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
portable-textWork with Portable Text, a JSON-based specification for structured block content.
Portable Text is an agent skill from portabletext/editor. Work with Portable Text, a JSON-based specification for structured block content. Use this skill to render Portable Text in React, HTML, Vue, Svelte, or Markdown, to build a block content editor with @portabletext/editor, or to convert HTML and Markdown into Portable Text.
Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files.
It sits in Documents & Office, covering Markdown. It works with React, Svelte and Vue.js. The repository describes itself as: The Standalone Portable Text Editor. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 60a494b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
portabletext.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Portable Text loads about 656 tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 264 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from portabletext/editor at commit 60a494b, republished under its MIT licence (© portabletext). 264 words, ~656 tokens.
.claude/skills/portable-text/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Portable Text is an open, JSON-based specification for structured block content.
Content is stored as an array of typed blocks: each block has a _type and
carries its own data. The same content renders to React, HTML, Markdown, or any
other target through a serializer.
Full documentation index: https://www.portabletext.org/llms.txt
Complete corpus: https://www.portabletext.org/llms-full.txt
Every page is available as Markdown by appending .md (e.g. /rendering/react.md).
Pick the serializer for the target. Pass the Portable Text value to it.
@portabletext/react exposes <PortableText value={value} />. Override
defaults with the components prop (marks, types, block, list).
See /rendering/react.md.@portabletext/to-html (toHTML). Works in Node, Deno, edge, and
browsers. See /rendering/html.md.@portabletext/vue. See /rendering/vue.md.@portabletext/svelte. See /rendering/svelte.md.@portabletext/markdown. See /rendering/markdown.md.Unknown block types are skipped unless you provide a component for them, so custom types never crash a render.
@portabletext/editor is a headless, schema-driven React editor.
defineSchema({decorators, styles, lists, ...}).EditorProvider to supply the schema and initial value.PortableTextEditable for the editable surface.EventListenerPlugin from @portabletext/editor/plugins.Toolbars come from @portabletext/toolbar and keyboard shortcuts from
@portabletext/keyboard-shortcuts. Editor behavior is customized through the
Behavior API (defineBehavior). Start at /editor/getting-started.md.
@portabletext/block-tools (htmlToBlocks).
See /conversion/html-to-portable-text.md.@portabletext/markdown.
See /conversion/markdown-to-portable-text.md.Read /llms-full.txt for the full documentation, or fetch the .md variant of
the relevant page. Do not invent block types or component APIs; the schema and
the serializer components map define what exists.
© portabletext, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files in apps/docs/public of portabletext/editor.
Open the folder on GitHubat commit 60a494b
Portable Text next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Portable Text this skillportabletext/editor | 280 | — | ~656 | Automated safety check: Pass | MIT | |
| Portable Text Serializationsanity-io/agent-toolkit | 188 | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Markstream MigrationSimon-He95/markstream-vue | 3k | — | ~2k | Automated safety check: Pass | MIT | |
| Markstream ReactSimon-He95/markstream-vue | 3k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Markstream Custom ComponentsSimon-He95/markstream-vue | 3k | — | ~955 | Automated safety check: Pass | MIT | |
| Wayfinder Developmentslimani-dev/muraqib | 128 | 1 repos | ~622 | Automated safety check: Pass | MIT |
sanity-io/agent-toolkit
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text.
Simon-He95/markstream-vue
Audit and migrate existing Markdown rendering to Markstream, or upgrade a markstream-vue 1.x integration to 2.x.
Simon-He95/markstream-vue
Integrate the beta markstream-react package into a React 18+ or Next app.
Simon-He95/markstream-vue
Override built-in Markstream node renderers and add trusted custom tags across Vue, React, Svelte, and Angular.
slimani-dev/muraqib
A skill your agent uses for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes.
nirholas/three.ws
Add the Shaders WebGPU mouse effect used for the Tidal Commons hero: a white twinkling halftone cursor trail driven by ChromaFlow, masked through a DotGrid, finished with chromatic ripples and film…
portabletext/editor
Write clear, concise, accessible product copy for interfaces, docs, and system messages.
portabletext/editor
How to write changesets in the Portable Text Editor monorepo.
portabletext/editor
How to write commit messages in the Portable Text Editor monorepo.
portabletext/editor
How the next prerelease branch for the upcoming editor major works in the Portable Text Editor monorepo.
portabletext/editor
How to backport a fix from main to a maintenance branch (editor-v6.x, editor-v7.x) in the Portable Text Editor monorepo.
portabletext/editor
How to write and review code comments in the Portable Text Editor monorepo.
Categories
Work with Portable Text, a JSON-based specification for structured block content. Portable Text is an agent skill from portabletext/editor. Work with Portable Text, a JSON-based specification for structured block content.
Portable Text fits situations like: render Portable Text in React; build a block content editor with @portabletext/editor; convert HTML and Markdown into Portable Text.
Run `npx skills add portabletext/editor --skill portable-text -a claude-code`. Or copy the skill folder (apps/docs/public in portabletext/editor) into .claude/skills/portable-text in your project. Claude Code loads it when a task matches its description.
Run `npx skills add portabletext/editor --skill portable-text -a codex`. Or copy the skill folder (apps/docs/public in portabletext/editor) into .agents/skills/portable-text in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add portabletext/editor --skill portable-text -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/portable-text, .gemini/skills/portable-text, .github/skills/portable-text and .opencode/skills/portable-text in your project.
SKILL.md names no scripts, command-line tools or credentials: Portable Text is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: portabletext.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Portable Text is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 656 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Portable Text: Portable Text Serialization (sanity-io/agent-toolkit, 188 stars), Markstream Migration (Simon-He95/markstream-vue, 3k stars), Markstream React (Simon-He95/markstream-vue, 3k stars) and Markstream Custom Components (Simon-He95/markstream-vue, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
portabletext (a GitHub organization) maintains it in portabletext/editor, which has 280 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 6, 2026.
Source: portabletext/editor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.