Loading...
Loading...
Create dex task from markdown planning documents (plans, specs, design docs, roadmaps)
npx skill4agent add dcramer/dex dex-plandexdex <command>dexnpx @zeeg/dex <command>command -v dex &>/dev/null && echo "use: dex" || echo "use: npx @zeeg/dex"/dex-plan~/.claude/plans/*.mdSPEC.mdREQUIREMENTS.mdDESIGN.mdARCHITECTURE.mdROADMAP.md/dex-plan <markdown-file-path>/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
...# User Authentication Specification
## Requirements
...| Level | Name | Example |
|---|---|---|
| L0 | Epic | "Add user authentication system" |
| L1 | Task | "Implement JWT middleware" |
| L2 | Subtask | "Add token verification function" |
--parentauth-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 testsCreated 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 abc123bugfix-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 spacesCreated task xyz789 from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show xyz789full-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 tokensCreated 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 subtaskdex show <task-id>dex create "..." --parent <task-id> --description "..."dex complete <task-id> --result "..."dex show <task-id>/dex-plandex plandex plan <markdown-file> [options]dex show <task-id>## Implementation
1. Create database schema → SUBTASK
2. Build API endpoints → SUBTASK
3. Add frontend components → SUBTASK### 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### `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"## Implementation Sequence
**Phase 1: Database Layer**
[Details] → SUBTASK
**Phase 2: API Layer**
[Details] → SUBTASK
**Phase 3: Frontend Layer**
[Details] → SUBTASKdex create "<subtask-description>" \
--parent <parent-task-id> \
--description "<extracted-context-with-parent-reference>"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>## Implementation Steps
1. Create User model with email, password fields
2. Add POST /api/auth/register endpoint
3. Implement JWT token generationdex 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'."### 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 successdex 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'."# Plan: Fix Typo in Error Message
## Problem
Error message says 'Sucessful' instead of 'Successful'
## Solution
Fix typo in src/messages.ts line 42