Complete the current active task (Phase 2 of task completion workflow)
Finalizes the current task by updating metadata, squashing commits, and creating a PR.
/plugin marketplace add cahaseler/cc-track/plugin install cc-track@cc-track-marketplaceFinalize the current task by updating metadata, squashing commits, and creating a PR.
Prerequisites: Validation must have passed via /cc-track:prepare-completion
git branch --show-currentgit status --shortgit log --oneline -5Run the complete-task script:
bun "${CLAUDE_PLUGIN_ROOT}/skills/cc-track-tools/scripts/complete-task.ts"
The script will:
The script returns JSON-like output with messages and data. Parse and present the results:
If completion failed:
/cc-track:prepare-completion first to fix issuesIf completion succeeded:
If a new PR was created, enhance its description with details from the spec files:
gh pr edit {pr-url} --body "## Summary
Completes {taskId}: {taskTitle}
## What Was Delivered
[Key deliverables from spec.md requirements]
## Technical Implementation
[Important details from plan.md and actual changes]
## Testing
[Test results and coverage from validation]
Generated with [Claude Code](https://claude.ai/code)"
The script supports these optional flags:
--no-squash - Skip commit squashing (useful when PR already has review comments)--no-branch - Skip branch operations (stay on current branch)--skip-validation - Skip pre-flight validation (use with caution)Example with flags:
bun "${CLAUDE_PLUGIN_ROOT}/skills/cc-track-tools/scripts/complete-task.ts" --no-squash