/builder:git-workflowfrom builder
Feature-branch git workflow for agentic coding work: start from a synced main, branch with conventional names, write Conventional Commits, sync with rebase, run the PR lifecycle with gh, and recover safely from mistakes. Use when starting work in a repo, staging or writing commits, rebasing, opening or reviewing PRs, resolving conflicts, or undoing git operations.
Ships in builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Opinionated workflow for git work, synthesized from the user's git cheatsheet,
the asmeurer fork-contribution guide, the netresearch git-workflow skill, and
the Conventional Commits 1.0.0 spec (see README.md, Attribution).
Precedence: the repository's own conventions win. If CONTRIBUTING.md,
AGENTS.md, or a .github/ template specifies branch names, commit format,
merge strategy, or sign-off rules, follow those. Everything here is the
default when the project is silent.
main, master, or mainline,
whichever the repo uses). Branch for everything, even one-liners.main: check out main, pull, then create the branch.<type>[scope]: <description>.git fetch origin && git rebase origin/main), not merge.--force-with-lease. Never plain --force.git status (right branch, intended files only) and git log --oneline -5 (sane history).git status and git branch --show-current: know where you are and what is dirty.CONTRIBUTING.md, AGENTS.md, PR templates). They outrank this skill.lefthook.yml, .pre-commit-config.yaml, .husky/). If present, they define the commit gate; do not bypass them.git checkout main
git pull --rebase # or: gh repo sync, for GitHub repos
git checkout -b <type>/<short-kebab-description>
Branch names: feature/, bugfix/, hotfix/, docs/ prefixes with a
kebab-case description (feature/oauth-refresh-token). For open-source
contributions through a fork: clone the upstream repo, add your fork as a
remote, push the branch to the fork, and open the PR against upstream main.
Details: references/branching-strategy.md.
git add <paths>, not git add . unless the tree contains only intended changes.scripts/check-commit-msg (reads a message file or stdin; exit 0 is valid). Install it as .git/hooks/commit-msg to enforce the format.Format, type table, scopes, and breaking changes: references/conventional-commits.md.
git fetch origin
git rebase origin/main
Combine a messy local history before opening the PR: git rebase -i HEAD~n
(squash/fixup) or the soft-reset method (git reset --soft HEAD~n && git commit).
Resolve conflicts, git rebase --continue, then push with
--force-with-lease. Details: references/sync-and-recovery.md.
git push -u origin <branch>
gh pr create --title "<type>: <what it does>" --body "<why, what changed, test evidence>"
Title rule: say what the PR does, not which issue it closes; put Fixes #123
in the body. Check status with gh pr status and gh pr view. Feedback loop,
approvals, and merge: references/pr-workflow.md.
gh pr merge --squash --delete-branch is the common default.git checkout main
git pull --rebase
git branch -d <branch>
git remote prune origin
git branch --merged | grep -v '\*\|main\|master' | xargs -n 1 git branch -d.| Reference | Triggers |
|---|---|
references/conventional-commits.md | commit message format, types, scopes, breaking changes, footers |
references/branching-strategy.md | branch naming, never-commit-to-main, trunk vs GitHub Flow vs GitFlow vs GitLab Flow vs release vs environment branching, fork-based OSS contributions |
references/pr-workflow.md | gh PR create/review/merge, the feedback loop, PR titles |
references/sync-and-recovery.md | rebase, squash, stash, undo levels, reflog, force-with-lease |
references/git-config.md | sane global git config defaults and aliases (opt-in) |
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)references/branching-strategy.md (opens in a new tab)references/conventional-commits.md (opens in a new tab)references/git-config.md (opens in a new tab)references/pr-workflow.md (opens in a new tab)references/sync-and-recovery.md (opens in a new tab)scripts/check-commit-msg (opens in a new tab)scripts/tests/test_check_commit_msg.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thimslugga/agent-plugins --plugin builder43 skills in this plugin
/adrCreate and maintain Architecture Decision Records (ADRs). Use when the user proposes a significant architectural change, records a refactoring decision, resolves a technical debate, or asks to write, update, deprecate, or supersede an ADR./asd-ste100Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy./ast-grep