Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sync-botfiles-machines

БесплатноЗапускает вложенные скриптыНе проверен

Safely inventory, reconcile, clean, and synchronize divergent botfiles Git checkouts and layered Codex configuration across the canonical cloud host and…

ma08от ma08★ 31 звезда на GitHub

Об этом скилле

Sync Botfiles Machines

Reconcile authored changes without committing machine state, secrets, private information, or generated/vendor material. The botfiles GitHub repository is public, so treat every pushed byte and commit as immediately internet-visible. Treat research-cpu-01 as the canonical integration host and sourya-mac as a synchronized client unless current instructions say otherwise.

Safety Contract

  • Read each checkout's AGENTS.md before changing it.
  • Inspect every machine before fetching, cleaning, switching branches, or updating remote main.
  • Never assume similarly named commits are identical; use git cherry, patch IDs, and final-tree diffs.
  • Never force-push, rewrite a shared branch, or run the full setup script as root.
  • Never copy secrets/local/, raw user configs, credentials, auth state, plugin caches, marketplace materializations, or generated vendor trees between machines or into Git-backed task artifacts.
  • Never commit private messages, Calendar or Reminder contents, raw logs or transcripts, non-public personal identifiers, customer information, private infrastructure details, or machine-local values merely because no secret scanner recognizes them.
  • Keep scanner output redacted to finding class, path, and line number. Never print a suspected value while deciding whether it is safe.
  • Do not delete an untracked path until it is positively classified. Preserve unknown or authored material for review.
  • Keep original dirty checkouts untouched while integrating. Use an isolated worktree when their state conflicts with branch operations.
  • Require explicit approval before updating remote main.

1. Resolve Hosts And Task Evidence

  1. Confirm canonical and client checkout paths.
  2. Resolve SSH aliases from ~/pro/personal_os/context/machine-ssh-aliases.md when needed.
  3. Use the active task folder's task-progress-artifacts/scratchpad/ for raw, redacted inventories and recovery evidence.
  4. Store raw config backups only in a private machine-local directory with mode 0700; keep that path out of Git.
  5. Record a curated reconciliation ledger under task-progress-artifacts/.

2. Capture Every Git State

Run scripts/capture-state.sh locally on each host before mutation:

bash scripts/capture-state.sh \
  --repo "$HOME/pro/botfiles" \
  --output "<task-scratchpad>/snapshot-<host>-before"

Copy remote Git-only snapshots into the task folder when practical and verify sha256sums.txt. The helper captures committed refs, a binary tracked patch, status/history/divergence reports, and an untracked filename manifest; it does not archive untracked contents.

Also verify live remote main with git ls-remote origin refs/heads/main.

3. Classify Differences

Classify every committed and worktree difference:

  • portable authored source: retain and validate;
  • machine-local configuration: preserve locally and keep out of Git;
  • generated/vendor state: ignore narrowly and remove only when reproducible and not required at runtime;
  • unknown: preserve and review.

Keep Codex/Claude skill counterparts synchronized unless a capability is explicitly product-managed and surface-specific. Treat codex/skills/.system/ and app-injected skills as machine-managed. Do not vendor upstream curated skills merely because a symlink made them appear inside the repository.

For overlaps, compare final hashes or stable patch IDs. Auto-resolve only byte-identical or patch-equivalent changes. Present one focused user decision for authored conflicts, unknown files, destructive cleanup, or a change in canonical intent; preserve and defer when no answer is available.

4. Reconcile History

  1. Fetch each checkout only after snapshots exist.
  2. Create codex/<tracker>-botfiles-sync from current origin/main in an isolated worktree.
  3. Run git cherry -v origin/main <source-main> and git log --left-right --cherry-mark.
  4. Replay unique commits in original order and skip patch-equivalent commits.
  5. Resolve conflicts by newest reviewed intent, not by choosing an entire side.
  6. Use git range-diff and git diff --check to prove the replay.

Do not cherry-pick a temporary add/remove sequence out of order. Preserving both commits is acceptable when provenance matters and the final net state is correct.

5. Integrate Dirty Worktrees

Apply captured tracked patches with three-way context or import reviewed files explicitly. Commit coherent groups such as wrappers, task helpers, paired skills, instructions, layered configuration, and cleanup rules.

Before every commit:

  • inspect staged filenames and the full staged diff;
  • run git diff --cached --check;
  • scan staged content for private keys, common token shapes, and private information inappropriate for a public repository;
  • validate affected shell, Python, JSON, TOML, YAML, and skill files.

Restore ambiguous deletions unless evidence proves they were intention

Полный SKILL.md на GitHub

Установить sync-botfiles-machines в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlscripts/capture-state.shscripts/verify-config-layers.pyscripts/verify-pair.sh

FAQ

Что делает скилл sync-botfiles-machines?

Safely inventory, reconcile, clean, and synchronize divergent botfiles Git checkouts and layered Codex configuration across the canonical cloud host and client machines. Use for dirty Mac/VM botfiles trees, ahead/behind main histories, machine-local Codex runtime state, generated agent artifacts, or branch-to-main integration and verification.

Как установить скилл sync-botfiles-machines?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sync-botfiles-machines запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить sync-botfiles-machines с