
Portable Text Conversion
作者 sanity-io88d6cdfa7cb0MIT188 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3天前更新
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.
添加到 SourceWeft 工作区
- 在控制台中打开该技能,并将它添加到工作区。
- 为需要使用它的对话启用该技能。
该技能仅含说明:不附带任何可执行的脚本。
添加到 SourceWeft系统会先要求你登录,然后直接带你回到这个技能。
让你的智能体来安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 或其他能运行命令的智能体中,也可以粘贴到 SourceWeft 对话里。智能体会阅读这个技能的安装说明,向你展示它的来源、许可证和脚本情况,在你同意后用 SourceWeft CLI 安装。
阅读 https://sourceweft.com/skills/gh-sanity-io-agent-toolkit-portable-text-conversion/install.md 中的说明,按说明安装这个技能。安装前先告诉我它的来源、许可证以及是否附带脚本,等我确认。修改我电脑上的其他任何内容之前也要先问我。用命令行自行安装
适用于 Claude Code、Codex、Cursor 及其他本地智能体。SourceWeft CLI 会从源代码仓库中获取此处扫描过的那次提交,并根据扫描时记录的哈希值逐一校验每个文件。只要有任何不一致,就不会写入任何内容。
npx @sourceweft/cli skills install gh-sanity-io-agent-toolkit-portable-text-conversion添加 --agent claude-code、codex、cursor 或 universal 来选择安装给哪个智能体(默认为 Claude Code)。
上游安装器——未经 SourceWeft 校验
开源的 skills 安装器会获取同一个固定的提交,但不会根据 SourceWeft 记录的哈希值校验文件。
npx skills add https://github.com/sanity-io/agent-toolkit/tree/88d6cdfa7cb06c99edd5f376efa4dac21ae3f877/skills/portable-text-conversion来源与署名
来源:sanity-io/agent-toolkit位于skills/portable-text-conversion提交88d6cdf
许可证: MIT
内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。
更多来自 sanity-io/agent-toolkit 的技能

Seo Aeo Best Practices
sanity-io
SEO 与 AEO 参考指南:元数据、结构化数据、EEAT 以及面向 AI 答案的优化。

Sanity Studio Upgrade
sanity-io
通过检查代码仓库,规划 Sanity Studio v3 及更高版本的升级,只报告实际适用的破坏性变更。

Sanity Migration
sanity-io
规划、实施并审查从其他 CMS 和内容系统迁移到 Sanity 的工作。

Portable Text Serialization
sanity-io
指导将 Sanity Portable Text 渲染和序列化为 React、Svelte、Vue、Astro、HTML、Markdown 和纯文本。

Content Modeling Best Practices
sanity-io
为无头 CMS 的结构化内容建模提供指导,涵盖模式设计、内容复用、引用与分类法。

Content Experimentation Best Practices
sanity-io
为内容实验与 A/B 测试的规划与结果解读提供指导,以提升转化率和参与度。
更多Documents & Office技能
openai
读取、创建并目视检查 PDF 文件,将页面渲染为图像,并使用 Python 库进行生成与提取。

View Pdf
anthropics
在交互式查看器中打开 PDF,用于批注、填写表单和放置可视化签名。

Wiki Ado Convert
microsoft
生成一个 Node.js 脚本,将 VitePress/GFM markdown 转换为兼容 Azure DevOps Wiki 的 markdown 副本。

Esign Field Placement
affaan-m
以书面工作流约定,用数值坐标在浏览器签署器中放置电子签名字段,默认存为草稿并设操作员闸门。

Visa Doc Translate
affaan-m
将签证申请文件图片翻译成英文,并生成包含原图与译文的双语 PDF。

Google Workspace Ops
affaan-m
操作 Google Workspace 的文档、表格、幻灯片和云端硬盘资源:查找、检查、编辑并清理共享文件。