AgentSkillsCN

git-sync

在发生重大变更后,或定期执行时,自动将本地工作区的更改同步至远程 GitHub 仓库。

SKILL.md
--- frontmatter
name: git-sync
description: Automatically syncs local workspace changes to the remote GitHub repository. Use after significant changes or periodically.
tags: [git, sync, backup, version-control]

Git Sync Skill

Automatically syncs local workspace changes to the remote GitHub repository. Designed to be called by PCEC cycles or after significant changes.

Tools

git_sync

Commit and push changes.

  • message (optional): Commit message. Defaults to "Auto-sync: Routine evolution update".

Safety

  • Uses .gitignore and pre-commit hooks (ADL-compliant) to prevent secret leakage.
  • Checks if there are changes before committing.

Implementation

Wrapper around git add . && git commit && git push.