Skip to content
Skill

Git workflow and versioning

Guides an agent through atomic commits, branching, worktrees, PRs and semver releases

Git workflow and versioning is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
123K
Last commit
License
MIT
Listing updated

Similar skills

About Git workflow and versioning

This skill sets out a git discipline for AI coding agents: commit each working increment, keep commits atomic, and keep refactors separate from feature or behavior changes. It covers trunk-based development with short-lived branches, a commit message format built around intent, and git worktrees so several agents can work on different branches side by side without colliding.

The skill also works through a save-point pattern in which the agent runs tests before each commit and reverts to the last good state when a check fails. A pre-commit checklist asks for a review of the staged diff, a search for likely secrets, and the project's test, lint and type-check commands. It adds guidance on generated files, .gitignore coverage and debugging with bisect and blame.

For releases, it explains choosing a MAJOR, MINOR or PATCH bump based on consumer impact, tagging versions with annotated git tags, and maintaining a human-readable changelog grouped by Added, Changed, Fixed, Deprecated, Removed and Security. It expects a git repository and the project's own test, lint and type-check tooling, with examples written for JavaScript and TypeScript projects.

When your agent uses it

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog. Use when asked to write a commit message or a changelog entry for a change, or to split a change into commits, even when the diff is pasted inline and the message seems easy to write from it.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (19 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the agent-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic

Or copy only this skill to ~/.claude/skills/git-workflow-and-versioning:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/git-workflow-and-versioning &&
cp -R "$tmp/skills/git-workflow-and-versioning" ~/.claude/skills/git-workflow-and-versioning &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/git-workflow-and-versioning inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/git-workflow-and-versioning to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/git-workflow-and-versioning &&
cp -R "$tmp/skills/git-workflow-and-versioning" ~/.agents/skills/git-workflow-and-versioning &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/git-workflow-and-versioning inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/git-workflow-and-versioning to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/git-workflow-and-versioning &&
cp -R "$tmp/skills/git-workflow-and-versioning" ~/.cursor/skills/git-workflow-and-versioning &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/git-workflow-and-versioning inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/addyosmani/agent-skills.git --path skills/git-workflow-and-versioning

Or copy the folder to ~/.gemini/skills/git-workflow-and-versioning yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/git-workflow-and-versioning:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/git-workflow-and-versioning &&
cp -R "$tmp/skills/git-workflow-and-versioning" ~/.copilot/skills/git-workflow-and-versioning &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/git-workflow-and-versioning inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/addyosmani/agent-skills.git

Then copy agent-skills/skills/git-workflow-and-versioning into your agent's skills folder as git-workflow-and-versioning. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Atomic commit discipline
Rules for keeping each commit to one logical change, with size targets and separated refactors.
Commit message format
A type-prefixed message layout that explains the reason for a change rather than restating the diff.
Branching and worktrees
Short-lived feature branches and git worktrees for running parallel agent work in isolated directories.
Pre-commit checks
A checklist covering staged diff review, secret scanning, tests, linting and type checking before each commit.
Semantic version bumps
Guidance on choosing major, minor or patch releases based on what consumers can observe.
Tagging and changelogs
Annotated release tags and a consumer-facing changelog format grouped by impact.

Good for

  • Split a messy working tree into clean, reviewable commits
  • Write a commit message explaining why a change was made
  • Set up parallel branches with worktrees for several agents
  • Choose the right semantic version bump for a release
  • Draft a changelog entry for a user-facing change
  • Prepare a pull request with a size-appropriate scope

Git workflow and versioning FAQ

When does Git workflow and versioning trigger?

It is meant for any code change and applies when committing, branching, resolving conflicts, opening or reviewing pull requests, pushing, cutting releases, tagging, or writing commit messages and changelog entries.

Does Git workflow and versioning require any scripts or extra tools?

It ships no scripts. It relies on git and on the project's own test, lint and type-check commands, and it references a shared agent CLI guidance file for machine-readable git output.

Does Git workflow and versioning enforce a branching model?

It recommends trunk-based development with short-lived branches, but says teams using gitflow or long-lived branches can keep the commit discipline while adapting the branching model.

Does Git workflow and versioning set up git hooks for me?

It shows an example lint-staged and husky configuration for package.json but does not install or configure hooks itself.

How do I install Git workflow and versioning in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/git-workflow-and-versioning to use it in all your projects, or to .claude/skills/git-workflow-and-versioning in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.

Does Git workflow and versioning run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Git workflow and versioning?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Git workflow and versioning?

The closest alternatives to Git workflow and versioning are Git workflow, Git, Git workflow, GitHub workflow and Git and release ops edho ferdian.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from addyosmani/agent-skills

  1. Lets your coding agent inspect and test live browser pages through Chrome DevTools

    • Open source
    • 123K GitHub stars
    • Browser automation
  2. Guides an agent through red-green-refactor test-first development and bug reproduction

    • Open source
    • 123K GitHub stars
    • Developer tools
  3. Audits interfaces against WCAG 2.2 AA and guides fixing the violations found

    • Open source
    • 123K GitHub stars
    • Developer tools
  4. Guides designing stable, hard-to-misuse APIs, REST endpoints and module contracts

    • Open source
    • 123K GitHub stars
    • Design and media
  5. Sets up CI/CD quality gates, deployment strategies and rollback plans for agents

    • Open source
    • 123K GitHub stars
    • Developer tools
  6. Guides an agent through multi-axis code review before changes are merged

    • Open source
    • 123K GitHub stars
    • Developer tools