sync-botfiles-machines
БесплатноЗапускает вложенные скриптыНе проверенSafely inventory, reconcile, clean, and synchronize divergent botfiles Git checkouts and layered Codex configuration across the canonical cloud host and…
от 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.mdbefore 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
- Confirm canonical and client checkout paths.
- Resolve SSH aliases from
~/pro/personal_os/context/machine-ssh-aliases.mdwhen needed. - Use the active task folder's
task-progress-artifacts/scratchpad/for raw, redacted inventories and recovery evidence. - Store raw config backups only in a private machine-local directory with mode
0700; keep that path out of Git. - 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
- Fetch each checkout only after snapshots exist.
- Create
codex/<tracker>-botfiles-syncfrom currentorigin/mainin an isolated worktree. - Run
git cherry -v origin/main <source-main>andgit log --left-right --cherry-mark. - Replay unique commits in original order and skip patch-equivalent commits.
- Resolve conflicts by newest reviewed intent, not by choosing an entire side.
- Use
git range-diffandgit diff --checkto 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
Установить sync-botfiles-machines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic