git-mirror-audit

git-mirror-audit is a skill for Claude Code, Codex from jmagly/aiwg. It costs 22 tokens per session (498 once invoked), scanned A, original, MIT.

A read-only check for secondary Git repositories that mirror a primary repository for backup or release delivery.

In plain words
What is it for?
Checking configured remotes, comparing their default branches, and reporting drift or the last known commit.
Why use it?
It identifies missing mirrors and differences between the primary repository and each mirror without changing either one.

Skill for Claude CodeCodex

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

Good fit Checking configured remotes, comparing their default branches, and reporting drift or the…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmagly/aiwg/git-mirror-audit
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 jmagly/aiwg --skill git-mirror-audit
Clone the repo
git clone --depth 1 https://github.com/jmagly/aiwg

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 git-mirror-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagly/aiwg/git-mirror-audit.svg)](https://agentmods.dev/skills/jmagly/aiwg/git-mirror-audit)
Your own site
<a href="https://agentmods.dev/skills/jmagly/aiwg/git-mirror-audit"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/git-mirror-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 498 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00022 $0.00498
Opus 5 $0.00011 $0.00249
Sonnet 5 $0.00004 $0.00100
Haiku 4.5 $0.00002 $0.00050

Measured 3d ago against content hash 6fde42ad8c5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

git-mirror-audit scanned grade A with 1 finding 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 3d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `.aiwg/security/curl-checklist-gap-analysis.md` row 3, Practice 21
agentic/code/addons/aiwg-utils/skills/git-mirror-audit/SKILL.md · 65 lines

What it actually says

Git Mirror Audit

Audit redundant git mirrors declared in .aiwg/aiwg.config:

{
  "remotes": {
    "primary": "origin",
    "secondary": [
      {
        "name": "github",
        "purpose": "backup-mirror",
        "push_on_release": true
      }
    ]
  }
}

Execution Flow

  1. Read remotes.primary, delivery.default_branch, and remotes.secondary[].
  2. Confirm every configured secondary exists in git remote.
  3. Fetch remote refs in read-only mode when the operator permits network access.
  4. Compare refs/remotes/{primary}/{default_branch} with each secondary's default branch ref.
  5. Report drift, missing remotes, and last known commit for each mirror.

Semantics

  • purpose: backup-mirror means the mirror is a disaster-recovery copy and should receive release pushes.
  • push_on_release: true means release procedures must push tags and release commits to that mirror before declaring release complete.
  • This skill audits state; it never performs the push.

References

  • agentic/code/addons/aiwg-utils/rules/delivery-policy.md
  • .aiwg/security/curl-checklist-gap-analysis.md row 3, Practice 21
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. 3d ago First seen · 65 lines · 22 tokens per session scan A 6fde42ad8c5b

Subscribe to this mod's changes

git-mirror-audit is a skill published in the GitHub repository jmagly/aiwg (209 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 498 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories