pull-all-repos
БесплатноБез исполняемых скриптовНе проверенClone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
от raffertyuy★ 19 звёзд на GitHubОб этом скилле
Sync Workspace
Read repos/repos.yaml at the project root and ensure all declared repositories and local source folders are present and up to date.
Order of Operations
- Parse
repos/repos.yaml— read therepos:list - Clone missing git repos — for each
type: git(or unset type) entry whererepos/<name>/doesn't exist, clone it - Pull existing git repos — for each git entry where
repos/<name>/already exists, fetch and pull - Verify local entries — for each
type: localentry, verifyrepos/<name>/exists on disk - Detect and register orphans — find directories in
repos/not in the manifest, auto-detect type, analyze, and add torepos/repos.yaml - Sync .gitignore — ensure each git repo has an ignore entry; local entries must NOT be in
.gitignore - Regenerate repos.md — update
repos/repos.mdwith current repo/folder analysis
Parsing repos/repos.yaml
Read repos/repos.yaml from the project root. Each entry has:
name(required) — directory name underrepos/type(optional, default:git) —"git"or"local"url(required for git, ignored for local) — git clone URLbranch(optional, default:main, git only) — branch to trackprefix(optional) — short prefix for the repo (used in references)description(optional) — one-line summary
If repos/repos.yaml has an empty list (repos: []), skip steps 2–4 and proceed directly to step 5 (orphan detection). The manifest being empty does NOT mean the workspace is empty — there may be repos on disk that need to be registered.
Cloning Missing Git Repos
For each entry where type is git (or unset) and repos/<name>/ does NOT exist:
- Run
git clone <url> repos/<name> - If a
branchis specified and it's not the default, rungit -C repos/<name> checkout <branch> - Report: cloned successfully or error
Pulling Existing Git Repos
For each entry where type is git (or unset) and repos/<name>/ already exists:
- Verify it's a git repo (has
.gitdirectory) - Run
git -C repos/<name> fetch --all --prune - Check the current branch:
git -C repos/<name> branch --show-current - If the branch has an upstream, run
git -C repos/<name> pull --ff-only- If fast-forward fails, report and skip — never force-pull
- If uncommitted changes block the pull, report and skip
- Report: updated (with new commit count), already up to date, or error
Verifying Local Entries
For each entry where type is local:
- Check if
repos/<name>/exists on disk - If it exists, report: present
- If it does NOT exist, create the directory (
mkdir -p repos/<name>) and report: created empty directory — user should add source files
Local entries are never cloned, pulled, or synced from a remote. They are source folders managed directly.
Detecting and Registering Orphans
List directories in repos/ and compare against repos/repos.yaml entries. For any directory that exists on disk but isn't in the manifest:
Auto-detect type — check if the directory has a
.git/subdirectory- Has
.git/→type: git - No
.git/→type: local
- Has
For git orphans:
- Read the remote URL:
git -C repos/<name> remote get-url origin - Read the current branch:
git -C repos/<name> branch --show-current - Add to
repos/repos.yaml:- name: <name> url: <remote URL> branch: <current branch> prefix: <inferred from name> description: <1-line summary from analysis>
- Read the remote URL:
For local orphans:
- Ask the user: "Should
repos/<name>/be tracked by git, or gitignored?" - Add to
repos/repos.yaml:- name: <name> type: local gitignore: <true|false based on user's answer> prefix: <inferred from name> description: <1-line summary from analysis>
- Ask the user: "Should
Analyze each orphan the same way as existing entries — read README, detect tech stack, scan directory structure (see Regenerate repos.md section)
Infer a prefix from the directory name (first 2-4 characters or a natural abbreviation, e.g.,
frontend→fe,shared-config→cfg). Avoid collisions with existing prefixes. If unsure, use the full name truncated.Report what was registered:
✅ Registered
repos/<name>astype: git(remote:<url>) — added torepos/repos.yaml✅ Registeredrepos/<name>astype: local— added torepos/repos.yaml
Do NOT delete any directories. Registration is additive only.
Syncing .gitignore
After processing all entries, ensure the root .gitignore is correct:
- Read the current
.gitignore - For each git entry, ensure
repos/<name>/is listed in.gitignore(add if missing) — git repos are always gitignored - For each local entry, check the
gitignorefield inrepos/repos.yaml:- If
gitignore: true→ ensurerepos/<name>/IS in.gitignore - If
gitignore: false(or unset) → ensur
- If
Установить pull-all-repos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pull-all-repos?
Clone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
Как установить скилл pull-all-repos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pull-all-repos запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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