git

git is a skill for Claude Code, Codex from octos-org/octos. It costs 0 tokens per session (454 once invoked), scanned A, original, Apache-2.0.

A collection of shell instructions for Git, the version-control system used to record and share code changes.

In plain words
What is it for?
It helps inspect repositories, create and switch branches, compare changes, commit, merge, pull, push, stash, and review file history.
Why use it?
It provides common commands for checking history and changes while reducing mistakes when working with branches, merges, remote repositories, or saved work.

Skill for Claude CodeCodex

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

Good fit It helps inspect repositories, create and switch branches, compare changes, commit, merge, pull, push, stash, and review file history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/octos-org/octos/git
About the project

Octos is a self-hosted AI assistant that runs on a user's computer and can connect to different AI providers, execute code, browse the web, remember information, schedule jobs, and create documents through browser, terminal, and messaging interfaces. The catalogue entries extend or configure this assistant's workflows.

octos-org/octos · 1,047 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add octos-org/octos --skill git
Clone the repo
git clone --depth 1 https://github.com/octos-org/octos

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/octos-org/octos/git/github.svg)](https://agentmods.dev/skills/octos-org/octos/git)
Your own site
<a href="https://agentmods.dev/skills/octos-org/octos/git"><img src="https://agentmods.dev/badge/skills/octos-org/octos/git/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/octos-org/octos/git"><img src="https://agentmods.dev/badge/skills/octos-org/octos/git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 454 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 pass 7 Sept 2026
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.00000 $0.00454
Opus 5 $0.00000 $0.00227
Sonnet 5 $0.00000 $0.00091
Haiku 4.5 $0.00000 $0.00045

Measured 9d ago against content hash 31cdd836e3a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

git 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 9d 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.

crates/octos-agent/skills/git/SKILL.md · 71 lines

What it actually says

Git Version Control

You can perform git operations using the shell tool. Use git for version control tasks like committing, branching, diffing, and managing repositories.

Common Operations

Status and History

git status
git log --oneline -20
git diff
git diff --staged
git show HEAD

Branching

git branch                    # list branches
git branch feature-name       # create branch
git checkout feature-name     # switch branch
git checkout -b feature-name  # create and switch
git merge feature-name        # merge branch

Committing

git add <files>               # stage specific files
git commit -m "message"       # commit with message
git commit --amend            # amend last commit

Remote Operations

git pull origin main
git push origin branch-name
git fetch origin
git remote -v

Stash

git stash                     # stash changes
git stash list                # list stashes
git stash pop                 # apply and drop

Investigation

git log --oneline --graph --all -20    # visual branch history
git blame <file>                        # line-by-line authorship
git log --follow -p -- <file>          # file history with diffs
git reflog                              # recent HEAD movements

Best Practices

  1. Always check git status before committing to see what will be included.
  2. Write clear, concise commit messages describing the "why" not the "what".
  3. Use git diff to review changes before staging.
  4. Prefer creating new commits over amending published commits.
  5. Never force-push to shared branches without explicit permission.
  6. Stage specific files rather than git add . to avoid committing unintended files.
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. 9d ago First seen · 71 lines · 0 tokens per session scan A 31cdd836e3a4

Subscribe to this mod's changes

git is a skill published in the GitHub repository octos-org/octos (1,047 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 454 tokens. 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-30.