creating-zed-extensions
✓使用自定義斜杠命令、語言支持、主題或 MCP 服務器創建 Zed 擴展時使用 - 提供 Rust/WASM 擴展結構、斜杠命令 API(run_slash_command、SlashCommandOutput)以及已編譯擴展的開發工作流程
SKILL.md
Zed extensions are Rust programs compiled to WebAssembly that can provide slash commands, language support, themes, grammars, and MCP servers. Extensions implement the zed::Extension trait and are distributed via Zed's extension registry.
| Wrong crate type | WASM compilation fails | Use crate-type = ["cdylib"] in Cargo.toml | | Missing error handling | Extension crashes | Return Err(String) for failures | | Not validating args | Silent failures | Check args.isempty() for required args | | Hardcoded paths | Extension not portable | Use relative paths or worktree context |
| Missing default case | Unhandled commands crash | Add => Err(...) in match | | Unlicensed extension | Rejected by registry | Include approved license in extension.toml | | Blocking operations | Freezes Zed UI | Use async or spawn threads for long operations |
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/pr-pm/prpm --skill creating-zed-extensions- 分類
- >_效率工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 creating-zed-extensions?
使用自定義斜杠命令、語言支持、主題或 MCP 服務器創建 Zed 擴展時使用 - 提供 Rust/WASM 擴展結構、斜杠命令 API(run_slash_command、SlashCommandOutput)以及已編譯擴展的開發工作流程 來源:pr-pm/prpm。
如何安裝 creating-zed-extensions?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/pr-pm/prpm --skill creating-zed-extensions 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/pr-pm/prpm
詳情
- 分類
- >_效率工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01