# Git

> Git is an open-source agent skill for developer tools. Guides an agent on atomic commits, commit messages, trunk-based branching and SemVer tags. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/git
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** git
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives a coding agent a set of git landing practices for how a change is committed, branched and released. It covers keeping each commit to one self-contained change, writing messages that explain motivation, integrating through short-lived branches off trunk, and tagging releases with Semantic Versioning from a clean, tested revision. It also includes a rule to flag oversized or multi-concern changes and suggest a split based on their blast radius, though this is advisory rather than a hard block.

The skill is part of the mokata pipeline and expects that environment. Durable git actions such as recording a branching or versioning decision are meant to pass through mokata's write gate, which scans for secrets, requires human approval and writes an audit entry. It references primary sources like Pro Git, trunk-based development guidance and the Semantic Versioning spec, and it points to a reference file for the full workflow.

The skill is written for Git repositories and needs no external services or scripts. It ships no executable scripts, so the agent works from the repository's diff, log and tags.

## When your agent uses it

> mokata · Git workflow & versioning — atomic commits + change-sizing riding the WriteGate, not habits.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/git)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/git)

## Features

- **Atomic commit discipline:** Keeps each commit to one logically self-contained change that can be reverted on its own.
- **Commit message guidance:** Asks for a short imperative summary and a body explaining the motivation behind the change.
- **Trunk-based branching:** Favors short-lived branches merged back into a shared mainline rather than long divergences.
- **Change-size advisory:** Flags oversized or multi-concern changes and suggests how to split them based on blast radius.
- **Semantic version tagging:** Ties release tags to clean, tested revisions using SemVer numbering rules.
- **Write-gate integration:** Routes durable git decisions through secret scanning, human approval and audit logging.

## Good for

- Split a mixed commit containing a bug fix, rename and feature into separate commits
- Rewrite vague commit messages like wip into clear summaries with motivation
- Plan a short-lived branch strategy for a change that touches shared code
- Decide how to tag a release version from the mainline revision
- Review whether a large change should be broken up before landing

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/git`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/git &&
cp -R "$tmp/src/mokata/skills/git" ~/.claude/skills/git &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/git` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/git` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/git &&
cp -R "$tmp/src/mokata/skills/git" ~/.agents/skills/git &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/git` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/git` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/git &&
cp -R "$tmp/src/mokata/skills/git" ~/.cursor/skills/git &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/git` inside it instead.

### Gemini CLI

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

```sh
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/git
```

Or copy the folder to `~/.gemini/skills/git` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/git`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/git &&
cp -R "$tmp/src/mokata/skills/git" ~/.copilot/skills/git &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/git` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/git` into your agent's skills folder as `git`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Git change in the agent's behavior?

It shapes how the agent structures commits, writes messages, branches and tags releases, and suggests splitting oversized changes based on blast radius.

### Does Git need any scripts or external tools?

No scripts are included. It works from the repository's diff, log and tags and references the mokata pipeline for gated writes.

### When does Git trigger?

It engages when work touches the git workflow, branching or merge strategy, commit structure, versioning or release tagging, or .gitignore and .gitattributes policy, and not for ordinary in-file code changes or CI pipeline changes.

### Is change-size enforcement mandatory?

No. Change-sizing is advisory in this release, so the skill suggests a split but does not block a change based on size.

### How do I install Git in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/git to use it in all your projects, or to .claude/skills/git in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Git 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?

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?

The closest alternatives to Git are Git commit, Commit, Commit, Conventional commit and Ci cd.

## Where this comes from

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

## Alternatives

- [Git commit](https://ai-powered.com/skills/git-commit): Git commit is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit-denysdovhan): Commit is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit): Commit is an open-source agent skill for developer tools.
- [Conventional commit](https://ai-powered.com/skills/conventional-commit): Conventional commit is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Safe change](https://ai-powered.com/skills/safe-change): Safe change is an open-source agent skill for developer tools.
- [Conventional branch](https://ai-powered.com/skills/conventional-branch): Conventional branch is an open-source agent skill for developer tools.
- [Gitmoji](https://ai-powered.com/skills/gitmoji): Gitmoji is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/git-jasgujral
