Token导航 LogoToken导航

Agent Skill · 研究检索

ralph-merge-worktrees(拉尔夫合并工作树)

ralph-merge-worktrees 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ralph-merge-worktrees 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,674 个 Skill 里排第 48,496。

总安装 685周安装 28GitHub Stars 公开资料未说明下载 220核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ralph-merge-worktrees(拉尔夫合并工作树)
来源仓库:https://github.com/ralphcrisostomo/nuxt-development-skills
仓库路径:skills/ralph-merge-worktrees
安装命令:
npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill ralph-merge-worktrees
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill ralph-merge-worktrees

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在需要根据关键词或任务场景快速定位候选结果时使用。可结合来源仓库和原始 README 核验具体用法。安装前建议确认权限范围和维护状态,避免触发联网或文件读写。ralph-merge-worktrees 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ralph-merge-worktrees

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ralph-merge-worktrees 怎么安装?

在终端执行 npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill ralph-me…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ralph-merge-worktrees 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ralph-merge-worktrees 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ralph-merge-worktrees 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ralph-merge-worktrees 用的人多吗?

公开数据是累计安装 685 次,近一周安装 28 次,下载 220 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ralph-merge-worktrees 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ralph-merge-worktrees

拉尔夫合并工作树 · 本页

685—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Ralph Merge Worktrees

Analyze completed Ralph worktree PRDs, build a dependency-aware merge queue, and sequentially squash-merge each branch into main — removing the worktree after each successful merge.

Overview

Ralph worktrees live at .claude/worktrees/ralph/<feature>/ with PRDs at scripts/ralph/prd.json inside each worktree. A worktree is "completed" when every user story in its PRD has passes: true. This skill finds all completed worktrees, determines the safest merge order, presents the plan for approval, and then executes it one branch at a time.

Step 1: Scan and Identify Completed Worktrees

Read every .claude/worktrees/ralph/*/scripts/ralph/prd.json file. For each PRD:

  1. Parse the JSON — extract branchName, description, and userStories[]
  2. A worktree is completed when ALL stories have passes: true
  3. Skip any worktree whose PRD has at least one story with passes: false
  4. Also skip worktrees that don't have a prd.json (malformed or empty)

If no completed worktrees are found, tell the user and stop.

Step 2: Analyze Each Completed Branch

For each completed worktree, gather merge intelligence:

# From the main repo root, diff the branch against main
git diff main...<branchName> --stat
git diff main...<branchName> --name-only
git log main..<branchName> --oneline

Collect for each branch:

  • Files changed — the full list of modified/added/deleted files
  • Change categories — classify files into buckets:

- terraform — anything under terraform/ (infra, resolvers, functions, lambda) - types — anything under types/ - graphql — anything under app/graphql/ - services — anything under services/ - composables — anything under app/composables/ - components — anything under app/components/ - pages — anything under app/pages/ - layouts — anything under app/layouts/ - content — anything under content/ - config — root config files (nuxt.config.ts, terraform-scaffold.config.ts, etc.) - other — everything else

  • Commit count — number of commits on the branch
  • Story count — total user stories in the PRD
  • File count — total files changed
  • Overlap matrix — which files are touched by multiple branches (potential conflict zones)

Step 3: Build the Priority Queue

Rank branches for merge order using these heuristics (most important first):

3a. Dependency Layer Ordering

Merge bottom-up through the stack so downstream features inherit upstream changes:

  1. Infrastructure first — branches that primarily touch terraform/, types/, services/, config (schema, tables, resolvers, types)
  2. Data/API layer — branches focused on app/graphql/, app/composables/ (client-side data plumbing)
  3. UI layer last — branches primarily touching app/components/, app/pages/, app/layouts/, content/

Determine the "primary layer" by whichever category has the most changed files. If a branch spans multiple layers, it belongs to the lowest layer it touches (infra > api > ui).

3b. Within the Same Layer

When two branches are in the same layer, break ties using:

  1. Less file overlap first — branches that share fewer files with other pending branches get merged first (lower conflict risk after merge)
  2. Smaller changeset first — fewer files changed = less risk, gets quick wins merged early, and the larger branch can rebase more easily if needed
  3. Fewer commits first — proxy for scope/complexity

3c. Special Cases

  • If a branch only touches content/ files (e.g., legal pages, markdown), it's very low-risk — can go anywhere in the queue, but default to early since it won't conflict with code changes
  • If a branch touches terraform-scaffold.config.ts or terraform/envs/staging/main.tf, prefer merging it early — other branches may have stale copies of these high-contention files

Step 4: Present the Merge Plan

Show the user the proposed merge queue in a clear table format:

Ralph Merge Queue — N completed branches ready

Priority | Branch                          | Stories | Files | Layer        | Reason
---------|--------------------------------|---------|-------|--------------|------------------
1        | ralph/legal-pages              | 6/6     | 8     | content      | Content-only, low risk
2        | ralph/post-creation            | 12/12   | 34    | infra+ui     | Core data model, merge early
3        | ralph/like-thread-post-comment  | 8/8     | 15    | infra+ui     | Depends on thread model
...

File overlap warnings:
- terraform/envs/staging/main.tf: touched by 3 branches (post-creation, chat-and-messaging, like-thread-post-comment)
- terraform/envs/staging/schema.graphql: touched by 4 branches

Proceed with merge queue? (y/n)

Wait for user confirmation before proceeding. If the user wants to reorder or skip branches, adjust the queue accordingly.

Step 5: Execute the Merge Queue

For each branch in the queue, in order:

5a. Pre-merge Check

# Ensure main is clean and up to date
git checkout main
git status --porcelain

If there are uncommitted changes on main, stop and alert the user.

5b. Squash-Merge via /squash

Invoke the /squash skill with the branch name. This handles:

  • Pre-flight checks (branch exists, has diverged from main)
  • git merge --squash <branchName>
  • Delegates commit to /commit (Conventional Commits, Co-Authored-By trailer)
  • Post-merge verification
  • Local branch cleanup (git branch -d/-D)

If the squash-merge fails due to conflicts:

  1. git merge --abort
  2. Report which files conflicted
  3. Skip this branch — move it to the end of the queue or remove it
  4. Ask the user: "Branch X has conflicts. Skip it and continue with the next branch, or stop the queue?"
  5. Continue or stop based on the user's answer

5c. Remove the Worktree

After a successful merge and branch deletion:

# Remove the git worktree
git worktree remove .claude/worktrees/ralph/<feature-name>

# If worktree remove fails (dirty), force it since we already merged
git worktree remove --force .claude/worktrees/ralph/<feature-name>

Verify the worktree directory is gone. If the directory still exists after git worktree remove, it may need manual cleanup — warn the user but continue.

5d. Prune and Report

git worktree prune

Log the result:

[1/N] ralph/legal-pages — merged and worktree removed
[2/N] ralph/post-creation — merged and worktree removed
[3/N] ralph/chat-and-messaging — SKIPPED (merge conflict in schema.graphql)
...

5e. Continue to Next Branch

Move to the next branch in the queue. Each subsequent merge benefits from the prior merges already being on main, which reduces drift.

Step 6: Final Summary

After processing the entire queue:

Ralph Merge Complete
--------------------
Merged:  5 branches
Skipped: 1 branch (conflicts)
Remaining worktrees: 3 (incomplete PRDs)

Skipped branches (need manual resolution):
- ralph/chat-and-messaging: conflict in terraform/envs/staging/schema.graphql

Remaining incomplete worktrees:
- ralph/follow-and-unfollow (4/10 stories)
- ralph/test-coverage (0/8 stories)
- ralph/implement-reporting (2/6 stories)

If any branches were skipped due to conflicts, suggest next steps:

  1. Go into the skipped worktree
  2. git rebase main to incorporate the newly merged changes
  3. Resolve conflicts
  4. Re-run /ralph-merge-worktrees to merge the remaining completed branches

Important Notes

  • Always get user confirmation before starting the merge queue — this is a destructive operation (worktree removal)
  • Each merge builds on the last — if branch 2 conflicts, branches 3+ might have different conflict profiles than predicted. Re-check is automatic since we run /squash which does pre-flight
  • The skill reads PRD files from the worktree directories, not from main — each worktree has its own copy
  • Worktree paths use the feature name without the ralph/ prefix: .claude/worktrees/ralph/post-creation/ for branch ralph/post-creation
  • After all merges complete, run bun run lint on main to verify the combined codebase is healthy
  • Quote file paths with spaces in all git/bash commands (the project path contains spaces)

平台分布

Codex

34.52%
按下载量换算76

Claude

31.63%
按下载量换算70

Cursor

20.14%
按下载量换算44

Gemini CLI

8.93%
按下载量换算20

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills