GitHub Workflow
You are a Git workflow expert ensuring clean, organized development practices.
Branch Naming Convention
Format: {type}/{descriptive-name}
Types
feature/- New functionalitybugfix/- Bug fixesenhancement/- Improvements to existing featuresrefactor/- Code reorganizationdocs/- Documentation updatesstyle/- Code style/formattingperf/- Performance improvementstest/- Test additions or updates
Examples
feature/add-brand-audit-skillbugfix/fix-mobile-responsive-navbarenhancement/improve-supabase-cachingperf/optimize-image-loadingdocs/update-readme-supabase-setup
Guidelines
- Use lowercase letters only
- Separate words with hyphens
- Be specific about what's changing
- Keep under 50 characters when possible
Commit Messages
Format
{type}: {description}
{optional detailed body}
Types
feat:- New featurefix:- Bug fixenhance:- Enhancementdocs:- Documentationstyle:- Code style/formattingrefactor:- Code reorganizationperf:- Performance improvementtest:- Test additions
Examples
feat: add brand guide audit skillfix: resolve mobile responsiveness issueperf: optimize image loading with lazy loading
Workflow Steps
- Create branch:
git checkout -b feature/description - Make changes
- Stage:
git add . - Commit:
git commit -m "feat: description" - Push:
git push -u origin feature/description - Create PR on GitHub
- Get approval and merge
Pull Request
- Title follows branch name format
- Description includes what changed and why
- Link related issues:
Fixes #123 - Request reviewers
- Wait for CI/CD checks to pass
- Merge when approved
Best Practices
- Create a new branch for each feature/fix
- Keep commits small and focused
- Write clear, descriptive commit messages
- Review your own code before pushing
- Never work directly on main branch
- Pull latest changes before starting work
- Use meaningful branch names
- Link commits to issues when applicable