npx skills add https://github.com/dcramer/dex --skill dex-plan所有命令直接使用 dex:
dex <命令>
如果 dex 不在 PATH 中,请改用 npx @zeeg/dex <命令>。开始时检查一次:
command -v dex &>/dev/null && echo "使用: dex" || echo "使用: npx @zeeg/dex"
使用 /dex-plan 可将任何 Markdown 规划文档转换为可追踪的 dex 任务。
任何包含规划或设计内容的 Markdown 文件:
~/.claude/plans/*.md)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
SPEC.md, REQUIREMENTS.md)DESIGN.md, ARCHITECTURE.md)ROADMAP.md)/dex-plan <markdown-文件路径>
从规划模式:
/dex-plan /home/user/.claude/plans/moonlit-brewing-lynx.md
从规范文档:
/dex-plan @SPEC.md
从设计文档:
/dex-plan docs/AUTHENTICATION_DESIGN.md
从路线图:
/dex-plan ROADMAP.md
# 标题提取标题(或使用文件名作为后备)从规划模式文件:
# Plan: Add JWT Authentication
## Summary
...
→ 任务描述:"Add JWT Authentication"(注意:"Plan: " 前缀已去除)
从规范文档:
# User Authentication Specification
## Requirements
...
→ 任务描述:"User Authentication Specification"
创建主任务后,技能会分析计划结构,以确定将其分解为子任务是否能增加价值。
技能支持最多 3 个层级(dex 强制实施的最大深度):
| 层级 | 名称 | 示例 |
|---|---|---|
| L0 | 史诗 | "Add user authentication system" |
| L1 | 任务 | "Implement JWT middleware" |
| L2 | 子任务 | "Add token verification function" |
当计划具有以下情况时,技能会创建子任务:
史诗级分解(创建任务,而非子任务)当:
技能保持单一任务当:
当发生分解时,每个子任务包括:
--parent 自动链接到主任务输入计划 (auth-plan.md):
# Plan: Add Authentication System
## Implementation
1. Create database schema for users/tokens
2. Implement auth controller with endpoints
3. Add JWT middleware for route protection
4. Build frontend login/register forms
5. Add integration tests
输出:
Created task abc123 from plan
Analyzed plan structure: Found 5 distinct implementation steps
Created 5 subtasks:
- abc124: Create database schema for users/tokens
- abc125: Implement auth controller with endpoints
- abc126: Add JWT middleware for route protection
- abc127: Build frontend login/register forms
- abc128: Add integration tests
View full structure: dex show abc123
输入计划 (bugfix-plan.md):
# Plan: Fix Login Validation Bug
## Problem
Login fails when username has spaces
## Solution
Update validation regex in auth.ts line 42 to allow spaces
输出:
Created task xyz789 from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show xyz789
输入计划 (full-auth-plan.md):
# Plan: Complete User Authentication System
## Phase 1: Backend Infrastructure
1. Create database schema for users and sessions
2. Implement password hashing with bcrypt
3. Add JWT token generation and validation
## Phase 2: API Endpoints
1. POST /auth/register - User registration
2. POST /auth/login - User login
3. POST /auth/logout - Session invalidation
4. POST /auth/reset-password - Password reset flow
## Phase 3: Frontend Integration
1. Login/register forms with validation
2. Protected route components
3. Session persistence with refresh tokens
输出:
Created epic abc123 from plan
Analyzed plan structure: Found 3 major phases with sub-items
Created as epic with 3 tasks:
- def456: Backend Infrastructure (3 subtasks)
- ghi789: API Endpoints (4 subtasks)
- jkl012: Frontend Integration (3 subtasks)
View full structure: dex list abc123
/dex-plan <文件> --priority 2 # 设置优先级
/dex-plan <文件> --parent abc123 # 创建为子任务
创建后,您可以:
dex show <任务-id>dex create "..." --parent <任务-id> --description "..."dex complete <任务-id> --result "..."运行 dex show <任务-id> 以查看完整的任务结构,包括任何自动创建的子任务。
这些说明适用于执行 /dex-plan 的技能代理。 请严格按照此工作流程操作:
使用提供的 Markdown 文件执行 dex plan 命令:
dex plan <markdown-文件> [选项]
这将创建父任务并返回其 ID。捕获此 ID 用于后续步骤。
创建主任务后,将其读回以分析其结构:
dex show <任务-id>
检查上下文字段(包含完整的 Markdown)以了解分解潜力。
分析计划结构并决定:是否应将其分解为子任务?
编号或项目符号实现列表(3-7 项):
## Implementation
1. Create database schema → 子任务
2. Build API endpoints → 子任务
3. Add frontend components → 子任务
实现/任务/步骤下的清晰子部分:
### 1. Backend Changes
- Modify server.ts
- Add authentication
→ 子任务:"Backend Changes" 包含此上下文
### 2. Frontend Updates
- Update login form
- Add error handling
→ 子任务:"Frontend Updates" 包含此上下文
文件特定部分:
### `src/auth.ts` - Add JWT validation
[Details about changes]
→ 子任务:"Add JWT validation to auth.ts"
### `src/middleware.ts` - Create auth middleware
[Details about changes]
→ 子任务:"Create auth middleware"
顺序阶段:
## Implementation Sequence
**Phase 1: Database Layer**
[Details] → 子任务
**Phase 2: API Layer**
[Details] → 子任务
**Phase 3: Frontend Layer**
[Details] → 子任务
对于每个识别的子任务:
提取描述:使用列表项文本、标题或部分标题
提取上下文:包含来自该部分的相关细节
创建子任务:
dex create "<子任务-描述>" \
--parent <父任务-id> \
--description "<提取的上下文-包含父引用>"
如果创建了子任务:
Created task <id> from plan
Analyzed plan structure: Found <N> distinct implementation steps
Created <N> subtasks:
- <subtask-id-1>: <description-1>
- <subtask-id-2>: <description-2>
- <subtask-id-3>: <description-3>
...
View full structure: dex show <parent-id>
如果未发生分解:
Created task <id> from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show <id>
示例 1:编号列表
## Implementation Steps
1. Create User model with email, password fields
2. Add POST /api/auth/register endpoint
3. Implement JWT token generation
提取的子任务:
dex create "Create User model with email, password fields" \
--parent abc123 \
--description "Create a User model with email and password fields. This is part of 'Add Authentication System'."
dex create "Add POST /api/auth/register endpoint" \
--parent abc123 \
--description "Add POST /api/auth/register endpoint to handle user registration. This is part of 'Add Authentication System'."
dex create "Implement JWT token generation" \
--parent abc123 \
--description "Implement JWT token generation for authenticated sessions. This is part of 'Add Authentication System'."
示例 2:包含细节的子部分
### Frontend: Login Form Component
Create a new React component at `src/components/LoginForm.tsx`:
- Email and password inputs
- Submit button with loading state
- Error message display
- Validation on submit
### Backend: Auth Routes
Add to `src/routes/auth.ts`:
- POST /login endpoint
- Password verification using bcrypt
- JWT token generation on success
提取的子任务:
dex create "Frontend: Login Form Component" \
--parent abc123 \
--description "Create a new React component at src/components/LoginForm.tsx with email/password inputs, submit button with loading state, error message display, and validation on submit. This is part of 'Add Authentication System'."
dex create "Backend: Auth Routes" \
--parent abc123 \
--description "Add to src/routes/auth.ts: POST /login endpoint, password verification using bcrypt, JWT token generation on success. This is part of 'Add Authentication System'."
示例 3:不应 分解
# Plan: Fix Typo in Error Message
## Problem
Error message says 'Sucessful' instead of 'Successful'
## Solution
Fix typo in src/messages.ts line 42
决策:单一内聚任务,仅一个更改。不 创建子任务。
每周安装量
231
仓库
GitHub 星标数
217
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode184
claude-code174
github-copilot152
codex132
kimi-cli131
gemini-cli109
Use dex directly for all commands:
dex <command>
If dex is not on PATH, use npx @zeeg/dex <command> instead. Check once at the start:
command -v dex &>/dev/null && echo "use: dex" || echo "use: npx @zeeg/dex"
Use /dex-plan to convert any markdown planning document into a trackable dex task.
Any markdown file containing planning or design content:
~/.claude/plans/*.md)SPEC.md, REQUIREMENTS.md)DESIGN.md, ARCHITECTURE.md)ROADMAP.md)/dex-plan <markdown-file-path>
From plan mode:
/dex-plan /home/user/.claude/plans/moonlit-brewing-lynx.md
From specification document:
/dex-plan @SPEC.md
From design document:
/dex-plan docs/AUTHENTICATION_DESIGN.md
From roadmap:
/dex-plan ROADMAP.md
# heading (or uses filename as fallback)From plan mode file:
# Plan: Add JWT Authentication
## Summary
...
→ Task description: "Add JWT Authentication" (note: "Plan: " prefix stripped)
From specification document:
# User Authentication Specification
## Requirements
...
→ Task description: "User Authentication Specification"
After creating the main task, the skill analyzes the plan structure to determine if breaking it into subtasks adds value.
The skill supports up to 3 levels (maximum depth enforced by dex):
| Level | Name | Example |
|---|---|---|
| L0 | Epic | "Add user authentication system" |
| L1 | Task | "Implement JWT middleware" |
| L2 | Subtask | "Add token verification function" |
The skill creates subtasks when the plan has:
Epic-level breakdown (creates tasks, not subtasks) when:
The skill keeps a single task when:
When breakdown occurs, each subtask includes:
--parentInput plan (auth-plan.md):
# Plan: Add Authentication System
## Implementation
1. Create database schema for users/tokens
2. Implement auth controller with endpoints
3. Add JWT middleware for route protection
4. Build frontend login/register forms
5. Add integration tests
Output :
Created task abc123 from plan
Analyzed plan structure: Found 5 distinct implementation steps
Created 5 subtasks:
- abc124: Create database schema for users/tokens
- abc125: Implement auth controller with endpoints
- abc126: Add JWT middleware for route protection
- abc127: Build frontend login/register forms
- abc128: Add integration tests
View full structure: dex show abc123
Input plan (bugfix-plan.md):
# Plan: Fix Login Validation Bug
## Problem
Login fails when username has spaces
## Solution
Update validation regex in auth.ts line 42 to allow spaces
Output :
Created task xyz789 from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show xyz789
Input plan (full-auth-plan.md):
# Plan: Complete User Authentication System
## Phase 1: Backend Infrastructure
1. Create database schema for users and sessions
2. Implement password hashing with bcrypt
3. Add JWT token generation and validation
## Phase 2: API Endpoints
1. POST /auth/register - User registration
2. POST /auth/login - User login
3. POST /auth/logout - Session invalidation
4. POST /auth/reset-password - Password reset flow
## Phase 3: Frontend Integration
1. Login/register forms with validation
2. Protected route components
3. Session persistence with refresh tokens
Output :
Created epic abc123 from plan
Analyzed plan structure: Found 3 major phases with sub-items
Created as epic with 3 tasks:
- def456: Backend Infrastructure (3 subtasks)
- ghi789: API Endpoints (4 subtasks)
- jkl012: Frontend Integration (3 subtasks)
View full structure: dex list abc123
/dex-plan <file> --priority 2 # Set priority
/dex-plan <file> --parent abc123 # Create as subtask
Once created, you can:
dex show <task-id>dex create "..." --parent <task-id> --description "..."dex complete <task-id> --result "..."Run dex show <task-id> to see the full task structure including any automatically created subtasks.
These instructions are for the skill agent executing/dex-plan. Follow this workflow exactly:
Execute the dex plan command with the provided markdown file:
dex plan <markdown-file> [options]
This creates the parent task and returns its ID. Capture this ID for subsequent steps.
After creating the main task, read it back to analyze its structure:
dex show <task-id>
Examine the context field (which contains the full markdown) for breakdown potential.
Analyze the plan structure and decide : Should this be broken down into subtasks?
Numbered or bulleted implementation lists (3-7 items):
## Implementation
1. Create database schema → SUBTASK
2. Build API endpoints → SUBTASK
3. Add frontend components → SUBTASK
Clear subsections under implementation/tasks/steps:
### 1. Backend Changes
- Modify server.ts
- Add authentication
→ SUBTASK: "Backend Changes" with this context
### 2. Frontend Updates
- Update login form
- Add error handling
→ SUBTASK: "Frontend Updates" with this context
File-specific sections:
### `src/auth.ts` - Add JWT validation
[Details about changes]
→ SUBTASK: "Add JWT validation to auth.ts"
### `src/middleware.ts` - Create auth middleware
[Details about changes]
→ SUBTASK: "Create auth middleware"
Sequential phases:
## Implementation Sequence
**Phase 1: Database Layer**
[Details] → SUBTASK
**Phase 2: API Layer**
[Details] → SUBTASK
**Phase 3: Frontend Layer**
[Details] → SUBTASK
For each identified subtask:
Extract description: Use the list item text, heading, or section title
Extract context: Include relevant details from that section
Create the subtask:
dex create "<subtask-description>" \
--parent <parent-task-id> \
--description "<extracted-context-with-parent-reference>"
If subtasks were created:
Created task <id> from plan
Analyzed plan structure: Found <N> distinct implementation steps
Created <N> subtasks:
- <subtask-id-1>: <description-1>
- <subtask-id-2>: <description-2>
- <subtask-id-3>: <description-3>
...
View full structure: dex show <parent-id>
If no breakdown occurred:
Created task <id> from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show <id>
Example 1: Numbered list
## Implementation Steps
1. Create User model with email, password fields
2. Add POST /api/auth/register endpoint
3. Implement JWT token generation
Extracted subtasks:
dex create "Create User model with email, password fields" \
--parent abc123 \
--description "Create a User model with email and password fields. This is part of 'Add Authentication System'."
dex create "Add POST /api/auth/register endpoint" \
--parent abc123 \
--description "Add POST /api/auth/register endpoint to handle user registration. This is part of 'Add Authentication System'."
dex create "Implement JWT token generation" \
--parent abc123 \
--description "Implement JWT token generation for authenticated sessions. This is part of 'Add Authentication System'."
Example 2: Subsections with details
### Frontend: Login Form Component
Create a new React component at `src/components/LoginForm.tsx`:
- Email and password inputs
- Submit button with loading state
- Error message display
- Validation on submit
### Backend: Auth Routes
Add to `src/routes/auth.ts`:
- POST /login endpoint
- Password verification using bcrypt
- JWT token generation on success
Extracted subtasks:
dex create "Frontend: Login Form Component" \
--parent abc123 \
--description "Create a new React component at src/components/LoginForm.tsx with email/password inputs, submit button with loading state, error message display, and validation on submit. This is part of 'Add Authentication System'."
dex create "Backend: Auth Routes" \
--parent abc123 \
--description "Add to src/routes/auth.ts: POST /login endpoint, password verification using bcrypt, JWT token generation on success. This is part of 'Add Authentication System'."
Example 3: Should NOT break down
# Plan: Fix Typo in Error Message
## Problem
Error message says 'Sucessful' instead of 'Successful'
## Solution
Fix typo in src/messages.ts line 42
Decision: Single cohesive task, only one change. Do NOT create subtasks.
Weekly Installs
231
Repository
GitHub Stars
217
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
opencode184
claude-code174
github-copilot152
codex132
kimi-cli131
gemini-cli109
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装