sync

Synchronize git repositories on main with pull, rebase, and push guards.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/ormastes/simple --skill sync-ormastes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync
Source: https://github.com/ormastes/simple/tree/main/.codex/skills/sync
Command: npx skills add https://github.com/ormastes/simple --skill sync-ormastes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps repositories in sync safely by enforcing a linear history and file-count integrity during pull, rebase, and push operations.

Core Features & Use Cases

  • No-branch sync: operate directly on main to avoid accidental branch creation.
  • File-count guard: verify file counts before and after rebase and abort if unexpected changes.
  • Deterministic workflow: commits, fetch, rebase, and push with auditable steps via jj.

Quick Start

Synchronize the repository safely by rebasing onto main and pushing only after a file-count check.

Frequently Asked Questions about sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rebase a git repository onto main without losing files?

To safely rebase a git repository, synchronize it by pulling, rebasing, and pushing with file-count guards that verify file integrity before and after operations, aborting if unexpected changes occur.

What is the best way to keep my git worktree synced with a linear history?

Keeping a git worktree synced involves operating directly on the main branch to prevent accidental branch creation, enforcing pull, rebase, and push steps that ensure a strictly linear history.

How does jj commit management work with git rebase safety checks?

Jj commit management works with git rebase safety by applying explicit commit tracking alongside pre- and post-rebase checks, ensuring auditable steps and file-count verification during synchronization.

Can I prevent accidental branch creation when synchronizing a git worktree?

Yes, you can prevent accidental branch creation during git worktree synchronization by operating strictly on the main branch, which blocks creating or switching to other branches during the sync process.

Why does file-count verification abort a git rebase sync operation?

File-count verification aborts a git rebase sync because it compares the repository file count before and after rebasing, automatically halting the push if the counts indicate unexpected file changes or data loss.

Does this git sync workflow support enforcing a deterministic commit and push process?

Yes, this git sync workflow supports deterministic synchronization by enforcing sequential commits, fetch, rebase, and push actions with auditable steps to maintain repository integrity throughout the operation.