← ClaudeAtlas

committing-changeslisted

Commit via feature branch + PR + git hooks; never push main, never merge.
swell-agents/coding-skills · ★ 2 · Code & Development · score 71
Install: claude install-skill swell-agents/coding-skills
## Workflow 1. **Install hooks** (once per repo). From inside the repo, run the installer that ships with this skill: ``` bash <skills>/committing-changes/scripts/install-hooks.sh ``` This copies `commit-msg` and `pre-push` into `.git/hooks/` and makes them executable. Idempotent. Then install the PR-size CI workflow: ``` bash <skills>/committing-changes/scripts/install-pr-size-workflow.sh ``` This drops `.github/workflows/pr-size.yml` and appends `.gitattributes` exclusions. Idempotent. 2. **Branch check.** If on `main`, switch to a feature branch: ``` git checkout -b <type>/<description> ``` Valid `type` prefixes: `feat`, `fix`, `refactor`, `docs`, `test`, `chore`, `infra`, `ai-native`. 3. **Auto-fix before commit.** Run the project's linter/formatter (e.g., `ruff format && ruff check` for Python, `golangci-lint run` for Go, `forge fmt && solhint` for Solidity). The pre-commit hook (if installed) runs the project's full quality gate. 4. **Commit & push.** ``` git add <specific paths> git commit -m "<subject conforming to rules below>" git push -u origin <branch> ``` 5. **Sync with main.** ``` git fetch origin main git merge origin/main ``` Resolve conflicts; commit the merge; push. 6. **PR creation** (first push only). ``` gh pr list --head <branch> gh pr create --fill # if no PR exists yet ``` 7. **Branch cleanup** (after the user has merged). ``` git fetch --prune git br