An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
fix: re-add and re-name claude code clear tm commands (#1133)
Jeremy Wattdf26c6563200
diff --git a/.changeset/crazy-zebras-drum.md b/.changeset/crazy-zebras-drum.mdnew file mode 100644index 00000000..e8e9c8f7--- /dev/null+++ b/.changeset/crazy-zebras-drum.md@@ -0,0 +1,5 @@+---+"task-master-ai": minor+---++Restore Taskmaster claude-code commands and move clear commands under /remove to avoid collision with the claude-code /clear command.diff --git a/.claude/commands/tm/remove-subtasks/remove-all-subtasks.md b/.claude/commands/tm/remove-subtasks/remove-all-subtasks.mdnew file mode 100644index 00000000..6cd54d7d--- /dev/null+++ b/.claude/commands/tm/remove-subtasks/remove-all-subtasks.md@@ -0,0 +1,93 @@+Clear all subtasks from all tasks globally.++## Global Subtask Clearing++Remove all subtasks across the entire project. Use with extreme caution.++## Execution++```bash+task-master clear-subtasks --all+```++## Pre-Clear Analysis++1. **Project-Wide Summary**+ ```+ Global Subtask Summary+ ━━━━━━━━━━━━━━━━━━━━+ Total parent tasks: 12+ Total subtasks: 47+ - Completed: 15+ - In-progress: 8+ - Pending: 24++ Work at risk: ~120 hours+ ```++2. **Critical Warnings**+ - In-progress subtasks that will lose work+ - Completed subtasks with valuable history+ - Complex dependency chains+ - Integration test results++## Double Confirmation++```+⚠️ DESTRUCTIVE OPERATION WARNING ⚠️+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━+This will remove ALL 47 subtasks from your project+Including 8 in-progress and 15 completed subtasks++This action CANNOT be undone++Type 'CLEAR ALL SUBTASKS' to confirm:+```++## Smart Safeguards++- Require explicit confirmation phrase+- Create automatic backup+- Log all removed data+- Option to export first++## Use Cases++Valid reasons for global clear:+- Project restructuring+- Major pivot in approach+- Starting fresh breakdown+- Switching to different task organization++## Process++1. Full project analysis+2. Create backup file+3. Show detailed impact+4. Require confirmation+5. Execute removal+6. Generate summary report++## Alternative Suggestions++Before clearing all:+- Export subtasks to file+- Clear only pending subtasks+- Clear by task category+- Archive instead of delete++## Post-Clear Report++```+Global Subtask Clear Complete+━━━━━━━━━━━━━━━━━━━━━━━━━━━+Removed: 47 subtasks from 12 tasks+Backup saved: .taskmaster/backup/subtasks-20240115.json+Parent tasks updated: 12+Time estimates adjusted: Yes++Next steps:+- Review updated task list+- Re-expand complex tasks as needed+- Check project timeline+```\ No newline at end of filediff --git a/.claude/commands/tm/remove-subtasks/remove-subtasks.md b/.claude/commands/tm/remove-subtasks/remove-subtasks.mdnew file mode 100644index 00000000..877ceb8c--- /dev/null+++ b/.claude/commands/tm/remove-subtasks/remove-subtasks.md@@ -0,0 +1,86 @@+Clear all subtasks from a specific task.++Arguments: $ARGUMENTS (task ID)++Remove all subtasks from a parent task at once.++## Clearing Subtasks++Bulk removal of all subtasks from a parent task.++## Execution++```bash+task-master clear-subtasks --id=<task-id>+```++## Pre-Clear Analysis++1. **Subtask Summary**+ - Number of subtasks+ - Completion status of each+ - Work already done+ - Dependencies affected++2. **Impact Assessment**+ - Data that will be lost+ - Dependencies to be removed+ - Effect on project timeline+ - Parent task implications++## Confirmation Required++```+Clear Subtasks Confirmation+━━━━━━━━━━━━━━━━━━━━━━━━━+Parent Task: #5 "Implement user authentication"+Subtasks to remove: 4+- #5.1 "Setup auth framework" (done)+- #5.2 "Create login form" (in-progress)+- #5.3 "Add validation" (pending)+- #5.4 "Write tests" (pending)++⚠️ This will permanently delete all subtask data+Continue? (y/n)+```++## Smart Features++- Option to convert to standalone tasks+- Backup task data before clearing+- Preserve completed work history+- Update parent task appropriately++## Process++1. List all subtasks for confirmation+2. Check for in-progress work+3. Remove all subtasks+4. Update parent task+5. Clean up dependencies++## Alternative Options++Suggest alternatives:+- Convert important subtasks to tasks+- Keep completed subtasks+- Archive instead of delete+- Export subtask data first++## Post-Clear++- Show updated parent task+- Recalculate time estimates+- Update task complexity+- Suggest next steps++## Example++```+/project:tm/clear-subtasks 5+→ Found 4 subtasks to remove+→ Warning: Subtask #5.2 is in-progress+→ Cleared all subtasks from task #5+→ Updated parent task estimates+→ Suggestion: Consider re-expanding with better breakdown+```\ No newline at end of filediff --git a/assets/claude/commands/tm/remove-subtasks/remove-all-subtasks.md b/assets/claude/commands/tm/remove-subtasks/remove-all-subtasks.mdnew file mode 100644index 00000000..6cd54d7d--- /dev/null+++ b/assets/claude/commands/tm/remove-subtasks/remove-all-subtasks.md@@ -0,0 +1,93 @@+Clear all subtasks from all tasks globally.++## Global Subtask Clearing++Remove all subtasks across the entire project. Use with extreme caution.++## Execution++```bash+task-master clear-subtasks --all+```++## Pre-Clear Analysis++1. **Project-Wide Summary**+ ```+ Global Subtask Summary+ ━━━━━━━━━━━━━━━━━━━━+ Total parent tasks: 12+ Total subtasks: 47+ - Completed: 15+ - In-progress: 8+ - Pending: 24++ Work at risk: ~120 hours+ ```++2. **Critical Warnings**+ - In-progress subtasks that will lose work+ - Completed subtasks with valuable history+ - Complex dependency chains+ - Integration test results++## Double Confirmation++```+⚠️ DESTRUCTIVE OPERATION WARNING ⚠️+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━+This will remove ALL 47 subtasks from your project+Including 8 in-progress and 15 completed subtasks++This action CANNOT be undone++Type 'CLEAR ALL SUBTASKS' to confirm:+```++## Smart Safeguards++- Require explicit confirmation phrase+- Create automatic backup+- Log all removed data+- Option to export first++## Use Cases++Valid reasons for global clear:+- Project restructuring+- Major pivot in approach+- Starting fresh breakdown+- Switching to different task organization++## Process++1. Full project analysis+2. Create backup file+3. Show detailed impact+4. Require confirmation+5. Execute removal+6. Generate summary report++## Alternative Suggestions++Before clearing all:+- Export subtasks to file+- Clear only pending subtasks+- Clear by task category+- Archive instead of delete++## Post-Clear Report++```+Global Subtask Clear Complete+━━━━━━━━━━━━━━━━━━━━━━━━━━━+Removed: 47 subtasks from 12 tasks+Backup saved: .taskmaster/backup/subtasks-20240115.json+Parent tasks updated: 12+Time estimates adjusted: Yes++Next steps:+- Review updated task list+- Re-expand complex tasks as needed+- Check project timeline+```\ No newline at end of filediff --git a/assets/claude/commands/tm/remove-subtasks/remove-subtasks.md b/assets/claude/commands/tm/remove-subtasks/remove-subtasks.mdnew file mode 100644index 00000000..877ceb8c--- /dev/null+++ b/assets/claude/commands/tm/remove-subtasks/remove-subtasks.md@@ -0,0 +1,86 @@+Clear all subtasks from a specific task.++Arguments: $ARGUMENTS (task ID)++Remove all subtasks from a parent task at once.++## Clearing Subtasks++Bulk removal of all subtasks from a parent task.++## Execution++```bash+task-master clear-subtasks --id=<task-id>+```++## Pre-Clear Analysis++1. **Subtask Summary**+ - Number of subtasks+ - Completion status of each+ - Work already done+ - Dependencies affected++2. **Impact Assessment**+ - Data that will be lost+ - Dependencies to be removed+ - Effect on project timeline+ - Parent task implications++## Confirmation Required++```+Clear Subtasks Confirmation+━━━━━━━━━━━━━━━━━━━━━━━━━+Parent Task: #5 "Implement user authentication"+Subtasks to remove: 4+- #5.1 "Setup auth framework" (done)+- #5.2 "Create login form" (in-progress)+- #5.3 "Add validation" (pending)+- #5.4 "Write tests" (pending)++⚠️ This will permanently delete all subtask data+Continue? (y/n)+```++## Smart Features++- Option to convert to standalone tasks+- Backup task data before clearing+- Preserve completed work history+- Update parent task appropriately++## Process++1. List all subtasks for confirmation+2. Check for in-progress work+3. Remove all subtasks+4. Update parent task+5. Clean up dependencies++## Alternative Options++Suggest alternatives:+- Convert important subtasks to tasks+- Keep completed subtasks+- Archive instead of delete+- Export subtask data first++## Post-Clear++- Show updated parent task+- Recalculate time estimates+- Update task complexity+- Suggest next steps++## Example++```+/project:tm/clear-subtasks 5+→ Found 4 subtasks to remove+→ Warning: Subtask #5.2 is in-progress+→ Cleared all subtasks from task #5+→ Updated parent task estimates+→ Suggestion: Consider re-expanding with better breakdown+```\ No newline at end of file