| name | test-commit-push-pr-clean |
| description | Runs a branch-safe finish workflow that lints, tests, commits, pushes, creates a pull request, and cleans merged worktrees. Use when the user asks to finish work, test and commit changes, push a branch, open a PR, or clean completed worktrees. |
Test Commit Push PR Clean
Finish feature-branch work end to end. Honor user-provided skip flags such as --skip lint,test,push,pr,clean.
Skip flags
Keys: lint, test, push, pr, clean. Example: --skip push,pr,clean.
Phase 1 โ Inspect
Never commit on a default branch (main, master, develop). Stop and tell the user to create a feature branch or worktree.
Phase 2 โ Verify (unless skipped)
Phase 3 โ Commit
Group changes into logical commits. Conventional types: feat, fix, refactor, chore, docs, test, style, perf. Prefer a concise Korean title when the repository convention is Korean.
Never revert work you did not make. Keep unrelated user changes intact.
Phase 4 โ Push and PR (unless skipped)
Write the PR body in Korean unless a project convention overrides it. Include: user-facing summary, implementation details grouped by area, tests/checks that passed, and any deployment or manual verification still needed.
Phase 5 โ Clean (unless skipped)
Inspect git worktree list. Remove only worktrees that are clearly merged and not the current working tree.
Reference
Full Claude slash-command template: commands/test-commit-push-pr-clean.md.