Skip to content
Back to skills

Git Auto Sync Pipelines

ASecurity

Automate unattended Git commits and pushes for a hand-edited notes vault or research repo. When an auto-sync job faces upstream edits or oversized binaries, enforce branch guard, path allowlist, size cap and staged secret scan before rebase and push; add a heartbeat and deduplicated alerts. Not for gdd.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add wxxb789/hoa --skill git-auto-sync-pipelines --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Auto Sync Pipelines?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Auto Sync Pipelines
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wxxb789-git-auto-sync-pipelines/badge)](https://www.skillsdirectory.com/skills/wxxb789-git-auto-sync-pipelines)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-auto-sync-pipelines
description: >-
  Automate unattended Git commits and pushes for a hand-edited notes vault or research repo. When an
  auto-sync job faces upstream edits or oversized binaries, enforce branch guard, path allowlist,
  size cap and staged secret scan before rebase and push; add a heartbeat and deduplicated alerts.
  Not for gdd.
metadata:
  revision: "6"
  areas: "software-development,work-management"
  targets: "runtime-agnostic"
  summary: "scheduled commit/push for hand-edited repos: ordered gates, allowlist and size caps, staged secret scan, heartbeat and deduped alerts"
  summary_zh: "手改仓库的定时提交推送:固定门序、白名单与体积上限、暂存区密钥扫描、心跳与去重告警"
  kind: "entry"
---

# Design a scheduled Git sync

Require explicit unattended commit/push authority for the repository,
branch, remote and paths. Keep one publisher. An automation lock
serializes its own jobs, not human or other automated writers; require an
isolated checkout or coordinate all writers before changing the index.

## Gate Order

1. Lock this repo's job. Contention is a skip, not a healthy heartbeat.
2. Refuse an index with staged work. Verify the configured branch and reject
   detached HEAD and in-progress Git operations (including rebase, merge,
   cherry-pick or bisect) before any healthy no-op result.
3. Fetch and check divergence. A clean worktree is not a no-op if local
   commits still need pushing or the target moved. Only record a healthy
   no-op after confirming the configured mode's success criteria. Before
   pushing, verify the scope and gate evidence for every unpublished commit;
   stop rather than publishing an unapproved commit from another writer.
4. Bound tracked and untracked changes to explicitly approved paths. New
   files need an allowed root; tracked status alone is not consent to publish
   a change in a mixed-writer repo. Enforce size caps, validate per repo,
   then stage only eligible paths. Recheck the staged paths and blob sizes and
   scan the staged diff with a redacting scanner. A missing or failed scanner
   blocks the commit. Undo only this run's staging under exclusive ownership.
5. Commit, rebase on the fetched target, and push without force. On conflict,
   capture diagnostics, abort only this run's rebase, and retain the commit
   for resolution. Re-fetch and verify exact remote HEAD after push. In
   authorized commit-only mode do not claim remote convergence.

## Report Truthfully

Record success or clean no-op, skip, and failure distinctly. Failures must
remain failures in the job result and never advance the success heartbeat.
Deduplicate notification by failure signature and time window; suppress
duplicate delivery in the scheduler adapter, not by returning success.
Monitor heartbeat age independently and check scheduler, lock and
last-success evidence before diagnosing a stall.

Resolve [operator configuration](references/configuration.md) and use the
[adapter settings and fixtures](references/mixed-writers-2026-11-21.md)
before enabling writes. Do not test on a live remote.

Files in this skill

  • SKILL.md3.1 KB
  • references/configuration.md1.1 KB
  • references/mixed-writers-2026-11-21.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.