ghsync

Clone and fast-forward sync GitHub repositories across organizations.

30|5|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/bjcoombs/ai-native-toolkit --skill ghsync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ghsync
Source: https://github.com/bjcoombs/ai-native-toolkit/tree/main/skills/ghsync
Command: npx skills add https://github.com/bjcoombs/ai-native-toolkit --skill ghsync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

This skill solves the friction of onboarding into large organizations by automating the discovery, cloning, and maintenance of every repository you have access to, ensuring your local environment stays perfectly in sync with remote changes.

Core Features & Use Cases

  • Bulk Synchronization: Automatically clones and fast-forward updates all accessible repositories across an organization or personal account.
  • Worktree-Friendly Layout: Organizes repositories into a consistent structure that separates the main branch from active worktrees.
  • Use Case: When joining a new team with dozens of repositories, run this skill to instantly mirror the entire codebase locally and keep it updated with a single command, avoiding manual cloning and drift.

Quick Start

Navigate to your development directory and run the ghsync skill to mirror all repositories from the current organization.

Frequently Asked Questions about ghsync

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

FAQPage Schema
How do I clone all repositories from a GitHub organization at once?

To clone all repositories from a GitHub organization at once, use an automated bulk synchronization tool to discover and mirror every accessible repository locally. This automates the cloning process across your organization or personal account.

What is the best way to keep my local git repositories synced with remote changes?

The best way to keep local git repositories synced is to perform fast-forward updates on default branches. Automated synchronization tools can pull remote changes for all mirrored repositories in a single command, preventing local environment drift.

Do I need the GitHub CLI to automate repository cloning and synchronization?

Yes, you need the GitHub CLI to automate repository cloning and synchronization. Authenticated GitHub CLI access is required to manage repository discovery and execute the underlying git operations across your organizations.

How does automated git syncing organize cloned repositories on disk?

Automated git syncing organizes cloned repositories into a standardized, worktree-friendly directory structure. This layout consistently separates the main branch from active worktrees across your local development environment.

Can I mirror repositories across multiple GitHub organizations and personal accounts?

Yes, you can mirror repositories across multiple GitHub organizations and personal accounts. The synchronization process automates discovery and cloning for all accessible repositories within your authenticated user scope.

What prerequisites are needed to bulk clone GitHub repositories on Unix?

To bulk clone GitHub repositories on Unix, you need authenticated GitHub CLI access and standard Unix utilities like jq. These dependencies manage repository discovery, JSON parsing, and the underlying git operations.