📦

ru

Baixo Risco ⚙️ Comandos externos🌐 Acesso à rede📁 Acesso ao sistema de arquivos

使用 AI 审查同步多个 GitHub 仓库

手动管理数十个 GitHub 仓库既耗时又容易出错。RU 自动化仓库同步,编排 AI 驱动的代码审查,并使用 Claude Code 处理整个项目组合中的未提交更改。

Suporta: Claude Codex Code(CC)
⚠️ 66 Ruim
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "ru". ru sync -j8

Resultado esperado:

  • Syncing 47 repositories with 8 parallel workers...
  • [OK] owner/repo1 - already current
  • [OK] owner/repo2 - updated (fast-forward)
  • [OK] owner/repo3 - updated (3 commits)
  • [CONFLICT] owner/repo4 - manual resolution required
  • Summary: 44 synced, 2 cloned, 1 conflict

A utilizar "ru". ru status --json

Resultado esperado:

Repository status summary showing 47 total repositories: 32 clean, 8 with uncommitted changes, 5 pending synchronization, and 2 with merge conflicts requiring manual intervention.

A utilizar "ru". ru agent-sweep --dry-run

Resultado esperado:

  • Analyzing 8 repositories with uncommitted changes:
  • - myproject/api (3 files staged for commit)
  • - myproject/web (5 files staged for commit)
  • - myproject/cli (new commit needed)
  • Run without --dry-run flag to execute the planned actions

Auditoria de Segurança

Baixo Risco
v6 • 1/21/2026

Evaluated 221 static findings as false positives. This is a legitimate multi-repository synchronization and automation tool. Scanner flagged documentation examples, security feature implementations (file denylist patterns for secrets), and standard DevOps operations as threats. The skill implements security best practices including secret scanning, file denylists, and quality gates. No actual vulnerabilities found.

2
Arquivos analisados
2,672
Linhas analisadas
4
achados
6
Total de auditorias
Problemas de Baixo Risco (1)
Documentation Contains Installation Command with Pipe to Shell
Line 481 shows installation command using curl pipe to bash. This is standard practice for CLI tool installation but users should verify source authenticity. This is documentation only, not executable code in the skill itself.

Fatores de risco

⚙️ Comandos externos (3)
🌐 Acesso à rede (2)
📁 Acesso ao sistema de arquivos (2)
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
87
Conteúdo
21
Comunidade
88
Segurança
78
Conformidade com especificações

O Que Você Pode Construir

大规模维护仓库健康

保持数十个个人项目和分支同步,无需手动执行 git pull 命令。在过时分支和合并冲突累积成更大问题之前及早发现它们。

自动化代码审查工作流

在项目组合中的所有仓库上安排 AI 驱动的代码审查。使用优先级评分首先关注关键安全问题和紧急拉取请求。

自动处理未提交的更改

让 AI 代理分析、暂存和提交所有具有未提交更改的仓库中的进行中工作。可选择根据提交历史自动版本升级创建发布。

Tente Estes Prompts

快速仓库同步
使用 ru skill 同步所有已配置的仓库。运行 ru sync 并使用 8 个并行工作进程以加快执行速度。
检查仓库状态
使用 ru skill 检查所有仓库的状态而不进行任何更改。以 JSON 格式输出结果以供审查和分析。
规划 AI 代码审查
使用 ru skill 在所有仓库中规划 AI 辅助代码审查。关注按时间、标签和紧急程度评分的高优先级问题和拉取请求。
处理未提交的工作
使用 ru skill 在具有未提交更改的仓库上运行 agent-sweep。首先使用 dry-run 模式预览计划的操作,然后再执行。

Melhores Práticas

  • 在实际同步之前始终使用 dry-run 标志运行 ru sync 以预览更改并避免意外
  • 配置带有阻止模式的密钥扫描以防止凭据泄露并强制执行安全策略
  • 为项目特定规则和自定义工作流创建每个仓库的配置文件

Evitar

  • 避免在不了解更新策略的情况下运行 ru sync,因为不同的策略处理分叉分支的方式不同
  • 在未首先审查文件拒绝列表的情况下不要处理仓库,以确保不会提交密钥
  • 切勿手动中断 agent-sweep 会话,因为这可能会使仓库处于不一致状态

Perguntas Frequentes

ru sync 和 ru agent-sweep 有什么区别?
ru sync 命令将远程仓库的上游更改拉取到本地克隆中。ru agent-sweep 命令处理未提交的本地更改,并使用 AI 分析、暂存和为进行中的工作创建提交。
密钥拒绝列表如何防止凭据泄露?
无论 AI 代理提出什么建议,匹配 .env、*.pem、*.key、id_rsa* 和 credentials.json 等模式的文件都会自动被阻止提交。这提供了防止意外凭据暴露的安全防护。
我可以在不安装 Claude Code 的情况下使用此工具吗?
可以。基本的 ru sync 和 ru status 命令无需 AI 集成即可工作。只有 agent-sweep 和审查编排功能需要 Claude Code 可用以进行 AI 驱动的分析。
同步有哪些可用的更新策略?
支持三种策略:ff-only(最安全,如果分支分叉则失败)、rebase(将本地提交变基到远程之上)和 merge(需要时创建合并提交)。
并行处理如何提高性能?
使用 -j 标志指定并行工作进程数。RU 实现了工作窃取队列,以有效地在多个工作进程之间分配仓库操作,显著减少总同步时间。
配置数据存储在哪里?
配置遵循 XDG 基础目录规范:~/.config/ru/ 用于配置和仓库列表,~/.local/state/ru/ 用于日志和运行时状态。这确保了清晰的分离和可移植性。

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md