How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-agents:git-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Branching, commit, and PR conventions for this project.
Branching, commit, and PR conventions for this project.
feat/<short-slug> # new feature
fix/<short-slug> # bug fix
chore/<short-slug> # tooling, deps, config
infra/<short-slug> # server/infrastructure changes
hotfix/<short-slug> # urgent production fix
Examples:
feat/client-dashboardfix/nginx-ssl-renewalinfra/promtail-php-logsFollow Conventional Commits strictly:
<type>(<scope>): <short description>
[optional body — what and why, not how]
[optional footer — breaking changes, issue refs]
Types: feat, fix, chore, refactor, docs, test, infra, perf
Rules:
Good examples:
feat(auth): add per-client JWT validation
fix(nginx): prevent vhost config clobbering on panel reload
infra(promtail): add php-fpm log scrape target
main # production — protected, no direct push
└── feat/x # feature branch — PR required to merge
└── fix/y # fix branch — PR required to merge
└── hotfix/z # merge to main + tag immediately
main/review before opening PRmain — keep history cleanv<major>.<minor>.<patch>git diff --staged # review what you're committing
nginx -t # if nginx configs changed
git status # ensure no unintended files staged
Add to .gitconfig:
[alias]
lg = log --oneline --graph --decorate --all
st = status -sb
unstage = reset HEAD --
last = log -1 HEAD --stat
Committing directly to main — main is protected. Always branch, even for a one-line fix. Hotfixes go through hotfix/<slug>, not directly.
Vague commit messages — fix, update, wip, misc are not commit messages. They tell you nothing in git log. Use conventional commits with a scope and a description that explains what changed and why.
Forgetting to squash merge — merge commits pollute the history. Squash merge feature branches into main to keep history linear and readable.
Long-lived branches — the longer a branch lives, the worse the merge conflict. Branches should live hours to days, not weeks. If it's taking weeks, the task wasn't broken down small enough.
Committing generated or config files — config/, .env, and build artifacts should not be committed. Check .gitignore before the first commit on any new project.
Tagging without purpose — tags are for releases (v1.2.3), not for bookmarks. Don't tag intermediate states.
npx claudepluginhub tiagokrebs/claude-agentic-platform --plugin dev-agentsProvides Git workflow standards including branch naming, conventional commits, and PR guidelines. Use when creating branches, writing commits, or preparing PRs.
Manages Git workflows including branching, commit conventions, pull requests, and conflict resolution. Use with Git operations or version control questions.
Guides Git workflows with branching strategies (GitHub Flow, Git Flow), conventional commit messages, branch naming, PR templates, and operations like rebase. Use for Git ops, commits, branches, team workflows.