git-workflow-and-versioning

git-workflow-and-versioning is a skill for Claude Code, Codex from chankov/agent-fleet. It costs 40 tokens per session (2,795 once invoked), scanned A, original, MIT.

A set of rules for managing code changes with Git, a tool that records versions of a project. It covers commits, branches, conflict resolution, and parallel work.

In plain words
What is it for?
Use it when changing code, committing work, resolving Git conflicts, or coordinating several streams of development.
Why use it?
It keeps changes organized, reviewable, and reversible, especially when an agent is making code quickly. It also prevents the agent from changing branches without the developer’s approval.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../project-feature-a feature/task-creation.

Good fit Use it when changing code, committing work, resolving Git conflicts, or coordinating several streams of development.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/chankov/agent-fleet
agentmods
npx agentmods add skills/chankov/agent-fleet/git-workflow-and-versioning

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-workflow-and-versioning

README.md
[![agentmods](https://agentmods.dev/badge/skills/chankov/agent-fleet/git-workflow-and-versioning/github.svg)](https://agentmods.dev/skills/chankov/agent-fleet/git-workflow-and-versioning)
Your own site
<a href="https://agentmods.dev/skills/chankov/agent-fleet/git-workflow-and-versioning"><img src="https://agentmods.dev/badge/skills/chankov/agent-fleet/git-workflow-and-versioning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-workflow-and-versioning

Your own site · 80×15
<a href="https://agentmods.dev/skills/chankov/agent-fleet/git-workflow-and-versioning"><img src="https://agentmods.dev/badge/skills/chankov/agent-fleet/git-workflow-and-versioning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 205
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 245
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.02795
Opus 5.5 $0.00016 $0.01118
Sonnet 5.5 $0.00008 $0.00559
Haiku 4.5 $0.00004 $0.00280

Measured 3mo ago against content hash 418d413a1454, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-workflow-and-versioning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.versions/0.0.1/skills/git-workflow-and-versioning/SKILL.md · 317 lines

How it starts

The opening of the file, as written. The whole thing — 317 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Workflow and Versioning

Overview

Git is your safety net. Treat commits as save points, branches as sandboxes, and history as documentation. With AI agents generating code at high speed, disciplined version control is the mechanism that keeps changes manageable, reviewable, and reversible.

When to Use

Always. Every code change flows through git.

Agent Operating Rule: Stay on the Current Branch

The agent does not create, switch, or delete branches. Branch selection belongs to the human — they check out the branch they want before handing work to the agent. Work in whatever branch is currently checked out.

  • If the current branch looks unsuitable for the change (for example, you are on main/master and the change is not a trivial one), stop and tell the user so they can create the branch. Do not create it for them.
  • You may still split work into separate atomic commits on the current branch — and you should propose that whenever a change mixes concerns.
  • Worktrees are a human-initiated technique for parallel work (see Working with Worktrees); setting them up is not an agent action under this skill.

The branching material below — trunk-based development, feature branches, naming — is reference guidance for humans deciding how to organize work. It is not a license for the agent to create branches.

Project overrides: if .ai/agent-fleet-overrides.md has a ## git-workflow-and-versioning section with branching: allow, the agent may create feature branches following the naming guidance below. The default is branching: never. See docs/agent-fleet-setup.md.

Core Principles

Trunk-Based Development (Recommended)

Keep main always deployable. Work in short-lived feature branches that merge back within 1-3 days. Long-lived development branches are hidden costs — they diverge, create merge conflicts, and delay integration. DORA research consistently shows trunk-based development correlates with high-performing engineering teams.

Read the full file on GitHub · 317 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 317 lines · 40 tokens per session scan A 418d413a1454

Subscribe to this mod's changes

git-workflow-and-versioning is a skill published in the GitHub repository chankov/agent-fleet (22 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 2,795 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

git-workflow-and-versioning compared with skills from other repositories

git-workflow-and-versioning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-workflow-and-versioningchankov/agent-fleetSkill22yesterdayMITA40Claude Code, Codex
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
git-commitThinkInAIXYZ/deepchatSkill6.4kyesterdayApache-2.0A15Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill11ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill4.2ktodayApache-2.0A25Claude Code
contributingHugoRCD/evlogSkill2.0k2d agoMITA68Claude Code, Codex
git-commit-writermergisi/awesome-openclaw-agentsSkill4.1k27d agoMITA53Claude Code, Codex