/fullstack-skills:git-workflowfrom fullstack-skills
Use this skill for Git branching strategy, commit conventions, PR workflow, merge conflict resolution, release management, changelog generation, and version control best practices. Triggers on requests about git, branches, commits, merging, rebasing, PRs, conflicts, tags, releases, or any version control concern.
Ships in fullstack-skills. 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.
Use this skill for Git branching strategy, commit messages, PR workflow, merge conflict resolution, release management, changelog generation, and version control best practices.
../../../RULES.md when available and apply it as the behavior, safety, validation, and communication baseline.git log in 6 months.| Project Type | Team Size | Recommended Strategy |
|---|---|---|
| Solo / small project | 1-2 | GitHub Flow |
| Product with releases | 3-10 | Git Flow (simplified) |
| Continuous deployment | Any | Trunk-Based Development |
| Open source | Any | Fork & PR |
| Monorepo | Large | Trunk-Based + Feature Flags |
main ──────●──────●──────●──────●──────●──────
\ / \ /
feature/x ●──●──●──● ●──●
feature/y
Rules:
main is always deployable.main.main after approval.main.main ──●────────────────●──────────────●──
\ / \ /
develop ────●──●──●──●──●────●──●──●──●──
\ / \ /
feature/x ●──● hotfix/y
Branches:
main — production releases only.develop — integration branch.feature/* — new features from develop.release/* — release preparation.hotfix/* — emergency production fixes from main.main ──●──●──●──●──●──●──●──●──●──●──
\/ \/
short-lived branches (< 1 day)
Rules:
main (or very short-lived branches).Format: <type>/<ticket-id>-<short-description>
Examples:
feature/ABC-123-user-profile
bugfix/ABC-456-fix-login-error
hotfix/ABC-789-payment-crash
chore/update-dependencies
refactor/extract-auth-service
docs/update-readme
| Prefix | Use When |
|---|---|
feature/ | New feature or enhancement |
bugfix/ | Non-critical bug fix |
hotfix/ | Critical production fix |
chore/ | Maintenance, deps, tooling |
refactor/ | Code restructuring |
docs/ | Documentation only |
test/ | Adding/fixing tests |
experiment/ | Spike, prototype, exploration |
<type>(<scope>): <subject>
<body>
<footer>
| Type | When |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no logic change |
refactor | Code change, no feature/fix |
perf | Performance improvement |
test | Adding/fixing tests |
chore | Build, CI, deps, tooling |
revert | Reverting a previous commit |
Subject line: Imperative mood, < 72 chars, no period.
feat(auth): add Google OAuth loginAdded Google OAuth login.feat: stuffBody (optional): Explain what and why, not how. Wrap at 80 chars.
Footer (optional): Reference issues, breaking changes.
Closes #123BREAKING CHANGE: removed legacy auth endpointfeat(auth): add Google OAuth login
Implement Google OAuth 2.0 as an additional login provider.
Users can now sign in with their Google account alongside
email/password authentication.
Closes #123
---
fix(orders): prevent duplicate order submission
Race condition allowed double-clicking submit to create
two orders. Added debounce + server-side idempotency key.
Fixes #456
---
chore(deps): update Next.js from 14.1 to 14.2
Minor version update with bug fixes and performance
improvements. No breaking changes.
## What
Brief description of the change.
## Why
Problem this solves or feature this adds.
## How
Key technical decisions and approach.
## Testing
How this was tested. Include test commands.
## Screenshots
Before/after for UI changes.
## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changes (or documented)
- [ ] Self-reviewed
| Strategy | When | Result |
|---|---|---|
| Squash merge | Feature branches, messy commits | Clean single commit on main |
| Merge commit | Long-running branches, preserved history | Merge commit + all commits |
| Rebase | Clean linear history desired | Linear history, no merge commits |
| Fast-forward | Up-to-date branch, single commit | No merge commit |
Recommendation: Squash merge for feature branches → clean main history.
CODEOWNERS to identify file ownership.1. git fetch origin
2. git rebase origin/main (or merge)
3. For each conflict:
a. Understand BOTH changes (yours and theirs)
b. Decide which to keep (or combine both)
c. Verify the resolution makes logical sense
d. Run tests after resolving
4. git rebase --continue (or commit merge)
5. Force push only to your own feature branch after checking branch ownership: git push --force-with-lease
--force-with-lease not --force — prevents overwriting others' work.Single source of truth: the
release-versionskill. SemVer rules, pre-release strategy, the release checklist, changelog format, tagging, and release notes are owned byrelease-versionand must not be duplicated here. When release work comes up, invokerelease-version. This skill only covers the git-side mechanics:
git tag -a vX.Y.Z -m "Release X.Y.Z" then git push origin vX.Y.Z.release-version — do not invent a separate format here.| Hook | Purpose | Tool |
|---|---|---|
pre-commit | Lint staged files | lint-staged + husky |
commit-msg | Validate commit message | commitlint |
pre-push | Run tests before push | Custom script |
Concrete Husky setup commands and a lint-staged config block are in
references/git-hooks-and-gitignore.md — load it when wiring up hooks. The hook policy
(Recommended Hooks above) remains the source of truth.
.gitignore properly..env files.A sample baseline .gitignore (deps, build output, env, IDE, OS, logs, testing) is in
references/git-hooks-and-gitignore.md. Adapt it to the project's actual stack — never
commit .env, secrets, or generated output regardless of the sample.
| Tool | Ecosystem | Features |
|---|---|---|
| Turborepo | Node.js | Build caching, parallel tasks |
| Nx | Node.js | Dependency graph, affected tests |
| pnpm workspaces | Node.js | Fast installs, workspace linking |
| Lerna | Node.js | Publishing, versioning |
Before any command that discards history or working tree changes:
git status --short and the target branch.git reset --hard.git revert, git reset --soft, new branch backup) when they solve the problem.git reset --soft HEAD~1 # Keep changes staged
git reset --mixed HEAD~1 # Keep changes unstaged
git reset --hard HEAD~1 # Discard changes (DANGEROUS)
git revert <commit-hash> # Create new commit that undoes changes (SAFE)
git reflog # Find the commit hash
git checkout -b recovered-branch <hash>
git stash # Save current changes
git checkout correct-branch
git stash pop # Apply changes on correct branch
# Git Workflow Review
## Current Workflow Assessment
Branching strategy, commit quality, merge patterns.
## Issues Found
- Inconsistent commit messages
- Long-lived branches
- Missing hooks/automation
- etc.
## Recommended Workflow
Strategy, branch naming, commit convention, merge strategy.
## Setup Steps
Commands and configuration to implement.
## Automation
Hooks, CI checks, and tools to enforce.
## Team Guidelines
Concise rules for all developers to follow.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skillsOther plugins' skills for the same job
81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.