inspect-repository

inspect-repository is a skill for Claude Code, Codex from gke-labs/kube-agents. It costs 65 tokens per session (1,374 once invoked), scanned A, original, Apache-2.0.

A read-only tool for examining the files in a GitHub repository without checking it out into the local working directory. GitHub is a service that hosts Git repositories.

In plain words
What is it for?
It is for reading upstream or dependency code, checking which release introduced a feature, and examining a GitOps repository for context.
Why use it?
It lets you answer code questions about public repositories or repositories accessible with an installed token without changing their contents.

Skill for Claude CodeCodex

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

Good fit It is for reading upstream or dependency code, checking which release introduced a feature, and examining a GitOps repository for context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gke-labs/kube-agents/inspect-repository
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 inspect-repository
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 inspect-repository

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gke-labs/kube-agents/inspect-repository"><img src="https://agentmods.dev/badge/skills/gke-labs/kube-agents/inspect-repository.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 1,374 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.00065 $0.01374
Opus 5.5 $0.00026 $0.00550
Sonnet 5.5 $0.00013 $0.00275
Haiku 4.5 $0.00006 $0.00137

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

Security

Grade A, and why

inspect-repository 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/inspect_repository.py, scripts/test_inspect_repository.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/inspect-repository/SKILL.md · 103 lines

How it starts

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

inspect-repository - Read a repository this pod has no checkout of

This pod has no git of its own and no .git anywhere it can write. To read somebody else's code, ask the credential broker to clone it and pull the file content back. What lands locally is source without a repository around it: files you can open, grep and reason about, and no .git/config for anything to execute out of.

The script is /opt/data/profiles/platform/skills/inspect-repository/scripts/inspect_repository.py. Every subcommand prints one JSON object on stdout.

When to Use

  • Answering a question about code you do not have. "How does upstream implement this controller?", "which release added this flag?"
  • Reading a dependency or an upstream project named in an issue, a design doc, or a user's question.
  • Reading the GitOps repository for context when you are not editing it.

When NOT to Use

  • Changing a repository. Use submit-suggestion (a pull request against the GitOps repo) or fleet-audit (fixes for its own findings). This skill opens read-only workspaces and the broker refuses to commit from one.
  • Reading a file the GitOps workflow already handed you. fleet-audit gives you a leased clone and submit-suggestion prepare gives you the copy it cloned; read theirs rather than opening a second view of the same repository.

Two shapes, and which to pick

Copy the tree when the repository is small enough to read on disk:

python3 /opt/data/profiles/platform/skills/inspect-repository/scripts/inspect_repository.py clone --repo kubernetes-sigs/kustomize --depth 1

Copies into /opt/data/scratch/repos/<owner>__<name> unless --into names somewhere else, and prints written, bytes, skipped, stopped, complete and, in content mode, sha, the commit the copy was taken from. Narrow with --prefix api when only part of it matters.

Search first, take what it names when the repository is large — which is most of them:

Read the full file on GitHub · 103 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. 11d ago Changed d4dc248c4077
  2. 19d ago Changed · +12 tokens per session 548a3f1f1c69
  3. 29d ago Changed · +2 lines 6df303b47d9c
  4. 1mo ago Changed · +5 lines f6faac9e5ad6
  5. 1mo ago First seen · 96 lines · 53 tokens per session scan A 289be8f9d8d3

Subscribe to this mod's changes

inspect-repository is a skill published in the GitHub repository gke-labs/kube-agents (116 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 1,374 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-06.