skills/git/SKILL.md
Git safety, staging, commit workflow, branching, pull requests, rebase, bisect, tagging, and worktrees. Load when working with branches, commits, PRs, or recovering from tricky git situations.
npx skillsauth add oornnery/.agents gitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use when main problem is git workflow, not code.
Use for:
Pair with:
skills/cicd/SKILL.md for GitHub Actions CI and release automationskills/quality/SKILL.md when bisecting or isolating regressionsskills/docs/SKILL.md when deliverable is release notes or changelog contentgit add . or git add -A--no-verifyUse commands/commit.md when task is specifically about preparing commits from current tree.
Prefer short-lived feature branches and reviewable PRs.
PR checklist:
Draft PRs appropriate for early feedback on incomplete work.
| Scenario | Preferred action |
| ------------------------- | ---------------- |
| update feature branch | git rebase |
| merge completed PR | squash merge |
| preserve explicit history | merge commit |
| isolate regression | git bisect |
git checkout feat/my-feature
git fetch origin
git rebase origin/main
If conflicts appear, resolve carefully and continue. Force-push only when explicitly asked and only with --force-with-lease.
Use git bisect when regression has known good point:
git bisect start
git bisect bad
git bisect good <commit>
Test each candidate commit until git identifies first bad commit.
Automated form:
git bisect start HEAD <good-commit>
git bisect run uv run pytest tests/path/to/test_file.py -v
git bisect reset
Stash only when you truly need to park work temporarily:
git stash
git stash -m "description"
git stash list
git stash pop
Prefer worktrees over repeated stashing when you need parallel work.
Use annotated tags for releases:
git tag -a v1.2.0 -m "release 1.2.0"
Create tags only after valid passes and only when release intent is clear.
Use worktrees for:
Read references/worktree.md for full worktree guide.
git status
git diff --stat
git log --oneline -10
git show <commit>
git blame path/to/file.py
git branch -a
git worktree list
commands/commit.md -- prepare clean commits from current treecommands/debug.md -- investigate regressions before using git bisectreferences/worktree.md -- worktree patterns and caveatsdevelopment
--- name: verification description: Discover and run project validation gates: format, lint, typecheck, LSP diagnostics, tests, build, static security checks, dependency audits, and RTK output handling. Use before claiming work is complete, when fixing broken checks, or when setting up a validation plan. --- # Verification Use this skill to prove changes with the strongest practical checks the repo already supports. ## Discovery Order 1. Read task aliases: `package.json`, `pyproject.toml`, `
tools
Build, review, or validate standalone Python scripts run with uv inline metadata. Use for one-file automation, operational scripts, script dependencies, shebangs, idempotency, safety, representative runs, and promoting scripts to packages.
development
Build, review, or validate Python packages and libraries where public API stability, packaging metadata, imports, examples, changelogs, build output, and compatibility matter.
tools
Build, review, or validate Python command-line applications and terminal tools. Use for argparse, Typer, Rich, Textual-adjacent CLI UX, stdout/stderr contracts, exit codes, automation-friendly flags, help output, and CLI tests.