git-operations

git-operations is a skill for Claude Code, Codex from GoogleCloudPlatform/scion. It costs 53 tokens per session (1,238 once invoked), scanned A, original, Apache-2.0.

Safety guidance for using Git with Scion-managed coding agents. Git is the version-control system used to track code changes, branches, and commits.

In plain words
What is it for?
Use it when cleaning a workspace, handling files shared between agents, rebasing after deletions, or deciding which Git cleanup command is safe.
Why use it?
It reduces the risk of deleting ignored files, losing downloaded data, or creating problems when rebasing branches.

Skill for Claude CodeCodex

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

Good fit Use it when cleaning a workspace, handling files shared between agents, rebasing after deletions, or deciding which Git cleanup command is safe.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/scion/git-operations
About the project

Scion is a multi-agent orchestration platform that runs several isolated agents concurrently in containers, optionally giving each one its own workspace and credentials. It is used to coordinate coding and other research or operations tasks across local machines, remote virtual machines, and Kubernetes clusters. Catalogue add-ons provide workflows and controls for operating Scion.

GoogleCloudPlatform/scion · 2,148 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 GoogleCloudPlatform/scion --skill git-operations
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/scion

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/scion/git-operations"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/scion/git-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 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 19
    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.
  • high Tool Misuse · line 22
    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.
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.00053 $0.01238
Opus 5.5 $0.00021 $0.00495
Sonnet 5.5 $0.00011 $0.00248
Haiku 4.5 $0.00005 $0.00124

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

Security

Grade A, and why

git-operations 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 5d 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.

resources/platform_skills/git-operations/SKILL.md · 54 lines

How it starts

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

Git Operations

General git safety rules for Scion agents. These apply regardless of workspace sharing mode — for local worktree sandbox rules, see the git-sandbox skill.

Shallow Clones

In-container per-agent clones (SCION_GIT_DEPTH set — clone-per-agent, or a worktree-per-agent start that fell back to cloning) default to a shallow clone of depth 1 (SCION_GIT_DEPTH=1; N means depth N, and 0 means a full clone). SCION_GIT_DEPTH reflects the initial clone setting; run git rev-parse --is-shallow-repository to check whether the live checkout is still shallow.

Symptoms of a shallow clone:

  • git diff main...HEAD and git merge-base fail with no merge base (or return empty output) when the branch point is older than the clone depth.
  • Two-dot ranges (git log a..b) walk to the shallow graft and list hundreds of unrelated commits.
  • git log -S, git blame, and tag comparisons cannot see commits past the shallow boundary; git merge/git pull fail with refusing to merge unrelated histories, git rebase replays the grafted root commit and conflicts, and git push to a lagging fork remote can fail with remote rejected when .git/shallow holds a boundary commit absent from that remote (deepen past the merge base or unshallow first).

How to handle history and range operations (when remote access permits):

  • Reach a merge base quickly: git fetch --deepen=50 origin main (increase <N> until git merge-base succeeds). Use --deepen=<N> while shallow and plain git fetch once unshallowed — running git fetch --depth=<N> on an unshallowed checkout writes a new .git/shallow graft and re-shallows it.
  • Inspect deeper commit/tree history without downloading all blobs: git fetch --filter=blob:none --deepen=200 <remote> <branch> (trees are fetched, blobs are not: --name-only/--name-status and git log -1 --no-patch <sha> stay local, while git show --stat, -p, and other content diffs fetch missing blobs on demand).
  • Fetch complete history (for full git log -S, blame, or rebase): git fetch --unshallow.
  • Diff against an explicit base commit: when your brief names the base SHA and only a diff is needed, fetch that commit by its full 40-character SHA (git fetch origin <full-40-char-sha> — short SHAs always fail with couldn't find remote ref, which matters most for commits no longer on any branch after a rebase or force-push) and run git diff <base-sha> HEAD.

Read the full file on GitHub · 54 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. 5d ago Changed 2c3b8708552f
  2. 7d ago Changed 8c1ab438d099
  3. 13d ago Changed ee263b47690f
  4. 15d ago Changed · +19 lines · +3 tokens per session 37ee67591b5b
  5. 3mo ago First seen · 35 lines · 50 tokens per session scan A 6529354c6a9d

Subscribe to this mod's changes

git-operations is a skill published in the GitHub repository GoogleCloudPlatform/scion (2,148 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 1,238 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-30.

Related

git-operations compared with skills from other repositories

git-operations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-operationsGoogleCloudPlatform/scionSkill2.1ktodayApache-2.0A53Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k3d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k12d agoMITA39Codex