gitlab-repo-sync
Installation
SKILL.md
gitlab-repo-sync
Keep a complete, current local mirror of every GitLab repo you can reach — one command, then a cron.
This skill targets any self-hosted GitLab. Set GITLAB_SYNC_HOST to your instance (for example gitlab.example.com). It enumerates every project your token has membership on and clones each into a local tree that mirrors the GitLab group path, then fast-forwards them on a schedule.
Destination convention
| Source | Host | Local root |
|---|---|---|
| Self-hosted GitLab | $GITLAB_SYNC_HOST |
~/Sync/agentic/gitlab-repos/ |
| GitLab.com (private repos over SSH) | gitlab.com |
~/Sync/agentic/app-repos/ (separate tooling) |
A project at competitive-intelligence/competitor-product-surface lands at
~/Sync/agentic/gitlab-repos/competitive-intelligence/competitor-product-surface.