ru
БесплатноЗапускает вложенные скриптыНе проверенRepo Updater - Multi-repo synchronization with AI-assisted review orchestration. Parallel sync, agent-sweep for dirty repos, ntm integration, git plumbing…
от Dicklesworthstone★ 134 звезды на GitHubОб этом скилле
RU - Repo Updater
A comprehensive Bash CLI for synchronizing dozens or hundreds of GitHub repositories. Beyond basic sync, RU includes a full AI-assisted code review system and agent-sweep capability for automatically processing uncommitted changes across your entire projects directory.
Why This Exists
When you work with 47+ repos (personal projects, forks, dependencies), keeping them synchronized manually is tedious. But synchronization is just the beginning—RU also orchestrates AI coding agents to review issues, process PRs, and commit uncommitted work at scale.
The problem it solves:
- Manual
cd ~/project && git pullfor each repo - Missing updates that accumulate into merge conflicts
- Dirty repos that never get committed
- Issues and PRs that pile up across repositories
- No coordination for AI agents working across repos
Critical Concepts
Git Plumbing, Not Porcelain
RU uses git plumbing commands exclusively—never parses human-readable output:
# WRONG: Locale-dependent, version-fragile
git pull 2>&1 | grep "Already up to date"
# RIGHT: Machine-readable plumbing
git rev-list --left-right --count HEAD...@{u}
git status --porcelain
git rev-parse HEAD
Stream Separation
Human-readable output goes to stderr; data to stdout:
ru sync --json 2>/dev/null | jq '.data.summary'
# Progress shows in terminal, JSON pipes to jq
No Global cd
All git operations use git -C. Never changes working directory.
Essential Commands
Sync (Primary Use Case)
# Sync all configured repos
ru sync
# Parallel sync (much faster)
ru sync -j8
# Dry run - see what would happen
ru sync --dry-run
# Resume interrupted sync
ru sync --resume
# JSON output for scripting
ru sync --json 2>/dev/null | jq '.data.summary'
Status (Read-Only Check)
# Check all repos without modifying
ru status
# JSON output
ru status --json
Repo Management
# Initialize configuration
ru init
# Add repos to sync list
ru add owner/repo
ru add https://github.com/owner/repo
ru add owner/repo@branch as custom-name
# Remove from list
ru remove owner/repo
# List configured repos
ru list
# Detect orphaned repos (in projects dir but not in list)
ru prune # Preview
ru prune --delete # Actually remove
ru prune --archive # Move to archive directory
# --delete keeps orphans with unsaved work (dirty, untracked, stashes, unpushed);
# both keep clones of configured repos at old paths. --force overrides; exit 1 if any kept.
Diagnostics
ru doctor # System health check
ru self-update # Update ru itself
AI-Assisted Review System
RU includes a powerful review orchestration system for managing AI-assisted code review across your repositories.
⚠️ CRITICAL SAFETY RULES - NEVER VIOLATE ⚠️
1. NEVER Stash User Changes
If repositories have uncommitted changes, NEVER use git stash. This risks losing user work. Stashed changes can be difficult to recover, especially untracked files which require git show stash@{0}^3:path to extract.
2. NEVER Modify Working Tree Without Permission
Do not run git checkout, git reset, git clean, or any command that modifies uncommitted changes without explicit user permission.
3. Commit Changes First (The Correct Approach) If repos have uncommitted changes and the user wants to proceed with review, commit the changes first with logical groupings and detailed messages, then push.
4. Let ru Skip Dirty Repos
The ru review command automatically skips repositories with uncommitted changes. This is correct behavior—let it skip them rather than forcing them clean.
Decision Tree: Handling Dirty Repos
Found uncommitted changes in repos?
├── User wants to proceed with ru review?
│ ├── YES → Ask: "Should I commit these changes first?"
│ │ ├── User says YES → Commit with logical groupings, push, then run ru review
│ │ └── User says NO → Let ru skip those repos, review clean repos only
│ └── NO → Stop, let user handle their changes
└── No uncommitted changes → Run ru review normally
Two-Phase Review Workflow
Phase 1: Discovery (--plan)
- Queries GitHub for open issues and PRs across all repos
- Scores items by priority using label analysis and age
- Creates isolated git worktrees for safe review
- Spawns Claude Code sessions in terminal multiplexer
Phase 2: Application (--apply)
- Reviews proposed changes from discovery phase
- Runs quality gates (ShellCheck, tests, lint)
- Optionally pushes approved changes (
--push)
# Discovery - see what issues/PRs exist
ru review --dry-run
# Plan mode - generate review plans, no mutations
ru review --plan
# After reviewing AI suggestions
ru review --apply --push
Priority Scoring Algorithm
| Factor | Points | Logic |
|---|---|---|
| Type | 0-20 | PRs: +20, Issues: +10, Draft PRs: -15 |
| Labels | 0-50 | security/critical: +50, bug/urgent: +30 |
Установить ru в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ru?
Repo Updater - Multi-repo synchronization with AI-assisted review orchestration. Parallel sync, agent-sweep for dirty repos, ntm integration, git plumbing. 28.5K LOC Bash CLI.
Как установить скилл ru?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ru запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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