跳到正文
cccskills
免费在 GitHub 公开

repo-sync

Set up and manage automatic Git syncing for shared documents, notes, and skills on macOS. The skill guides repository registration, removal, service checks, and maintenance, with local changes automatically committed and pushed by repo-sync.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Manage automatic Git syncing on macOS with repo-sync. Use only when the user explicitly invokes /repo-sync.

查看安装方法

适用场景

  • Setting up automatic syncing for shared team notes
  • Adding or removing a repository from automatic syncing
  • Checking sync failures and maintaining the background service

包含的文件(3)

  • SKILL.md5.3 KB
  • agents/openai.yaml43 B
  • references/operations.md8.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

repo-sync

What it does

Sync shared Git repos for team documents, notes, skills, and context on macOS. Complex software projects and pull request workflows are outside scope.

By default, after 60 seconds without local edits, repo-sync commits eligible non-ignored changes (including staged edits, renames, and deletions), rebases, and pushes. It checks remote changes every 60 seconds and starts at login without an AI agent.

Only the remote's default branch syncs (origin/HEAD, falling back to main). Feature branches and detached HEAD are skipped; branches are never switched.

Check first

command -v repo-sync
repo-sync help

Installed help is the command contract. Older binaries may lack skill, remove, status, or version; run repo-sync version when listed. Installing the skill does not install or upgrade the binary.

Default config: ~/Library/Application Support/repo-sync/config.json. Check ProgramArguments in ~/Library/LaunchAgents/com.vectal-labs.repo-sync.plist for a custom path and use the selected config throughout. Flags precede positional arguments.

Read references/operations.md for custom settings, unsupported commands, legacy removal, upgrades, or failed checks.

Start syncing

A request to sync a named repo authorizes automatic commits and pushes. Mention that staged changes are included; do not ask again when already authorized.

For a fresh installation:

brew install --cask vectal-labs/tap/repo-sync
repo-sync setup
repo-sync status

Homebrew must already be available; it installs Git and GitHub CLI. Setup checks identity/access and service health, and preserves existing registrations. Select only requested repos.

For an existing local clone:

repo-sync add "/absolute/path/to/notes"
repo-sync status

add defaults to the current repo, which needs an origin remote. When asked to clone a remote repo, check the destination, clone, then add it. Do not overwrite folders, create remote repos, or change remotes without authorization.

For a custom config:

repo-sync add --config "/absolute/path/to/config.json" "/absolute/path/to/notes"
repo-sync status --config "/absolute/path/to/config.json"

add may save registration despite restart failure. Check fresh status; if setup is needed, use the same config. Report registration separately from active syncing when readiness fails.

Stop syncing one repo

When installed help lists remove:

repo-sync remove "/absolute/path/to/notes"
repo-sync status
repo-sync remove --config "/absolute/path/to/config.json" "/absolute/path/to/notes"
repo-sync status --config "/absolute/path/to/config.json"

remove defaults to the current repo. For missing or moved folders, use the old configured absolute path.

Removal unregisters the repo and restarts the matching service. Files, history, local work, and pushed data remain; teammates' syncing is unaffected. In-progress Git operations may finish during shutdown.

Verify registration is absent and the service applied the change. Removing the last repo leaves an empty running service. With no background service, only config changes; manually started repo-sync run processes still need restarting.

Without remove, follow Legacy removal in the reference. Do not uninstall or delete the clone instead.

Install or maintain this skill

When help lists skill, use repo-sync skill install, then repo-sync skill status. The binary bundles the skill and references; no checkout or download is needed. Setup also offers installation. Start a new agent session afterward.

Homebrew upgrades refresh unchanged managed copies. After Go upgrades, rerun setup or repo-sync skill refresh. repo-sync skill uninstall removes unchanged managed copies, preserving customized folders, the program, and syncing service. See Agent skill installation in the reference for destinations and conflicts.

Uninstall everything

Run repo-sync uninstall only on request. After confirmation, it removes the service, settings, logs, cache, program, and unchanged managed skills. Customized skills, repositories, Git history, and shared Git credentials remain. --keep-binary retains the program; --yes skips the prompt when already authorized.

Safety and verification

  • Filename protection blocks names such as .env, private keys, and .npmrc, but does not scan contents; ordinary filenames can hide secrets. Normal syncing can unstage blocked files.
  • Use repo-sync allow only when publishing that file is explicitly authorized.
  • Conflicts preserve local commits, abort repo-sync's own rebase, and retry. No automatic conflict resolution or force-push; one failing repo does not block others.
  • Do not reset history, switch branches, delete lock files, or override secret protection just to clear an error.
  • There is no pause, resume, or sync now command. Check help before using any command.
  • Check exit codes and fresh status; a running service can still have repo failures. Do not create verification commits or push test files without authorization.
  • Briefly report the repo, action, verification, and remaining failures.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

4x4

免费

Work through sixteen open questions in four rounds to clarify major product decisions, risky changes, or large refactors. The agent adapts later questions to earlier answers, then turns your decisions into a step-by-step implementation plan.

中文简介正在准备中。当前显示英语简介。

  • Clarifying decisions before a major product change
  • Planning a large refactor
  • Deciding rollout order for a risky change
davidondrej/skills41622026年10月21日 更新

Document approved decisions as concise ADRs, or architecture decision records. It preserves the user's meaning and conditions, removes conversational filler, follows the project's numbering, and presents the saved record for review.

中文简介正在准备中。当前显示英语简介。

  • Record a decision approved in conversation
  • Preserve the conditions and scope of a decision
  • Add a numbered ADR to existing records
davidondrej/skills41622026年10月21日 更新

Keep a Mac awake for a chosen duration or while a specified process runs. The skill uses built-in macOS tools to manage one session, verify that sleep prevention is active, and control whether the display stays on.

中文简介正在准备中。当前显示英语简介。

  • Keep a Mac awake during a lengthy task
  • Prevent sleep while a specified process runs
  • Allow the display to dim while keeping the Mac awake
davidondrej/skills41622026年10月21日 更新

Turn a feature or refactoring idea into a concise implementation prompt for another agent. It asks focused questions one at a time, records decisions, and includes development steps, validation, and working rules.

中文简介正在准备中。当前显示英语简介。

  • Clarify requirements for a new feature
  • Decide edge cases and failure behavior
  • Define the scope of a refactor
davidondrej/skills41622026年10月21日 更新

bb-cli

免费

Inspect and manage BB threads, environments, projects, and plugins through its command line interface. The skill guides agents to identify the correct targets, apply changes, and verify the resulting state.

中文简介正在准备中。当前显示英语简介。

  • Check BB projects and environment status
  • Manage skills and plugins
  • Create or operate threads
davidondrej/skills41622026年10月21日 更新

Create, install, and debug TypeScript plugins that extend bb with custom pages, sidebar panels, CLI commands, agent tools, themes, and other features. The skill also guides development reloads, log checks, and verification of installed plugins.

中文简介正在准备中。当前显示英语简介。

  • Add a custom page or sidebar panel to bb
  • Create a bb CLI command or agent tool
  • Investigate plugin errors through logs
davidondrej/skills41622026年10月21日 更新

查看 davidondrej 的全部技能

报告此技能的问题