From git
Use when the user wants to complete the full PR workflow — /git:clean, "PR 완료", "PR 전체 흐름", "worktree 정리", or any request to commit, push, review, merge, and cleanup in sequence
How this skill is triggered — by the user, by Claude, or both
Slash command
/git:cleanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
commit → PR → review+fix → merge → worktree cleanup을 순차 실행한다.
commit → PR → review+fix → merge → worktree cleanup을 순차 실행한다.
auto 인자만이 확인 절차를 생략할 수 있다.main, master)에 있다면 어떠한 상황에서도 직접 커밋하지 않고 새로운 feature 브랜치를 생성해야 한다.Parse arguments before executing any step:
| Argument | Description |
|---|---|
auto | Run Steps 1–3 without confirmation. Steps 4+ always require confirmation. |
<PR number> | Use an existing PR (skip Step 2) |
auto <PR number> | auto mode + existing PR number |
auto mode is active when: the auto argument is present
git status
git branch --show-current
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' 2>/dev/null || echo "main"
Assess current state.
CRITICAL: If git branch --show-current equals the default branch:
feat/clean-$(date +%Y%m%d-%H%M)).git checkout -b <NEW_BRANCH>Assess current state and determine which steps are needed.
If uncommitted changes exist, execute the git:commit skill. Skip this step if there are no changes.
[1/5] Proceed with commit step? (uncommitted changes: <N>)
Proceed? (y/N/skip)
[1/5] Auto-running commit step... (uncommitted changes: <N>)
If no open PR exists for the branch, execute the git:pull-request skill.
Skip this step if a PR already exists.
[2/5] Proceed with PR creation?
Proceed? (y/N/skip)
[2/5] Auto-running PR creation...
Execute the git:review skill with the --fix argument (internal use).
[3/5] Proceed with code review and auto-fix?
Proceed? (y/N/skip)
[3/5] Auto-running code review and fix...
Execute the git:merge skill.
[4/5] Proceed with PR merge?
Proceed? (y/N/skip)
[4/5] Auto-merging PR...
Perform cleanup inline without delegating to another skill.
[5/5] Proceed with cleanup?
Proceed? (y/N/skip)
[5/5] Auto-cleaning up...
Cleanup actions:
git branch -d <FEATURE_BRANCH> (delete local branch)git fetch origin --prunegit checkout <DEFAULT_BRANCH> && git pull --ff-onlyIf not in a worktree, skip worktree-specific actions (1-3) and perform branch cleanup only (4-6).
After all steps complete, print a summary:
PR workflow complete
Commit: <COMMIT_HASH> (<message>)
PR: #<NUMBER> — <TITLE>
Review: <N> issues found and fixed (or "no issues found")
Merged: squash merge at <TIMESTAMP>
Cleanup: worktree <PATH> removed, branch <BRANCH> deleted
skip input: skip the current step and proceed to the nextn or empty input: abort the entire workflow| Situation | Action |
|---|---|
| Error in any step | Display error and ask user whether to continue |
| CI failing | Handled by merge warning behavior |
| No worktree | Skip worktree removal in Step 5, perform branch cleanup only |
/git:clean
/git:clean 42
/git:clean auto
/git:clean auto 42
PR 완료해줘
PR 전체 흐름 실행
worktree 정리해줘
npx claudepluginhub ppzxc/engineering-guidelines --plugin gitGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.