--- name: git-workflow description: Manage git workflows including branching, committing, PRs, and rebasing. Use when working with version control. --- # Git Workflow Skill ## Purpose Teach the agent standard git workflows for feature development, code review, and release management. ## Branch Strategy - `main` / `master`: production-ready code - `feature/*`: new features (branch from main) - `fix/*`: bug fixes - `docs/*`: documentation updates ## Commit Conventions Use Conventional Commits: - `feat:` new feature - `fix:` bug fix - `docs:` documentation - `refactor:` code restructuring - `test:` adding tests - `chore:` maintenance ## Pull Request Workflow 1. Create feature branch from `main` 2. Make changes with atomic commits 3. Push branch and create PR 4. Request review 5. Address feedback 6. Squash and merge ## Common Commands ```bash git checkout -b feature/my-feature git add -p # stage hunks interactively git commit -m "feat: add new feature" git push -u origin feature/my-feature ```