/skills-developer:git-operationsfrom Developer Skills
Do the actual git work: branch, stage, commit, rebase, resolve conflicts, and recover with reflog and reset. Use when resolving merge conflicts, complex rebases, or git history repairs.
Ships in Developer 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.
Git is not a magical black box where you type random commands found on StackOverflow hoping your branch fixes itself. Git is a content-addressable, immutable directed acyclic graph (DAG) of snapshot objects. Mastering Git operations means understanding object pointers, commits, trees, and the reflog—enabling you to resolve any merge conflict cleanly, rewrite messy commit history safely, and recover from accidental deletions with zero panic.
git add -p) to review and stage distinct chunks rather than running blind git add ..<type>(<scope>): <short imperative summary>feat, fix, refactor, perf, test, docs, chore.git fetch origin main
git rebase -i origin/main
pick: Use commit as-is.reword: Change commit message.squash / fixup: Meld commit into previous commit (fixup discards commit message).main or production). Only rebase local feature branches.git config --global merge.conflictstyle zdiff3
<<<<<<< HEAD (your changes), ||||||| base (original state before both branched), >>>>>>> incoming (their changes).git add <resolved-file>
git rebase --continue
git rebase --abort or git merge --abort.reflog) records every movement of HEAD.git reflog
git reset --hard HEAD@{2}
git reset --soft HEAD~1.git reset HEAD~1.GIT-RUNBOOK.md)# Git Incident Recovery & Rebase Runbook
## 1. Branch Health & Clean History Strategy
- **Target Branch**: `feature/auth-refactor` -> `main`
- **Rebase Base**: `origin/main` (latest commit `e4f1a09`)
- **Action Plan**: Interactive rebase squashing 8 WIP commits into 2 atomic commits.
## 2. Conflict Resolution Walkthrough
| File | Conflict Nature | Resolution Chosen | Verification |
|---|---|---|---|
| `src/auth.ts` | Overlapping imports | Combined both imports | `npm run build` passed |
| `prisma/schema.prisma` | Conflicting model fields | Kept both fields; reordered | `npx prisma validate` |
## 3. Disaster Recovery Plan (Reflog Snapshot)
- Pre-rebase HEAD: `HEAD@{1}: commit 7b2a9c1 "feat(auth): initial oauth scaffolding"`
- Emergency recovery command: `git reset --hard 7b2a9c1`
main.git reflog, identified the lost commit hash a81f3d2.git branch feature/recovered-work a81f3d2.origin/main prior to PR review.merge.conflictstyle zdiff3 configured to inspect common ancestor during conflicts.reflog before executing destructive operations.git push --force on main, destroying teammates' commits. (Always use --force-with-lease)..env files or API credentials into git tracking.What SKILL.md sets; muted values are Claude Code's defaults
skills-developer@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-developer135 skills in this plugin
/accessibility-engineerMoved to accessibility-fix in skills-developer. Removed in v4.1./accessibility-fixAudit and refactor code for WCAG 2.1/2.2 AA and AAA: ARIA, keyboard operability, screen readers. Use when auditing or remediating WCAG 2.1/2.2 AA/AAA accessibility issues./ai-data-remediation-engineerMoved to data-pipelines in skills-developer. Removed in v4.1./ai-engineerMoved to ml-deployment in skills-developer. Removed in v4.1.