Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

1.4 KB
Raw Blame
/**
 * @fileoverview To Cancelled Slash Command
 * Cancel a task permanently.
 */

import { dynamicCommand } from '../../factories.js';

/**
 * The to-cancelled slash command - To Cancelled
 *
 * Cancel a task permanently.
 */
export const toCancelled = dynamicCommand(
	'to-cancelled',
	'To Cancelled',
	'<task-id>',
	`Cancel a task permanently.

Arguments: $ARGUMENTS (task ID)

## Cancelling a Task

This status indicates a task is no longer needed and won't be completed.

## Valid Reasons for Cancellation

- Requirements changed
- Feature deprecated
- Duplicate of another task
- Strategic pivot
- Technical approach invalidated

## Pre-Cancellation Checks

1. Confirm no critical dependencies
2. Check for partial implementation
3. Verify cancellation rationale
4. Document lessons learned

## Execution

\`\`\`bash
task-master set-status --id=$ARGUMENTS --status=cancelled
\`\`\`

## Cancellation Impact

When cancelling:
1. **Dependency Updates**
   - Notify dependent tasks
   - Update project scope
   - Recalculate timelines

2. **Clean-up Actions**
   - Remove related branches
   - Archive any work done
   - Update documentation
   - Close related issues

3. **Learning Capture**
   - Document why cancelled
   - Note what was learned
   - Update estimation models
   - Prevent future duplicates

## Historical Preservation

- Keep for reference
- Tag with cancellation reason
- Link to replacement if any
- Maintain audit trail`,
	'solo'
);