metagit-graph-maintain

metagit-graph-maintain is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 49 tokens per session (1,132 once invoked), scanned A, original, MIT.

A workflow for maintaining dependency and relationship links between repositories in a workspace. It stores these links in .metagit.yml and syncs them to GitNexus, a tool for repository relationship and dependency maps.

In plain words
What is it for?
Use it to bootstrap a workspace graph, review suggested dependencies, approve manual relationships, and refresh the GitNexus overlay.
Why use it?
It helps teams find cross-repository connections and keep approved relationships recorded over time. It also distinguishes inferred links from links that need an operator's confirmation.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./skills/metagit-gitnexus/scripts/ingest-workspace-graph.sh -c .metagit.yml.

Good fit Use it to bootstrap a workspace graph, review suggested dependencies, approve manual relationships, and refresh the GitNexus overlay.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/metagit-ai/metagit-cli
agentmods
npx agentmods add skills/metagit-ai/metagit-cli/metagit-graph-maintain

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-graph-maintain

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-graph-maintain"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-graph-maintain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,132 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.00049 $0.01132
Opus 5 $0.00024 $0.00566
Sonnet 5 $0.00010 $0.00226
Haiku 4.5 $0.00005 $0.00113

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

Security

Grade A, and why

metagit-graph-maintain 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/maintain-graph.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-graph-maintain/SKILL.md · 136 lines

How it starts

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

Workspace graph maintenance

Use this skill to discover and keep durable cross-repo edges in .metagit.yml graph.relationships, then sync them into GitNexus.

When to use

Phase Trigger
Discover New umbrella workspace, empty graph.relationships, or first graph authoring pass
Maintain After adding repos, promoting inferred deps, or refreshing GitNexus overlay

First-time discovery (report only)

Do not apply until the operator approves the discovery report.

export METAGIT_AGENT_MODE=true
metagit prompt workspace -c .metagit.yml -k graph-discover --text-only
metagit workspace list -c .metagit.yml --json
metagit config graph suggest -c .metagit.yml --json --include-declared --min-confidence all

Deliver a Graph Discovery Report:

  • inferred edges grouped by confidence (high / medium / low)
  • gap pairs with no machine path (need operator interview)
  • proposed_manual_edges[] from interview answers
  • operations_preview JSON — not applied

After sign-off, continue with the maintenance workflow below (or metagit prompt workspace -k graph-maintain).

Maintenance workflow

CLI flags: -c on config graph suggest|export is the manifest path (trailing leaf -c is valid). --workspace-root is the checkout root used to scan inferred deps. Global metagit -c configures appconfig, not .metagit.yml.

1. Bootstrap context

export METAGIT_AGENT_MODE=true
metagit prompt workspace -c .metagit.yml -k graph-maintain --text-only
metagit workspace list -c .metagit.yml --json

2. Suggest candidates

metagit config graph suggest -c .metagit.yml --json
metagit config graph suggest -c .metagit.yml --min-confidence high --json

MCP: metagit_suggest_graph_relationships

Review candidates[] for confidence, evidence, and source_edge_type. Skip low-confidence edges unless the operator approves.

Also review stale_manual[] — active manual relationships with no supporting inferred edge under the current scan, matched on endpoints so a differing relationship type still counts as support (report-only; do not edit/remove without operator confirmation). Use --verbose when candidates are empty to confirm scan roots and ignore prune counts.

Read the full file on GitHub · 136 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. 9d ago First seen · 136 lines · 49 tokens per session scan A 8a4628f7e73b

Subscribe to this mod's changes

metagit-graph-maintain is a skill published in the GitHub repository metagit-ai/metagit-cli (3 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,132 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