npx skills add https://github.com/dcramer/dex --skill dex所有命令直接使用 dex。如果不在 PATH 中,请改用 npx @zeeg/dex。
command -v dex &>/dev/null && echo "use: dex" || echo "use: npx @zeeg/dex"
Dex 任务是工单——具有完整上下文的结构化产物:
思考:"仅凭此任务,他人是否能理解其内容、原因和方法?"
切勿在外部产物(提交、PR、文档)中引用 dex 任务 ID。任务完成后,像 abc123 这样的任务 ID 将变得毫无意义。描述工作本身,而非跟踪它的任务。
在以下情况使用 dex:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在以下情况跳过 dex:
一些 AI 智能体(如 Claude Code)具有内置任务工具。这些工具仅限会话内使用,与 dex 不同。
| dex | 内置任务工具
---|---|---
持久性 | 存储在 .dex/ 中的文件 | 仅限会话
上下文 | 丰富(描述 + 上下文 + 结果) | 基础
层级结构 | 3 级(史诗 → 任务 → 子任务) | 扁平
使用 dex 处理持久性工作。仅将内置任务工具用于临时的会话内跟踪。
dex create "简短名称" --description "完整的实现上下文"
描述应包含:需要做什么、为什么、实现方法以及验收标准。查看 examples.md 获取好/坏示例。
dex list # 待处理任务
dex list --ready # 未阻塞任务
dex show <id> # 完整详情
dex complete <id> --result "完成的内容" --commit <sha>
关联了 GitHub/Shortcut 的任务需要提供 --commit <sha> 或 --no-commit:
--commit <sha>(合并后议题关闭)--no-commit(议题保持开放)完成前务必验证。 结果必须包含证据:测试数量、构建状态、手动测试结果。查看 verification.md 获取完整检查清单。
dex edit <id> --description "更新后的描述"
dex delete <id>
有关包含阻塞器的完整 CLI 参考,请参阅 cli-reference.md。
任务有两个文本字段:
dex list 中显示)--full 显示)运行 dex show <id> 时,描述可能会被截断。如果有更多内容,CLI 会提示使用 --full。
接手任务时,收集所有相关上下文:
dex show <id> --full # 完整任务详情
dex show <parent-id> --full # 父级上下文(如适用)
dex show <blocker-id> --full # 阻塞器完成的内容
开始前,确认你能回答:
如果任何答案不明确:
在以下情况下无需完整上下文即可继续:
三个级别:史诗(大型计划)→ 任务(重要工作)→ 子任务(原子步骤)。
选择正确的级别:
小功能(1-2 个文件)→ 单个任务
中等功能(3-7 个步骤)→ 带子任务的任务
大型计划(5 个以上任务)→ 带任务的史诗
dex create --parent <id> "子任务名称" --description "..."
有关详细的层级结构指导,请参阅 hierarchies.md。
在实现并验证后立即完成任务:
你的结果必须包含明确的验证证据。不要只描述你做了什么——要证明它有效。查看 verification.md。
当任务关联到 GitHub 议题(在 dex show 输出中显示)时,请在提交消息中包含议题引用:
Fixes #N
Refs #N
提交前检查 dex show <id> 获取 GitHub 议题信息。"(通过父级)"指示符意味着使用 Refs,直接元数据意味着使用 Fixes。
每周安装量
247
仓库
GitHub 星标数
218
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode199
claude-code187
github-copilot162
codex143
kimi-cli139
gemini-cli122
Use dex directly for all commands. If not on PATH, use npx @zeeg/dex instead.
command -v dex &>/dev/null && echo "use: dex" || echo "use: npx @zeeg/dex"
Dex tasks are tickets - structured artifacts with comprehensive context:
Think: "Would someone understand the what, why, and how from this task alone?"
Never reference dex task IDs in external artifacts (commits, PRs, docs). Task IDs like abc123 become meaningless once tasks are completed. Describe the work itself, not the task that tracked it.
Use dex when:
Skip dex when:
Some AI agents (like Claude Code) have built-in task tools. These are session-only and not the same as dex.
| dex | Built-in Task Tools
---|---|---
Persistence | Files in .dex/ | Session-only
Context | Rich (description + context + result) | Basic
Hierarchy | 3-level (epic → task → subtask) | Flat
Use dex for persistent work. Use built-in task tools for ephemeral in-session tracking only.
dex create "Short name" --description "Full implementation context"
Description should include: what needs to be done, why, implementation approach, and acceptance criteria. See examples.md for good/bad examples.
dex list # Pending tasks
dex list --ready # Unblocked tasks
dex show <id> # Full details
dex complete <id> --result "What was accomplished" --commit <sha>
GitHub/Shortcut-linked tasks require either --commit <sha> or --no-commit:
--commit <sha> when you have code changes (issue closes when merged)--no-commit for non-code tasks like planning or design (issue stays open)Always verify before completing. Results must include evidence: test counts, build status, manual testing outcomes. See verification.md for the full checklist.
dex edit <id> --description "Updated description"
dex delete <id>
For full CLI reference including blockers, see cli-reference.md.
Tasks have two text fields:
dex list)--full)When you run dex show <id>, the description may be truncated. The CLI will hint at --full if there's more content.
When picking up a task, gather all relevant context:
dex show <id> --full # Full task details
dex show <parent-id> --full # Parent context (if applicable)
dex show <blocker-id> --full # What blockers accomplished
Before starting, verify you can answer:
If any answer is unclear:
Proceed without full context when:
Three levels: Epic (large initiative) → Task (significant work) → Subtask (atomic step).
Choosing the right level:
Small feature (1-2 files) → Single task
Medium feature (3-7 steps) → Task with subtasks
Large initiative (5+ tasks) → Epic with tasks
dex create --parent <id> "Subtask name" --description "..."
For detailed hierarchy guidance, see hierarchies.md.
Complete tasks immediately after implementing AND verifying :
Your result must include explicit verification evidence. Don't just describe what you did—prove it works. See verification.md.
When a task is linked to a GitHub issue (shown in dex show output), include issue references in commit messages:
Fixes #N
Refs #N
Check dex show <id> for GitHub issue info before committing. The "(via parent)" indicator means use Refs, direct metadata means use Fixes.
Weekly Installs
247
Repository
GitHub Stars
218
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode199
claude-code187
github-copilot162
codex143
kimi-cli139
gemini-cli122
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
Docassemble 表单构建器技能 - 创建智能动态问卷与文档生成工具
257 周安装
Fastify TypeScript 生产级后端框架指南:高性能 Node.js Web 开发与 JSON 模式验证
257 周安装
AI 演示文稿生成器 | 一键创建专业幻灯片,支持 Marp 格式输出
257 周安装
Mapbox搜索模式指南:地理编码、POI搜索与位置发现最佳实践
257 周安装
Zustand适配器:为json-render提供状态管理后端,支持嵌套切片与Zustand v5+
257 周安装
Blender MCP 插件使用指南:3D 场景自动化与 Python 脚本控制教程
257 周安装