smart-git-commit-contributorlisted
Install: claude install-skill Zarl-prog/Smart-git-commit
# Smart Git Commit — Contributor Skill
Extends the base skill with a full contributor workflow. Use this when
contributing to any open source repo. Follow every phase in order.
<!-- line-limit: 400 -->
---
## Phase 0: Fork and Sync Check
Run the fork sync checker:
```bash
bash contributor/scripts/fork-check.sh
```
Checks performed:
- Is this a fork? (`git remote -v` shows both `origin` and `upstream`)
- Is the fork up to date with upstream main?
- `git fetch upstream`
- `git log HEAD..upstream/main --oneline`
- If behind: rebase before doing anything else
- `git rebase upstream/main`
- If no upstream set: asks for the original repo URL
- `git remote add upstream <url>`
**Output**: `SYNCED` or list of commits the contributor is behind.
---
## Phase 1: Branch Naming
Run the branch name enforcer:
```bash
bash contributor/scripts/branch-name.sh
```
**Never contribute from `main` or `master`.**
Enforced pattern:
```
<type>/<issue-number>-<short-description>
```
Examples:
- `feat/234-add-oauth-login`
- `fix/189-resolve-token-expiry`
- `docs/301-update-contributing-guide`
- `chore/445-upgrade-axios`
If on the wrong branch: creates a correctly named one automatically:
```bash
git checkout -b <correct-name>
```
---
## Phase 2: Commit Quality
Reuse the existing SKILL.md phases 1–7 for every commit.
Every commit uses the **5-part format**:
```
CONTEXT / CHANGE / WHY / IMPACT / footers
```
Read `skills/smart-git-commit/SKILL.md` Phase 5 for full rules.
**Rem