A collection of safe, opinionated git workflow skills for Claude Code.
| Skill | Slash Command | Description |
|---|---|---|
| commit | /git:commit |
Safe staging and committing with Conventional Commits |
| pull-request | /git:pull-request |
Push branch and create a GitHub PR |
| review | /git:review |
Analyze PR diff and submit a code review |
| merge | /git:merge |
Squash-merge a PR safely |
| issue | /git:issue |
Create a GitHub Issue with type-specific templates |
| clean | /git:clean |
Full PR lifecycle: commit → PR → review → merge → cleanup |
All skills enforce:
- Mandatory user confirmation before destructive or irreversible operations
- No
git add -Aorgit add .(prevents accidental sensitive file inclusion) - No force push unless explicitly requested by the user
- No
--force,--admin, or--autoflags ongh pr merge - Automatic exclusion of sensitive files (
.env,*.pem,*.key,credentials.json, etc.) - Confirmation steps cannot be bypassed by urgency statements
clean is an orchestrator that delegates to the other skills in sequence:
clean
├─ Step 1: commit (if uncommitted changes exist)
├─ Step 2: pull-request (if no open PR exists, includes issue detection)
├─ Step 3: review
├─ Step 4: merge (always requires confirmation)
└─ Step 5: Cleanup (always requires confirmation, inline)
Steps 4 and 5 always require explicit confirmation regardless of auto mode.
Skills automatically adapt to project conventions:
- commit — reads
git loghistory to match the project's existing commit style - pull-request — detects the repository's default branch via
gh repo viewinstead of hardcodingmain; detects related issues from branch name, commit messages, and a full scan of the conversation for#Nreferences, then insertsCloses #Nin the PR body after user confirmation (GitHub auto-closes issue on merge); for speckit branches (matching^[0-9]{3,}-/ timestamp prefix +.specify/feature.json), prefixes the PR title scope withspec/<N>and prepends a## Specsection to the PR body - review — detects languages in the PR diff, uses general best practices and peer cross-review to submit a code review
- merge — detects the default branch dynamically; deletes remote and local branch after squash merge
- issue — supports 4 issue types (bug, feature, chore, docs) with type-specific body templates
- clean — full PR lifecycle orchestrator; delegates to pull-request (with issue-PR linkage) and merge (with branch deletion)
claude plugin marketplace add https://github.com/ppzxc/engineering-guidelines.git