Best use case
task-focus is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Focus on a specific task with context loading
Teams using task-focus should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/task-focus/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How task-focus Compares
| Feature / Agent | task-focus | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Focus on a specific task with context loading
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 metRelated Skills
task-orchestration
Documentation-first task execution with quality checks and progress tracking. Use when working with task lists, implementing features, or executing multi-step work to ensure systematic completion with proper documentation review.
task-list
List tasks by directory with progress and visual indicators
parallel-task-format
Compact YAML format for defining parallel task specifications with scope, boundaries, and agent assignments. Use when creating task files for parallel development.
generate-tasks
Convert PRD to structured task list with automatic linking
zod
Zod schema validation patterns and type inference. Auto-loads when validating schemas, parsing data, validating forms, checking types at runtime, or using z.object/z.string/z.infer in TypeScript.
typescript-import-style
Merge-friendly import formatting (one-per-line, alphabetical). Auto-loads when writing TypeScript/JavaScript imports to minimize merge conflicts in parallel development. Enforces consistent grouping and sorting.
setup-mcp-auth
Configure authentication for an existing FastMCP server
fastmcp
FastMCP TypeScript framework patterns for MCP servers. Auto-loads when building MCP servers, creating tools/resources/prompts, implementing authentication, configuring transports, or working with FastMCP in TypeScript.
add-mcp-tool
Add a new tool to an existing FastMCP server with guided configuration
add-mcp-resource
Add a new resource or resource template to an existing FastMCP server
plan-with-team
Validate plan file ownership
privacy-compliance
GDPR, CCPA, and privacy compliance guidance for data protection. Use when handling personal data, implementing consent management, or ensuring regulatory compliance across jurisdictions.