R

Remove Streamlined

A command template for orchestration workflows. Streamlines development with pre-configured patterns and best practices.

CommandClipticsorchestrationv1.0.0MIT
0 views0 copies

Remove Streamlined

Safely remove tasks, files, or components from the orchestration system with full dependency analysis, impact assessment, and automated reference cleanup.

When to Use This Command

Run this command when...

  • You need to remove a task from the orchestration system and want all dependencies and references updated automatically
  • A feature or component is being deprecated and you want to cleanly detach it from the task graph
  • You want impact analysis before removing anything to understand what else will be affected
  • You need to clean up completed or abandoned tasks while preserving system consistency
  • You are pruning stale items from the orchestration backlog with full traceability

Quick Start

# .claude/commands/remove-streamlined.md --- name: Remove Streamlined description: Remove tasks or components with dependency and impact analysis command: true --- Remove safely: $ARGUMENTS 1. Identify the target for removal 2. Analyze dependencies and downstream impact 3. Present impact report for confirmation 4. Execute removal and update all references 5. Verify system consistency
# Invoke the command claude "/remove-streamlined TASK-003" # Expected output # > Analyzing TASK-003 for removal... # > Impact Analysis: # > Direct dependencies: TASK-004, TASK-007 (will need re-linking) # > Referenced in: sprint-plan.md, status-report.md # > Blocked tasks: none # > Confirm removal? [y/n] # > Removing TASK-003... # > Updated: TASK-004 (removed dependency), TASK-007 (removed dependency) # > Updated: 2 documentation files # > Removal complete. System consistency verified.

Core Concepts

ConceptDescription
Impact AnalysisScans all tasks, docs, and references to show the full effect of removal before executing
Dependency RewiringAutomatically updates or removes dependency links in tasks that referenced the removed item
Force ModeBypasses confirmation prompts for scripted or batch removal scenarios
Cascade DetectionIdentifies tasks that become orphaned or unblocked as a side effect of removal
Consistency CheckPost-removal verification ensures no dangling references or broken dependency chains
Remove Streamlined Pipeline
============================

  Target ID --> Impact Scan --> Dependency Map --> Confirm
      |              |               |               |
  Validate      Find all          Map upstream    Show impact
  existence     references        and downstream  to user
                                  links               |
                                                      v
                              Verify <-- Update Refs <-- Execute
                                |            |             |
                           Check for    Rewire deps    Delete task
                           danglers     Update docs    Clean files

Configuration

ParameterDescriptionDefaultExampleRequired
$ARGUMENTSTask ID or component name to removenone"TASK-003"Yes
forceSkip confirmation promptfalsetrueNo
cascadeAlso remove orphaned dependent tasksfalsetrueNo
dry_runShow impact analysis without executing removalfalsetrueNo
archiveMove to archive instead of permanent deletiontruefalseNo

Best Practices

  1. Always review the impact analysis -- Even for tasks you believe are isolated, the impact scan may reveal unexpected dependencies. Read the report before confirming.

  2. Use dry_run for batch operations -- Before removing multiple tasks, run each with dry_run: true to understand the cumulative effect on the dependency graph.

  3. Prefer archive over delete -- Keep archive: true (the default) so removed tasks can be restored if needed. Permanent deletion should be reserved for test data or duplicates.

  4. Remove leaf tasks first -- When cleaning up a group of related tasks, start with tasks that have no dependents and work inward. This avoids complex cascade situations.

  5. Check for blocked tasks after removal -- A removed task may have been blocking others. After removal, review newly unblocked tasks to see if they should be started.

Common Issues

Cascade removes more than expected: When cascade: true is set, deeply connected tasks can trigger chain removal. Always preview with dry_run first to see the full cascade tree.

Archived tasks still appear in reports: Some report commands include archived tasks by default. Use --exclude-archived flags in report commands or clean up the archive periodically.

Removal blocked by active dependencies: Tasks with in-progress dependents cannot be removed without force. Either complete or reassign the dependent tasks first, or use force: true with caution.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates