Focus on a specific task with context loading
Loads a task file into focus mode, parsing subtasks into TodoTools and displaying progress. Use this to start working on a specific task with full context and time tracking.
/plugin marketplace add jpoutrin/product-forge/plugin install product-design@product-forge-marketplace<task-id>Category: Task Management
task-focus <task-file>
<task-file>: Required - Path to task file to focus onWhen this command is run, Claude Code should:
Convert task file format to TodoWrite format:
# File format: - [x] 1.1 Task description (2h)
# Todo format: {"id": "1.1", "content": "Task description", "status": "completed", "priority": "medium"}
# Status mapping:
# [ ] → "pending"
# [-] → "in_progress"
# [x] → "completed"
# [~] → "cancelled" (exclude from todos)
Add to task file work log:
## Work Log
### 2025-01-06 14:30 - SESSION START
- Moved to focus
- Current progress: 40%
- Next task: 2.3 Implement JWT tokens
🎯 Focusing on: TASK-001-user-authentication.md
📊 Task Overview:
Title: Implement User Authentication
Progress: 40% (4/10 subtasks)
Estimated remaining: 4.5 hours
Dependencies: All satisfied ✅
📋 Loading tasks into TodoTools...
✅ Loaded 10 tasks (4 completed, 6 pending)
🚀 Next subtask:
2.3 Implement JWT tokens (est. 2h)
💡 To resume this session later:
task-focus tasks/focus/TASK-001-user-authentication.md
Ready to work! Use 'task-done' when completing subtasks.
task-list# Start focusing on a task
task-focus tasks/active/TASK-001-auth.md
# Focus on task from current directory
task-focus ./implement-search.md
# Switch focus (will prompt)
task-focus tasks/active/TASK-002-api.md