version-control

version-control is a skill for Claude Code, Codex from gke-labs/kube-agents. It costs 65 tokens per session (5,011 once invoked), scanned A, original, Apache-2.0.

A repository workflow for reading and changing code hosted on a forge, such as GitHub or another code-hosting service. It separates remote actions, such as creating proposals and issues, from local Git actions on a checked-out working copy.

In plain words
What is it for?
Use it to clone repositories, inspect history and changes, commit locally, publish changes, and create or discuss proposals and issues.
Why use it?
It provides one consistent way to work with different hosting services and keeps network credentials outside the working environment. It also covers common history, file, proposal, and issue tasks without requiring a hosting service's command-line tool.

Skill for Claude CodeCodex

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

Good fit Use it to clone repositories, inspect history and changes, commit locally, publish changes, and create or discuss proposals and issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gke-labs/kube-agents/version-control
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 gke-labs/kube-agents --skill version-control
Clone the repo
git clone --depth 1 https://github.com/gke-labs/kube-agents

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 version-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/gke-labs/kube-agents/version-control/github.svg)](https://agentmods.dev/skills/gke-labs/kube-agents/version-control)
Your own site
<a href="https://agentmods.dev/skills/gke-labs/kube-agents/version-control"><img src="https://agentmods.dev/badge/skills/gke-labs/kube-agents/version-control/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 version-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/gke-labs/kube-agents/version-control"><img src="https://agentmods.dev/badge/skills/gke-labs/kube-agents/version-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,011 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.00065 $0.05011
Opus 5.5 $0.00026 $0.02004
Sonnet 5.5 $0.00013 $0.01002
Haiku 4.5 $0.00006 $0.00501

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

Security

Grade A, and why

version-control 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/test_vcs.py, scripts/vcs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agents/platform/skills/version-control/SKILL.md · 321 lines

How it starts

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

version-control - remote operations through vcs.py, local operations with git

Version control here is abstracted. Everything is one of two things, and getting an operation into the right half is most of using this skill.

Remote operations — anything that crosses the network or spends a credential. These go through scripts/vcs.py, which speaks to a broker in another container. Only the broker holds the credential; nothing here does. The remote verbs are exactly these:

capabilities, identity, clone, publish, proposal create|list|view|comment|update|close|commits|acknowledge, issue create|list|view|comment|update|close, label ensure, remote-branch view|delete.

update edits a title or body and adds or removes labels; close closes; commits lists the revisions on a proposal's source branch; acknowledge reacts to a comment (its id and kind come from view --comments) so its author sees it was read — capabilities says whether this forge supports it. issue list --query <text> searches, and --without-labels skips issues carrying any of them — that is how a queue is read for unclaimed work. label ensure creates a label or updates it if it exists. identity says who this install is on the forge and, with --login, whether that login may write to the repository. remote-branch view says whether the shared repository still holds a branch and at which revision; remote-branch delete removes one only when it is spent — under platform-agent/, no open proposal on it, and its tip exactly what a merged or closed proposal this install opened from this repository carried — and only at the --revision you just read.

Local operations — everything else. clone unpacks a real working copy onto this filesystem and prints its path. Inside it, use git — git log, git show, git blame, git grep, git diff, git status, git branch, git commit, git ls-files --stage — and every read works as you expect. Read files in the working copy with cat, rg, or anything else. You do not need vcs.py for any of this and it is faster without it.

This git holds no credential and cannot reach a forge: its HTTP transport helpers are not in the image, so an https:// URL fails with 'remote-https' is not a git command, and there is no ssh client, so an ssh:// URL fails with cannot run ssh. Seeing either message means you asked it for the one thing it does not do; the answer is a vcs.py verb. There is no gh here either, for the same reason.

vcs.py also offers log, show, annotate, files, grep, diff, status, branch and commit as thin wrappers over that same local git, for when you want their JSON output. They make no network call. Use whichever you prefer; the wrapper is a convenience, not the sanctioned path.

The reason for the split is that the history is here rather than there. clone brings a repository down as a git bundle, so the full object graph — every commit, every parent, every tree entry with its mode — is on this disk. Your revisions go up the same way, as a bundle, which is why a branch of five commits arrives as five commits. Nothing that came out of the repository is ever executed beside the credential.

The script is /opt/data/profiles/platform/skills/version-control/scripts/vcs.py (scripts/vcs.py inside the skill directory). Every subcommand prints one JSON object on stdout. --repo takes owner/name or a full URL, and the broker decides which forge that is. On an install that serves more than one forge, owner/name is refused: name the repository by its URL.

Verb names are the version-control concept; the spelling you know is an alias. annotate/blame, log/history, files/manifest, grep/search, publish/push, proposal/pr/mr, create/open all work.

Read the full file on GitHub · 321 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 76acfe5208aa
  2. 8d ago Changed · +6 lines 641833918122
  3. 14d ago Changed · +25 lines ed55d2edebba
  4. 15d ago Changed · +1 lines 8f197e9885e8
  5. 18d ago Changed · -9 lines 5535ee1cc7e0
  6. 20d ago Changed · -2 lines 8a6b376f21d3
  7. 21d ago Changed · +26 lines 6dc34ec1c499
  8. 23d ago Changed · +55 lines 5dfa7fbac293
  9. 1mo ago First seen · 219 lines · 65 tokens per session scan A d196c23a9c29

Subscribe to this mod's changes

version-control is a skill published in the GitHub repository gke-labs/kube-agents (109 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 5,011 once invoked, about $0.0003 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-16.