Skip to content
Development
Skill

/git-mirror-audit

Verify configured secondary git mirrors are present and not drifting from the primary remote/default branch

From plugin
aiwg
229200 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --skill git-mirror-audit --agent claude-code

SKILL.md

git-mirror-audit.SKILL.md
namespace: aiwg
name: git-mirror-audit
platforms: [all]
description: Verify configured secondary git mirrors are present and not drifting from the primary remote/default branch
requires:
  - git: repository with remotes
  - config: .aiwg/aiwg.config remotes.secondary[] entries
ensures:
  - report: mirror drift per configured secondary remote
  - exit-code: non-zero when drift exists and --fail-on-drift is set
errors:
  - config-missing: no remotes.secondary[] configured
  - remote-missing: configured secondary remote does not exist in git remote
invariants:
  - read-only audit; never pushes to mirrors
  - backup-mirror semantics are reported separately from active replication
commandHint:
  argumentHint: "[--fail-on-drift] [--default-branch <name>] [--format text|json]"
  allowedTools: Read, Bash
  model: haiku
  category: maintenance
  orchestration: false
  modelRole: efficiency
  modelTier: economy

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
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other skills on aiwg.

agent-loop-ext

agent-loop-ext

Crash-resilient external agent loop with state persistence and CI/CD integration

@jmagly@jmaglyInstall Skill
agent-loop

agent-loop

Detect requests for iterative autonomous agent loops and route to the appropriate loop executor

@jmagly@jmaglyInstall Skill
auto-test-execution

auto-test-execution

Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern

@jmagly@jmaglyInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about git-mirror-audit.

Which coding agents can use git-mirror-audit?
git-mirror-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.