/full-stack-hq:git-workflowfrom full-stack-hq
Guides Git branching strategy (GitHub Flow), commit message conventions, PR workflow, and merge conflict resolution.
Ships in full-stack-hq. 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.
None: SKILL.md is the whole skill.
main ← production-ready at all times
└── feature/add-user-export ← feature branches (short-lived)
└── fix/login-rate-limit ← bug fix branches
└── chore/upgrade-dependencies ← maintenance
└── refactor/extract-auth-module ← refactoring
Rules:
main is protected — no direct pushes# Pattern: <type>/<short-description>
feature/user-profile-page
feature/export-orders-xlsx
fix/refresh-token-cookie-samesite
fix/n-plus-one-users-query
chore/update-nestjs-10
refactor/extract-payment-service
docs/add-api-endpoints-readme
test/add-auth-integration-tests
release/v2.1.0
# DO NOT use:
johns-branch # ← no name, no context
fix1 # ← too vague
JIRA-1234 # ← jira IDs alone mean nothing
wip # ← push to a real branch when ready
<type>(<scope>): <short description>
<optional body — wrap at 72 chars>
<optional footer: BREAKING CHANGE or fixes #issue>
Types:
feat — new feature
fix — bug fix
refactor — code change that neither fixes a bug nor adds a feature
perf — performance improvement
test — adding or correcting tests
docs — documentation only
chore — build process, tooling, dependencies
ci — CI/CD config changes
Examples:
# Good
git commit -m "feat(auth): add JWT refresh token rotation"
git commit -m "fix(users): prevent email enumeration on login"
git commit -m "refactor(orders): extract payment processing to dedicated service"
git commit -m "perf(queries): add index on orders.user_id column"
git commit -m "test(auth): add integration tests for token expiry flow"
# With body
git commit -m "fix(uploads): reject files larger than 5MB
Previously the file size limit was only enforced on the frontend.
An attacker could bypass this by posting directly to the API.
Added multer limits and a guard to enforce 5MB server-side.
Fixes #142"
# Bad
git commit -m "fix bug" # ← no context
git commit -m "WIP" # ← push to a real WIP branch
git commit -m "asdfgh" # ← meaningless
git commit -m "changes" # ← what changes?
# 1. Create branch from main
git checkout main
git pull origin main
git checkout -b feature/user-export
# 2. Make changes, commit incrementally
git add src/users/users.service.ts src/users/dto/export.dto.ts
git commit -m "feat(users): add CSV export endpoint"
git add src/users/users.service.spec.ts
git commit -m "test(users): add unit tests for CSV export"
# 3. Push and create PR
git push -u origin feature/user-export
gh pr create \
--title "feat(users): add CSV export endpoint" \
--body "$(cat <<'EOF'
## What
Adds a new endpoint GET /users/export.csv that returns all users as CSV.
## Why
Requested by ops team for bulk user management workflows. Fixes #89.
## Testing
- [ ] Unit tests added (users.service.spec.ts)
- [ ] Tested locally with 10k users
- [ ] Response headers verified in browser download
## Breaking Changes
None — new endpoint only.
EOF
)"
# Rebase onto main (preferred — keeps history linear)
git fetch origin
git rebase origin/main
# If conflicts:
# 1. Open conflicted files, resolve
# 2. git add <resolved-files>
# 3. git rebase --continue
# If in trouble: git rebase --abort
# Merge main into branch (alternative — creates merge commit)
git merge origin/main
# See what's conflicting
git status
# Open in VS Code
code .
# After resolving, mark as done
git add src/users/users.service.ts
# Continue rebase
git rebase --continue
# OR complete merge commit
git commit
Conflict marker anatomy:
<<<<<<< HEAD (your branch)
function getUserById(id: string) {
return this.repo.findOne({ where: { id } })
=======
async function getUserById(id: number) {
return this.repo.findOne({ where: { id }, relations: ['profile'] })
>>>>>>> origin/main
// Resolve: pick the right version or combine both intentions
async function getUserById(id: string) {
return this.repo.findOne({ where: { id }, relations: ['profile'] })
}
# Status
git status
git diff # unstaged changes
git diff --staged # staged changes
git log --oneline -10 # last 10 commits
git log --graph --oneline # visual branch tree
# Staging
git add <file> # stage specific file
git add -p # interactive staging — review hunks
git reset HEAD <file> # unstage
# Commits
git commit -m "message"
git commit --amend # edit last commit (NOT if already pushed)
# Branches
git branch # list local branches
git branch -d feature/done # delete merged branch
git checkout - # switch to previous branch
git stash # stash work in progress
git stash pop # restore stash
# Remote
git fetch origin # download without merging
git push -u origin branch # push and track
git push --force-with-lease # safer force push (fails if remote was updated)
# Undo
git restore <file> # discard unstaged changes
git reset --soft HEAD~1 # undo last commit, keep staged
git reset --mixed HEAD~1 # undo last commit, unstage
git revert HEAD # create a new commit that undoes HEAD
# Create annotated tag
git tag -a v1.2.0 -m "Release v1.2.0 — adds user export feature"
# Push tags
git push origin --tags
# GitHub release from tag
gh release create v1.2.0 \
--title "v1.2.0 — User Export" \
--notes "$(cat CHANGELOG.md)" \
--target main
# Node
node_modules/
dist/
build/
.next/
# Env files
.env
.env.local
.env.*.local
!.env.example # keep example file
# IDE
.vscode/settings.json
.idea/
*.iml
# OS
.DS_Store
Thumbs.db
# Logs
*.log
npm-debug.log*
pnpm-debug.log*
# Test artifacts
coverage/
playwright-report/
test-results/
# Generated
*.d.ts.map
main — always go through a PRmain or shared branches.env files — add them to .gitignore immediatelygit add . without reviewing what's staged (git diff --staged)--no-verify to skip pre-commit hooks — fix the underlying issueWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sabahattink/antigravity-fullstack-hq --plugin full-stack-hq28 skills in this plugin
/api-design-patternsREST API design, versioning, error responses, pagination, OpenAPI conventions. Use when designing new API endpoints, reviewing API contracts, or setting up Swagger/OpenAPI documentation./auth-patternsJWT access/refresh tokens, Passport.js strategies, session management, OAuth. Use when implementing authentication, authorization, or setting up OAuth providers in a NestJS + Next.js app./backend-dev-guidelinesBackend architecture principles, layering, error handling, logging patterns for NestJS. Use when designing NestJS modules, writing service logic, structuring error handling, or setting up structured logging./brainstormingStructured brainstorming techniques, idea generation, trade-off analysis. Use when exploring design options, choosing between architectural approaches, generating feature ideas, or making technology decisions./code-review-patternsCode review checklist, what to look for, how to give feedback, PR review flow. Use when reviewing a pull request, or when preparing code for review./deployment-guideVercel frontend + Railway/Fly.io backend deployment, env vars, health checks. Use when deploying a Next.js frontend to Vercel or a NestJS backend to Railway or Fly.io, or troubleshooting a deployment issue.Other plugins' skills for the same job