
Portable Text Conversion
作者 sanity-io88d6cdfa7cb0MIT收錄於 2026年10月8日更新於 2026年10月8日
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技能

View Pdf
anthropics
在互動式檢視器中開啟 PDF,用於註解、填寫表單和放置視覺化簽名。

Wiki Ado Convert
microsoft
產生一個 Node.js 指令碼,將 VitePress/GFM markdown 轉換為相容 Azure DevOps Wiki 的 markdown 副本。
openai
讀取、建立並以視覺方式檢查 PDF 檔案,將頁面算繪成影像,並使用 Python 函式庫進行產生與擷取。

Esign Field Placement
affaan-m
以書面工作流程約定,用數值座標在瀏覽器簽署器中放置電子簽章欄位,預設存為草稿並設操作員閘門。

Visa Doc Translate
affaan-m
將簽證申請文件影像翻譯成英文,並產出包含原圖與譯文的雙語 PDF。

Google Workspace Ops
affaan-m
操作 Google Workspace 的文件、試算表、簡報與雲端硬碟資源:尋找、檢查、編輯並清理共用檔案。