finish
Complete issue workflow - commit, close issue, merge to base branch, cleanup
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Complete issue workflow - commit, close issue, merge to base branch, cleanup
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | finish |
| description | Complete issue workflow - commit, close issue, merge to base branch, cleanup |
MUST wait for user confirmation at Step 4. MUST use ~/.claude/bin/git-find-base-branch for base branch detection.
Complete the workflow for a finished issue: commit changes (including pre-commit hook modifications), close the issue, merge to base branch, and clean up.
The user provides: $ARGUMENTS
Parameters (all optional):
/finish # Auto-detect issue + auto-detect base branch
/finish 33 # Use issue 33 + auto-detect base branch
/finish 33 master # Use issue 33 + force merge into master
Step 1: Get current branch name using git branch --show-current
Step 2: Determine issue number:
issue-(\d+)-.*Step 3: Determine base branch:
~/.claude/bin/git-find-base-branch script for auto-detection~/.claude/bin/git-find-base-branch~/.claude/bin/git-find-base-branchStep 4: STOP — Ask for confirmation
Step 5: Verification gate (MANDATORY — no shortcuts):
npm run validate:all, make validate, etc.Step 6: Stage and commit with pre-commit hook handling:
git add .~/.claude/bin/git-commit.sh "feat: complete issue #[issue_number] implementation" "" "🤖 Generated with [Claude Code](https://claude.ai/code)" "" "Co-Authored-By: Claude <noreply@anthropic.com>"
(each argument becomes a line in the commit message)git add . again to stage hook modifications~/.claude/bin/git-commit.sh --amend "feat: complete issue #[issue_number] implementation" "" "🤖 Generated with [Claude Code](https://claude.ai/code)" "" "Co-Authored-By: Claude <noreply@anthropic.com>"git diff-index --quiet HEAD --Step 7: Push current branch:
git push origin [current_branch]git push -u origin [current_branch] to create upstreamStep 8: Close GitHub issue:
gh issue close [issue_number] --comment "✅ Implementation complete and tested. All validation passed. Merging to [base_branch]."Step 9: Switch to base branch:
git checkout [base_branch]git pull origin [base_branch]Step 10: Merge issue branch:
git merge --no-ff [issue_branch] -m "Merge branch '[issue_branch]' - closes #[issue_number]"Step 11: Push merged changes:
git push origin [base_branch]Step 12: Delete branches:
git branch -d [issue_branch]git push origin --delete [issue_branch]Step 13: Show success message with summary
Automatically implement all sub-issues of an epic in dependency order
Implement a GitHub issue with automated PR creation
End-of-session retrospective. Captures knowledge from any working session (debug, implementation, config, deployment) as reusable scripts, CLAUDE.md procedures, or skill proposals. Run before ending a session to prevent knowledge loss.
Decompose a large GitHub issue into sub-issues and create a tracking draft PR
OWASP-guided security code review for a specific domain or issue
Project kickoff checklist based on lessons learned from previous projects. Generates a tailored checklist and optionally creates GitHub issues.