使用 AI 构建 Dex 应用
Dex Developer 是 Dex 官方的 coding agent skill。它帮助 Codex、Claude Code、 Cursor 和其他 Agent Skills 客户端,使用 Python、Go、Java、TypeScript 或 Rust 按照 Dex 的公开编程模型开发应用。
该 skill 用于指导应用开发。Dex Server、Worker 和 SuperAgent 在运行时不会加载它。
Skill 可以提供什么帮助
- 根据应用的持久性和协作需求选择合适的设计模式。
- 在实现前设计 Flow、Step、转换和失败路径。
- 选择 Attribute、Channel、Stream、RPC、Timer 和 SubFlow。
- 使用与版本匹配的 SDK API 和可运行示例。
- 测试 Worker 替换、重试、持久等待和恢复。
- 在执行恢复操作前,先通过只读证据诊断 Flow 故障。
源码和 release 位于 superdurable/skill-dex-developer。
安装到 Codex
添加 Super Durable marketplace,然后安装 Dex plugin:
codex plugin marketplace add superdurable/skill-dex-developer
codex plugin add dex@superdurable
启动一个新 task,然后在需要时显式调用:
$dex-developer Design a reliable Dex Flow for this application.
Codex 也可以在 Dex 应用开发任务中自动选择该 skill。
安装到 Claude Code
在 Claude Code 中运行:
/plugin marketplace add superdurable/skill-dex-developer
/plugin install dex@superdurable
/reload-plugins
按以下方式调用:
/dex:dex-developer
安装到 Cursor
Dex plugin 遵循 Cursor 支持的 portable Agent Plugins 标准。在它进入 Cursor 公共 Marketplace 前,团队可以把 GitHub 仓库导入 team marketplace。个人用户可以 直接安装 skill:
npx skills add superdurable/skill-dex-developer --skill dex-developer
需要时可以手动调用:
/dex-developer
Cursor 也可以根据任务上下文自动选择该 skill。
保持 Skill 为最新版本
Agent 使用已经安装或缓存的副本。它们不会在每次 prompt 时获取 GitHub 最新内容, 运行中的 task 也会继续使用 task 启动时加载的版本。
- 在 Codex 中升级 Super Durable marketplace,重新安装 Dex plugin,然后启动新 task。
- 在 Claude Code 中更新 marketplace 并 reload plugin。也可以在 plugin manager 中为 第三方 marketplace 启用自动更新。
- 在 Cursor 中 refresh 或重新安装 plugin。Team marketplace 可以启用 Auto Refresh。 修改本地 plugin 后需要 reload window。
- 直接通过 Agent Skills 安装时,请重新运行安装命令。
Skill release version 与 Dex SDK version 相互独立。Skill 会要求 agent 检查应用实际安装的 SDK,并在选择具体 API 前使用版本匹配的可运行示例。
信任与权限
只从可信来源安装 agent extension。Dex plugin 仅包含指导文件,不声明 MCP server、hook、 credential 或应用运行时代码。会修改运行中 Flow 的恢复操作仍然需要显式授权。