SKILL

git-auto-sync-pipelines

为所有者手工编辑的仓库设计定时提交/推送流水线:有序的预检门禁、范围允许列表和大小上限、分阶段密钥扫描、先变基再推送、心跳和去重告警。当笔记或研究仓库必须按计划同步,或现有自动同步需要安全审查时使用。不适用于具有审查/PR 工作流的仓库,也不适用于你可以自行完成的一次性提交。

机器翻译
查看英文原文

Design a scheduled commit/push pipeline for a repo the owner edits by hand: ordered preflight gates, a scope allowlist and size cap, a staged secret scan, rebase-then-push, heartbeat and deduped alerts. Use when a notes or research repo must sync on a schedule, or when an existing auto-sync needs a safety review. Not for a repo with a review/PR workflow, and not for a one-off commit you can make yourself.

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Git auto-sync pipelines
  • When to Use
  • Gate order (never reorder)
  • Rules that matter more than the happy path
  • Secret scan specifics
  • Repo-specific validation stays in the repo
  • Pitfalls
  • Configuration

A repo is edited by hand (notes vault, research repo) and must be committed and pushed on a schedule. An existing auto-sync needs a safety review: branch guard, secret scan, alert noise, silent stalls. Someone asks to "sync these two repos every N hours" without a PR workflow. Scheduled "validate → commit → rebase → push the target branch" for a repo the owner edits by hand. Reference implementation shape: one shared library ( /lib/git-sync-common.sh) plus one wrapper per repo, run by a single scheduler entry that loops the wrappers and prints only what they printed. A separate watchdog is usually retired into the daily health sweep: "has not succeeded recently" is one step of that sweep, because a periodic watchdog cannot outlive the scheduler it is watching. 1. flock — one run at a time; silent skip on contention. 2. pre-staged index → refuse. Staging is the human's signal, not the automation's. 3. no-op check → exit silently (still stamp the success heartbeat). 4. branch must equal the target branch. git push origin HEAD: from a feature branch publishes that branch's commits to the target — this is the single highest-severity failure mode. 5. in-progress git operation markers (r

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
wxxb789/hoa
源文件
skills/git-auto-sync-pipelines/SKILL.md
固定版本
beb1eca66d8fed7c3942dc3ef50990bf37837706
阅读完整原作者说明 ↗

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

第一件可以尝试的小事

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

对应 AI 工具说明

作者有说明不等于本站实机验证。没有证据时,不自动标为兼容、安全或免费。

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:wxxb789/hoa · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T20:02:15.363Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。