/git-mirror-audit
Verify configured secondary git mirrors are present and not drifting from the primary remote/default branch
$ npx -y skills add jmagly/aiwg --skill git-mirror-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/git-mirror-audit
Context preview
The summary Claude sees to decide when to auto-load this skill.
Verify configured secondary git mirrors are present and not drifting from the primary remote/default branch
SKILL.md
git-mirror-audit.SKILL.mdnamespace: 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
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
Multi-agent AI framework for Claude Code, Copilot, Cursor, Warp, and 6 more platforms 200+ agents, 109+ CLI commands, 400+ deployable agent/skill/command/rule artifacts, 8 core frameworks, 32 addons, and a 40-plugin Claude Code marketplace.
Repo: jmagly/aiwg
Other skills on aiwg.
- /agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Open skill - /agent-loop
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Open skill - /auto-test-execution
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Open skill - /cross-task-learner
Enable agent loops to learn from similar past tasks and share patterns across loops
Open skill - /debug-memory
Query and manage the executable feedback debug memory
Open skill - /execute-feedback
Execute tests on generated code and iterate until passing
Open skill

