
Portable Text Serialization
作者 sanity-io88d6cdfa7cb0MIT收錄於 2026年10月8日更新於 2026年10月8日
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.
新增到 SourceWeft 工作區
- 在儀表板中開啟該技能,並將它新增到工作區。
- 為需要使用它的對話啟用該技能。
該技能僅含說明:不附帶任何可執行的腳本。
新增到 SourceWeft系統會先要求你登入,然後直接帶你回到這個技能。
讓你的代理程式來安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 或其他能執行命令的代理程式中,也可以貼上到 SourceWeft 對話裡。代理程式會閱讀這個技能的安裝說明,向你展示它的來源、授權條款和腳本情況,在你同意後用 SourceWeft CLI 安裝。
閱讀 https://sourceweft.com/skills/gh-sanity-io-agent-toolkit-portable-text-serialization/install.md 中的說明,按說明安裝這個技能。安裝前先告訴我它的來源、授權條款以及是否附帶腳本,等我確認。修改我電腦上的其他任何內容之前也要先問我。用命令列自行安裝
適用於 Claude Code、Codex、Cursor 及其他本機代理程式。SourceWeft CLI 會從原始碼儲存庫中取得此處掃描過的那次提交,並根據掃描時記錄的雜湊值逐一驗證每個檔案。只要有任何不一致,就不會寫入任何內容。
npx @sourceweft/cli skills install gh-sanity-io-agent-toolkit-portable-text-serialization新增 --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-serialization來源與署名
來源:sanity-io/agent-toolkit位於skills/portable-text-serialization提交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 Conversion
sanity-io
將 HTML 與 Markdown 內容轉換為 Sanity 的 Portable Text 區塊。

Content Modeling Best Practices
sanity-io
為無頭 CMS 的結構化內容建模提供指引,涵蓋結構描述設計、內容重用、參照與分類法。

Content Experimentation Best Practices
sanity-io
為內容實驗與 A/B 測試的規劃與結果解讀提供指引,以提升轉換率和參與度。
更多Software Development技能

Playground
anthropics
建立自成一體的互動式 HTML 遊樂場,包含控制項、即時預覽與可複製的提示詞輸出。

M5 Onboard
anthropics
透過 USB 偵測 M5Stack ESP32 開發板,燒錄 UIFlow 2.0 韌體並安裝 MicroPython 應用程式套件。

Cardputer Buddy
anthropics
指導迭代 Cardputer-Adv 的 MicroPython 應用程式套件:新增應用程式、透過 USB 序列埠推送檔案、查看日誌並執行 REPL 指令。

Testing Strategy
anthropics
設計測試策略與測試計畫,涵蓋測試類型、覆蓋率目標與範例測試案例。

Tech Debt
anthropics
辨識、分類並排序技術債,產出評分後的待辦清單與分階段改善計畫。

System Design
anthropics
透過需求、高階設計、深入設計、擴充與取捨分析來指導系統與架構設計。