From dev-guidelines-git-workflow
Provides Git repository workflow guidelines including branch management, testing practices (TDD), Docker environment handling, and PR workflow. Use this skill when implementing features, fixing bugs, or making any code changes in a Git repository.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-guidelines-git-workflow:git-repository-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**PROHIBITED**: `git push origin main/develop/master`
PROHIBITED: git push origin main/develop/master
ALL changes must go through Pull Requests. No exceptions.
Start Implementation
↓
Existing PR? → YES → gh pr checkout <PR#> → git pull → Implement → Push
↓ NO
User says "current branch"? → YES → Implement directly
↓ NO
git checkout main && git pull → git checkout -b feature/name → Implement
feature/ - New featuresfix/ - Bug fixesrefactor/ - Code refactoringdocs/ - DocumentationBefore writing tests, verify if tests are required:
Follow Red-Green-Refactor cycle:
should return 404 when user not found (not test1)When running tests, lint, or other commands in Docker projects:
Check if container is running → docker ps | grep <container>
↓
Running? → YES → docker exec <container> <command>
↓ NO
Start container first or run locally
For E2E tests or browser automation, see web-app-testing.md.
DO: Pull latest before starting, use descriptive branch names, verify test requirements, check Docker container status
DON'T: Push to main directly, create new branch for existing PR, add tests to test-free projects without confirmation, run commands outside container when app runs in Docker
git checkout main && git pull origin main
git checkout -b feature/descriptive-name
gh pr checkout <PR-number>
git pull origin <branch-name>
# Make changes
git push origin <branch-name>
describe('UserAuthentication', () => {
describe('login', () => {
it('should successfully login with valid credentials', () => {});
it('should reject invalid credentials', () => {});
it('should lock account after multiple failed attempts', () => {});
});
});
# Check container status
docker ps | grep myapp
# Execute in running container
docker exec myapp-web npm test
docker exec myapp-web npm run lint
npx claudepluginhub kokuyouwind/claude-plugins --plugin dev-guidelines-git-workflowOrchestrates multi-agent git workflow from code review and quality checks through testing, Conventional Commits, PR creation, and deployment readiness. Supports trunk-based and feature-branch strategies.
Provides Git workflow standards including branch naming, conventional commits, and PR guidelines. Use when creating branches, writing commits, or preparing PRs.
Guides Git branching strategies, branch naming conventions, and merge operations. Useful when creating branches, merging, or handling PRs.