task-focus
Focus on a specific task with context loading
What this skill does
# task-focus
**Category**: Task Management
## Usage
```bash
task-focus <task-file>
```
## Arguments
- `<task-file>`: Required - Path to task file to focus on
## Execution Instructions for Claude Code
When this command is run, Claude Code should:
1. Check if focus/ directory is empty (enforce one-task rule)
2. If not empty, show current focus and ask to switch
3. Move the specified task file to tasks/focus/
4. Parse the task file to extract:
- Task metadata (ID, title, status, priority)
- All subtasks with their completion status
- Current progress percentage
5. Load all tasks into TodoWrite tool
6. Update task file header with focus start time
7. Display current progress and next incomplete subtask
8. Show session restoration command for future use
## TodoTools Loading
Convert task file format to TodoWrite format:
```python
# 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)
```
## Focus Session Start
Add to task file work log:
```markdown
## Work Log
### 2025-01-06 14:30 - SESSION START
- Moved to focus
- Current progress: 40%
- Next task: 2.3 Implement JWT tokens
```
## Output Format
```
🎯 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.
```
## Error Handling
- If task file not found: Show available tasks with `task-list`
- If focus not empty: Show current focus and confirm switch
- If task file invalid: Run validation and show errors
- If already in focus: Show message and continue
## Example
```bash
# 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
```
## Implementation Tips for Claude Code
1. **Atomic Move**: Use git mv if in git repo, ensure file moves successfully
2. **Parse Robustly**: Handle various task formats and indentation
3. **Preserve State**: Don't lose work log or metadata during move
4. **Time Tracking**: Start tracking time when focus begins
5. **Dependency Check**: Warn if dependencies not met
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.