metagit-upstream-scan

metagit-upstream-scan is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 30 tokens per session (394 once invoked), scanned A, original, MIT.

A workspace-discovery helper for finding related repositories, files, and likely causes when a problem may originate elsewhere. An upstream blocker is an issue in a shared component or repository that prevents the current repository from being fixed alone.

In plain words
What is it for?
It helps investigate Terraform inputs, Docker versions, infrastructure definitions, and CI failures, then identify likely repositories and files.
Why use it?
It reduces guesswork when the visible failure is caused by shared infrastructure, templates, images, or configuration in another repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It helps investigate Terraform inputs, Docker versions, infrastructure definitions, and CI failures, then identify likely repositories and files.

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

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 metagit-upstream-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-upstream-scan/github.svg)](https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-upstream-scan)
Your own site
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-upstream-scan"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-upstream-scan/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 metagit-upstream-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-upstream-scan"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-upstream-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 394 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.00030 $0.00394
Opus 5 $0.00015 $0.00197
Sonnet 5 $0.00006 $0.00079
Haiku 4.5 $0.00003 $0.00039

Measured 9d ago against content hash 0e7e9e1f1caf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

metagit-upstream-scan 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/upstream-scan.sh), 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/skills/metagit-upstream-scan/SKILL.md · 57 lines

What it actually says

Metagit Upstream Discovery Skill

Use this skill when the current repo does not appear to contain the full fix and related repositories may hold the source issue.

Supported Use Cases

  • Missing Terraform input in a shared module
  • Docker base image/version mismatch across repos
  • Shared infrastructure definitions causing local failures
  • CI pipeline breakages tied to upstream templates/workflows

Local Script Wrapper (Use First)

Use this token-efficient wrapper for upstream discovery tasks:

  • ./scripts/upstream-scan.sh [root_path] "<query>" [preset] [max_results]

Output format:

  • compact status line
  • top ranked repo hints (hint)
  • top search file hits (hit)

Workflow

  1. Read workspace repository map from active .metagit.yml.
  2. Run metagit_workspace_index to verify repo availability and sync state.
  3. Use metagit_workspace_search with category preset (terraform, docker, infra, ci).
  4. Use metagit_upstream_hints to rank candidate repositories and files.
  5. Return a concise action plan:
    • top candidate repos
    • likely files/definitions
    • whether sync is needed before deeper analysis

Search Strategy

  • Start narrow with issue-specific terms (error, module, variable, image tag).
  • Expand to broader shared terms if no hits.
  • Prefer repositories referenced by workspace metadata before searching unknown repos.

Output Contract

Return:

  • ranked candidates with rationale
  • suggested next file openings
  • confidence level and unresolved assumptions

Safety Rules

  • Restrict search to configured workspace repositories.
  • Cap result size and duration.
  • Keep this workflow read-only unless an explicit sync action is requested.
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. 9d ago First seen · 57 lines · 30 tokens per session scan A 0e7e9e1f1caf

Subscribe to this mod's changes

metagit-upstream-scan is a skill published in the GitHub repository metagit-ai/metagit-cli (3 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 394 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

hunk-extensions

Maps the hunkdiff/extension authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked panes, alternate file views, commands and key bindings, dialogs, workspace writes, themes, syntax languages, VCS backends, lifecycle events. Use when writing, debugging, or installing a Hunk…

modem-dev/hunk · 105 tokens

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

triaging-merge-queue-failures

Decision procedure for a PR that failed or was removed from the Trunk merge queue: classify the kick (superseded by a newer commit, not mergeable, a gate that failed on a cancelled run, real failure, one-off flake, or repo-wide flaky/infra issue) and take the matching action (wait, hold and fix, requeue once, or…

PostHog/posthog · 180 tokens

issue-assessment

Use when triaging a GitHub issue for gflow-cli — a reporter's bug claim, a freshly-filed issue, or deciding whether and how to act on one. Also use when an autonomous agent (hermes-ops) picks up a labelled issue. Read-only: produces a verdict, an end-to-end-verifiability judgment, and a reporter-facing reply. Does not…

ffroliva/gflow-cli · 90 tokens

triage

Diagnose and fix broken MCP servers in mcptoon — doctor, health, per-server probes, and the common failure playbook.

activeing123/mcptoon · 30 tokens

pixiv-cli-ci

Diagnose, verify, monitor, and safely operate pixiv-cli GitHub Actions runs and local CI gates, including PR Quality gate, workflow policy, platform smoke, native/browser evidence, release handoffs, and approved reruns. Use when checks fail or hang, a PR needs readiness verification, a workflow run needs root-cause…

FlanChanXwO/pixiv-cli · 82 tokens