
Git
Guides an agent on atomic commits, commit messages, trunk-based branching and SemVer tags
Git 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
- 19
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Git
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.
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 (16 KB) on GitHub on 1 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 mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostackOr copy only this skill to ~/.claude/skills/git:
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.
Copy the skill folder to ~/.agents/skills/git to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/git to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/gitOr copy the folder to ~/.gemini/skills/git yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/git:
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.
Get the folder:
git clone --depth 1 https://github.com/JasGujral/mokata-oss.gitThen 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.
What it does
- 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
Git 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.
More from JasGujral/mokata-oss

Makes the agent design API contracts first and check callers before changing them
- Open source
- 19 GitHub stars
- Developer tools

Gives an agent NestJS rules for guards, DTO validation, modules and tests
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent through Socratic exploration of an approach before any spec or code
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent to capture live browser console, network and page state for tests
- Open source
- 19 GitHub stars
- Developer tools

Guides the agent to reproduce a reported bug with a failing test before fixing it
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture
- Open source
- 19 GitHub stars
- Developer tools




