git-fetch

git-fetch is a skill for Claude Code from aiya000/dotfiles. It costs 41 tokens per session (575 once invoked), scanned A, original, MIT.

A Git workflow for downloading information about new commits from a remote repository without changing local files. Git is a version-control system, and a remote repository is the shared copy hosted elsewhere.

In plain words
What is it for?
It is for fetching remote history, comparing incoming and outgoing commits, and reporting changes that may affect code or development tools.
Why use it?
It shows what is incoming and what files or tool behavior those commits affect before anyone applies them locally.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Good fit It is for fetching remote history, comparing incoming and outgoing commits, and reporting changes that may affect code or development tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiya000/dotfiles/git-fetch
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 aiya000/dotfiles --skill git-fetch
Clone the repo
git clone --depth 1 https://github.com/aiya000/dotfiles

Made for: Claude Code.

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-fetch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiya000/dotfiles/git-fetch"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/git-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 575 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.
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.00041 $0.00575
Opus 5.5 $0.00016 $0.00230
Sonnet 5.5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

Measured 18d ago against content hash 9b8aee19912f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-fetch 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 18d 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.

.claude_global/skills/git-fetch/SKILL.md · 51 lines

How it starts

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

git-fetch

Fetch commits from remote and report what is incoming. The working tree and the local branches stay as they are.

Behavior

  1. Run git status to check the current branch and its upstream
  2. Run git fetch for the upstream remote
  3. Inspect the incoming and outgoing commits (see Inspecting Incoming Commits below)
  4. Report the result (see Report below)

Inspecting Incoming Commits

After fetching, compare the local branch with its upstream:

  • git rev-list --left-right --count HEAD...@{u} -- the number of outgoing (left) and incoming (right) commits
  • git log --oneline HEAD..@{u} -- the incoming commits
  • git diff --stat HEAD...@{u} -- the files the incoming commits touch

Point out anything in the incoming changes that runs code or changes how tools behave, since pulling would apply it silently: git hooks, .envrc, shell rc files, package.json scripts, Makefile, CI workflows, Claude Code settings or hooks.

Report

Report these, so the caller (the user, or the git-pull skill) can decide what to do next:

  • The state of the branch against its upstream: up to date, behind (only incoming commits, fast-forward possible), ahead (only outgoing commits), or diverged (both)
  • The incoming commits and the files they touch
  • Any incoming change that runs code or changes how tools behave

Does Not

  1. Merge, rebase, or otherwise change the local branches or the working tree
  2. Run git fetch --prune or delete remote-tracking branches without explicit user request
  3. Fetch with a refspec that overwrites local branches (e.g. git fetch origin main:main) without explicit user request

Notes

  • If the current branch has no upstream, or it is uncertain which remote to fetch from, ask the user before running git fetch
  • If git fetch fails with could not lock config file .git/config inside the sandbox, rerun it with dangerouslyDisableSandbox: true (see the "Phantom Dotfiles in the Sandbox" section of the global config)

Read the full file on GitHub · 51 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. 18d ago First seen · 51 lines · 41 tokens per session scan A 9b8aee19912f

Subscribe to this mod's changes

git-fetch is a skill published in the GitHub repository aiya000/dotfiles (21 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 575 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-09-28.