Codex skills for Git

These skills give Codex git recipes that never open an interactive editor, which would hang its shell: scripted rebase todos, partial staging through git apply --cached and bisect scripts kept outside the repo. Every history rewrite starts from a backup branch and ends with a range-diff, and force pushes wait for your explicit go-ahead.

Every Git skill in one command

Installs these 15 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.

The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh

curl -fsSL codexskills.dev/install.sh | sh -s -- git-commit-hygiene git-history-surgery git-bisect git-worktrees codex-parallel-worktrees merge-conflict-resolution codebase-onboarding changelog-writing pre-commit-hooks stacked-pull-requests code-archaeology agentic-pr-workflow conventional-commits trunk-based-development release-management

Git FAQ

Can Codex find which commit broke a test with git bisect?

Git Bisect writes a check script kept outside the repo that exits 0 for good, 1 for bad and 125 to skip unbuildable commits, then hands it to git bisect run. It proves the script on both ends first, repeats runs for flaky symptoms, uses --first-parent for merge-heavy histories, and confirms the culprit by hand before reporting it.

Can Codex squash or reword commits without git rebase -i?

Git History Surgery scripts rebase todos through GIT_SEQUENCE_EDITOR and GIT_EDITOR, uses fixup commits with autosquash, and squashes a branch with reset --soft. Each rewrite starts with a timestamped backup branch and ends with an empty diff against it plus a range-diff, and lost work is recovered from the reflog. Force pushes wait for your explicit go-ahead.

How does Codex resolve lockfile merge conflicts?

Merge Conflict Resolution regenerates lockfiles for npm, pnpm, Yarn, uv, Poetry, Go and Cargo, along with generated files and snapshots, instead of splicing conflict markers. It reads base, ours and theirs with zdiff3, keeps the ours/theirs inversion during a rebase straight and reuses resolutions with rerere. Every merge is built and tested, because a clean merge can still break behaviour.

How do I install all 15 Git skills at once?

Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- git-commit-hygiene git-history-surgery git-bisect git-worktrees codex-parallel-worktrees merge-conflict-resolution codebase-onboarding changelog-writing pre-commit-hooks stacked-pull-requests code-archaeology agentic-pr-workflow conventional-commits trunk-based-development release-management. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.

Which Git skill should I try first?

Git Commit Hygiene is the closest fit for most Git work. Mention it with $git-commit-hygiene in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.

esc