What problem does it solve?
Closing a task safely requires validating that all gates were passed, ensuring the PR is finalized, and cleaning up local and remote work artifacts. This Skill orchestrates end-to-end finalization of a task by enforcing gate checks, marking DONE, and performing workspace cleanup.
Core Features & Use Cases
- Enforces sequential gate checks (no uncommitted changes, no unpushed commits, PR review feedback, and final PR state) before marking a task as DONE.
- Updates the task state to DONE (or Cancelado) and triggers notification hooks; supports post-completion cleanup including worktree removal and branch hygiene.
- Handles edge cases such as PRs that are merged, closed, or open, and provides guided prompts or overrides when needed.
- Supports dry-run mode to preview operations without applying changes.
Quick Start
Run /optimus-done T-012 to securely finalize a task and clean up its workspace after the PR final state is reached.