inspect-repository

inspect-repository is a skill for Claude Code, Codex from gke-labs/kube-agents. It costs 53 tokens per session (1,197 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 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,197 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.00053 $0.01197
Opus 5 $0.00026 $0.00598
Sonnet 5 $0.00011 $0.00239
Haiku 4.5 $0.00005 $0.00120

Measured 6d ago against content hash 289be8f9d8d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/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 · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 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 ./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 and submit-suggestion give you a workspace or a handle of their own; use 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 ./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 and complete. 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:

H=$(python3 ./skills/inspect-repository/scripts/inspect_repository.py open --repo kubernetes-sigs/kustomize --depth 1 | jq -r .handle)
python3 ./skills/inspect-repository/scripts/inspect_repository.py grep --handle "$H" --pattern 'func NewCmdBuild'
python3 ./skills/inspect-repository/scripts/inspect_repository.py fetch --handle "$H" --into ./src kustomize/commands/build/build.go
python3 ./skills/inspect-repository/scripts/inspect_repository.py close --handle "$H"

Read the full file on GitHub · 96 lines

Files

What ships with it

1 file 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. 6d 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 (54 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 1,197 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

changelog-composer

Generates structured changelogs and release notes from git history and PRs, classifying breaking changes, features, fixes, performance, docs. Triggers on: "generate changelog", "write release notes", "what changed since", "prepare release", "release notes for", "diff since tag".

Mathews-Tom/armory · 67 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens