repo-updater
Repo Updater - Multi-repo synchronization with AI-assisted review orchestration. Parallel sync, agent-sweep for dirty repos, ntm integration, git plumbing. 17K LOC Bash CLI. Use when syncing multiple GitHub repositories, running agent-sweep on uncommitted changes, or orchestrating AI-assisted code review across repos.
What this skill does
# Repo Updater Bash CLI for synchronizing dozens or hundreds of GitHub repositories with AI-assisted code review and agent-sweep for uncommitted changes. ## Critical Concepts | Concept | Rule | | ----------------- | ------------------------------------------------------------------------------------ | | Git plumbing only | Never parse human-readable output; use `rev-list`, `status --porcelain`, `rev-parse` | | Stream separation | Human-readable → stderr; data → stdout (`--json 2>/dev/null \| jq`) | | No global `cd` | All git operations use `git -C` | ## Essential Commands | Command | Purpose | | -------------------------- | -------------------------------------------------- | | `ru sync` | Sync all configured repos (add `-j8` for parallel) | | `ru sync --dry-run` | Preview what would happen | | `ru sync --resume` | Resume interrupted sync | | `ru status` | Read-only check of all repos | | `ru add owner/repo` | Add repo to sync list | | `ru remove owner/repo` | Remove from list | | `ru list` | Show configured repos | | `ru prune` | Detect orphaned repos | | `ru doctor` | System health check | | `ru review --plan` | Discover issues/PRs for AI review | | `ru review --apply --push` | Apply reviewed changes | | `ru agent-sweep` | Process repos with uncommitted changes | | `ru agent-sweep -j4` | Parallel agent processing | ## AI Review Priority Scoring | Factor | Points | Logic | | ---------- | ------ | --------------------------------------- | | Type | 0-20 | PRs: +20, Issues: +10, Draft PRs: -15 | | Labels | 0-50 | security/critical: +50, bug/urgent: +30 | | Age (bugs) | 0-50 | >60 days: +50, >30 days: +30 | | Recency | 0-15 | Updated <3 days: +15, <7 days: +10 | | Staleness | -20 | Recently reviewed: -20 | Levels: CRITICAL (≥150), HIGH (≥100), NORMAL (≥50), LOW (<50) ## Agent Sweep Phases | Phase | Default Timeout | Action | | ----------- | --------------- | -------------------------------------------------------- | | 1: Planning | 300s | Analyze uncommitted changes, generate commit plan | | 2: Commit | 600s | Validate plan, stage files, create commit, quality gates | | 3: Release | 300s (opt-in) | Determine version bump, create tag/release | Execution modes: `agent` (full workflow), `plan` (phase 1 only), `apply` (phase 2+3) ## Update Strategies | Strategy | Behavior | | --------- | ---------------------------------------------- | | `ff-only` | Fast-forward only; fails if diverged (default) | | `rebase` | Rebase local commits on top of remote | | `merge` | Create merge commit if needed | ## Exit Codes | Code | Meaning | | ---- | ---------------------------------- | | 0 | All repos processed successfully | | 1 | Some repos failed | | 2 | Conflicts or quality gate failures | | 3 | System/dependency error | | 4 | Invalid arguments | | 5 | Interrupted (use `--resume`) | ## Environment Variables | Variable | Default | Description | | -------------------- | ---------------- | ------------------------------------ | | `RU_PROJECTS_DIR` | `/data/projects` | Base directory for repos | | `RU_LAYOUT` | `flat` | Path layout (flat, owner-repo, full) | | `RU_PARALLEL` | `1` | Parallel workers | | `RU_TIMEOUT` | `30` | Network timeout (seconds) | | `RU_UPDATE_STRATEGY` | `ff-only` | Pull strategy | | `GH_TOKEN` | (from gh CLI) | GitHub token | ## Common Mistakes | Mistake | Correct Pattern | | ----------------------------------------------------------------- | -------------------------------------------------------------------------- | | Parsing human-readable git output (e.g., `git status` text) | Use git plumbing: `rev-list`, `status --porcelain`, `rev-parse` | | Using `cd` to change into repo directories | Use `git -C <path>` for all git operations | | Mixing data and human-readable output on the same stream | Data goes to stdout, human-readable to stderr (`--json 2>/dev/null \| jq`) | | Running sync without `--dry-run` first on unfamiliar repos | Always preview with `ru sync --dry-run` before executing | | Using `service_role` key or bypassing auth in agent-sweep scripts | Follow security guardrails; agent-sweep has preflight checks for a reason | ## Delegation - **Discover which repos have uncommitted changes or are out of sync**: Use `Explore` agent to run `ru status` and analyze the output - **Process dirty repos with agent-sweep across multiple repositories**: Use `Task` agent to run `ru agent-sweep -j4` and handle quality gate failures - **Plan a multi-repo sync strategy with review prioritization**: Use `Plan` agent to design sync order, parallelism settings, and review budget allocation ## References - [Commands](references/commands.md) — sync, status, repo management, diagnostics, output modes, jq examples - [Review System](references/review-system.md) — two-phase workflow, session drivers, cost budgets, priority scoring - [Agent Sweep](references/agent-sweep.md) — three-phase workflow, preflight checks, security guardrails, execution modes - [Configuration](references/configuration.md) — XDG directory structure, repo list format, layout modes, per-repo config - [Troubleshooting](references/troubleshooting.md) — common issues, debug mode, preflight failure debugging, integration points
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.