---
alwaysApply: true
description: Automatic TODO tracking and task completion management
---

# TODO Task Tracking Rules

## Automatic Task Completion

Whenever you complete a task or implement a feature mentioned in [TODO.md](mdc:TODO.md), you MUST:

1. **Immediately update the TODO.md** by changing `- [ ]` to `- [x]` for the completed task
2. **Use the exact task description** from the TODO - don't modify the text
3. **Update related sub-tasks** if completing a parent task affects them
4. **Add completion timestamp** in a comment if the task was significant

## Task Completion Examples

### ✅ Correct completion marking:
```markdown
- [x] Initialiser Next.js avec TypeScript
- [x] Configurer ESLint, Prettier  
- [x] Setup structure de dossiers selon les règles du workspace
```

### ✅ With timestamp for major milestones:
```markdown
- [x] Créer `services/database.ts` - Pool de connexion DB <!-- Completed 2025-01-15 -->
```

## When to Update TODO.md

Update the TODO immediately after:
- Creating/modifying files mentioned in tasks
- Implementing features described in tasks  
- Completing configuration steps
- Finishing any work item listed in the TODO

## Task Dependencies

When completing tasks, consider:
- **Parent tasks**: Mark parent complete only when ALL sub-tasks are done
- **Blocking tasks**: Some tasks may unblock others - mention this in updates
- **Phase completion**: Note when entire phases are completed

## Progress Tracking

Always maintain visibility of:
- Current phase progress
- Next logical task to tackle
- Any blockers or issues encountered
- Completed vs remaining work ratio

This ensures the TODO.md remains an accurate reflection of project progress and helps maintain momentum.