Git mirror audit

From jmagly/aiwg · View interactive version

Git mirror audit is an AI agent skill from the GitHub repository jmagly/aiwg. Verify configured secondary git mirrors are present and not drifting from the primary remote/default branch

How to use this skill

Skill file

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

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.