Token导航 LogoToken导航

Agent Skill · 研究检索

rebase(rebase 搜索)

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

rebase 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 49,058。

总安装 665周安装 28GitHub Stars 9下载 233核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:rebase(rebase 搜索)
来源仓库:https://github.com/equinor/fusion-framework
仓库路径:skills/rebase
安装命令:
npx skills add https://github.com/equinor/fusion-framework --skill rebase
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/equinor/fusion-framework --skill rebase

这个 Skill 是做什么的

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

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。支持基于关键词、任务场景或来源线索进行信息匹配与过滤。通过 npx skills add 命令从指定 GitHub 仓库安装使用。安装前需确认权限范围、维护状态及是否涉及联网或文件操作。

rebase 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/rebase

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/equinor/fusion-framework --skill rebase;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

rebase 怎么安装?

在终端执行 npx skills add https://github.com/equinor/fusion-framework --skill rebase。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

rebase 支持哪些 AI 工具?

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

rebase 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

rebase 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

rebase 用的人多吗?

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

rebase 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
rebase

rebase 搜索 · 本页

6659调用外部服务MIT有提醒

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

SKILL.md 原文

Rebase Skill (Fusion Framework)

This skill helps you rebase feature branches onto the latest main branch, handling common conflicts in a pnpm monorepo.

Overview

When rebasing a feature branch, you'll often encounter conflicts in pnpm-lock.yaml due to parallel dependency changes. The correct approach is to regenerate the lockfile rather than manually resolving conflicts.

Standard Rebase Workflow

1. Prepare for rebase

# Navigate to your worktree or branch
cd /path/to/worktree

# Ensure you're on the correct branch
git branch

# Fetch latest changes from origin (including main)
git fetch origin
git fetch origin main:refs/remotes/origin/main

2. Start the rebase

# Rebase your branch onto the latest main
git rebase origin/main

3. Handle pnpm-lock.yaml conflicts

CRITICAL: When pnpm-lock.yaml has conflicts during rebase:

# Regenerate it from package.json files
pnpm install

# Stage the regenerated lockfile
git add pnpm-lock.yaml

# Continue the rebase
git rebase --continue

4. Handle "Version Packages" commit conflicts

When you encounter a "Version Packages (next)" commit with conflicts:

This happens when your feature branch has pre-release versions (e.g., 2.0.0-next.0) but main has been updated with newer regular versions.

Resolution strategy:

  • package.json: Use --ours (HEAD version from main)
  • CHANGELOG.md: Use --ours (HEAD changelog from main)
# For all package.json conflicts, keep HEAD version
git checkout --ours "packages/*/package.json"
git add "packages/*/package.json"

# For all CHANGELOG.md conflicts, keep HEAD changelog
git checkout --ours "packages/*/CHANGELOG.md"
git add "packages/*/CHANGELOG.md"

# Also check other affected files
git checkout --ours "vue-press/package.json" 2>/dev/null || true
git add "vue-press/package.json" 2>/dev/null || true

# Continue the rebase
git rebase --continue

Why? The main branch has the authoritative versions and changelogs. Your feature branch's pre-release versions will be regenerated when you create a new changeset after rebasing.

5. Handle other conflicts

For conflicts in source files (.ts, .tsx, etc.):

# Manually resolve conflicts in the files
# Then stage the resolved files
git add path/to/resolved-file.ts

# Continue the rebase
git rebase --continue

6. Complete the rebase

After all commits are rebased successfully:

# Verify the branch is clean
git status

# Force push to update the remote branch
git push --force-with-lease origin YOUR_BRANCH_NAME

7. Align pre.json initial versions (if in pre mode)

If .changeset/pre.json exists (pre-release mode), align initialVersions to current package versions for packages changed by the rebase:

# From repo root
node .github/skills/rebase/scripts/align-pre-initial-versions.cjs

What it does:

  • Reads .changeset/pre.json to get the tag (e.g., next)
  • Updates initialVersions when the current package version does NOT end with -TAG.NUMBER (e.g., 2.0.0 or 2.1.0)
  • Skips entries where the current version ends with -TAG.NUMBER (e.g., 2.0.0-next.0), preserving ongoing pre state

8. Sanity check vs remote

Before pushing, verify local rebase result against the remote branch.

# Ensure you have latest remote
git fetch origin

# Set a helper var for current branch
BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Quick overview of what will change on the remote
git diff --stat origin/$BRANCH...HEAD

# See the file list (useful to spot unintended changes)
git diff --name-only origin/$BRANCH...HEAD | sort

# Review commit differences (left/right) without merges
git log --oneline --left-right --cherry --no-merges origin/$BRANCH...HEAD

# Optional: preview the push without sending any data
git push --force-with-lease --dry-run origin $BRANCH

Proceed to push only if the changes match expectations.

9. Generate raw data report

Run the data extraction script:

# From repo root
node .github/skills/rebase/scripts/generate-rebase-report.cjs --no-fetch

This generates .tmp/skills/rebase/<timestamp>-rebase-report.md with raw data:

  • Ahead/behind counts and diff summary
  • Highlights & Anomalies: largest diffs, config changes, dependency summary
  • Full commit list (all 57+ commits with hashes and messages)
  • Changed packages and top-level folders
  • pre.json initialVersions changes (version baseline updates)
  • pnpm-lock.yaml churn
  • Detailed Dependency Changes - Complete breakdown per package:

- ⚠️ Major version bumps (e.g., zod: ^3.23.8 → ^4.3.5) - ➕ Added dependencies (e.g., @azure/search-documents: ^12.2.0) - ➖ Removed dependencies - Minor/patch version changes - Organized by section: dependencies, devDependencies, peerDependencies

10. Generate human-readable summary (automatic)

After the raw report is generated, the AI agent will automatically:

  1. Read the latest report from .tmp/skills/rebase/<timestamp>-rebase-report.md
  2. Analyze the "Detailed Dependency Changes" section
  3. Create a human-readable summary with:

- Breaking dependency changes - Each major bump explained (what package, what changed, why it matters, what to test) - New dependencies added - What was added and its purpose - Version baselines updated - Which packages bumped and what that means - Risk assessment - Overall risk level (🟢 LOW, 🟡 MEDIUM, 🔴 HIGH) with reasoning - Pre-push checklist - Specific tests to run based on detected changes

The summary will be displayed in the chat for review before you push.

  • Next steps: sanity checks and push confirmation

Open the SUMMARY.md file in your editor to review before pushing.

Common Scenarios

Reset local branch to match remote

If your local branch has diverged incorrectly:

# Fetch latest
git fetch origin

# Hard reset to remote branch
git reset --hard origin/YOUR_BRANCH_NAME

Abort a rebase in progress

If you need to start over:

git rebase --abort

Continue after fixing conflicts

# After resolving conflicts and staging changes
git rebase --continue

Skip a commit during rebase

Only if the commit is no longer needed:

git rebase --skip

Rebase Checklist

  • Fetch latest changes from origin
  • Start rebase onto origin/main
  • For pnpm-lock.yaml conflicts:

- Remove the file with git rm pnpm-lock.yaml - Run pnpm install to regenerate - Stage with git add pnpm-lock.yaml

  • For source file conflicts:

- Manually resolve conflicts - Stage resolved files

  • Continue rebase with git rebase --continue
  • Repeat until all commits are applied
  • Force push with --force-with-lease

Why Regenerate pnpm-lock.yaml?

The lockfile contains exact dependency resolutions for the entire monorepo. During a rebase:

  1. Base branch (main) has new/updated dependencies
  2. Your branch has different/updated dependencies
  3. Git cannot merge these semantically - it only sees text conflicts

By regenerating with pnpm install:

  • pnpm reads all current package.json files (including your changes)
  • Resolves dependencies against the latest registry state
  • Creates a consistent lockfile that works with both sets of changes
  • Respects workspace protocols and catalog references

Troubleshooting

"diverged and have X and Y different commits"

Your local branch has commits that aren't on remote. Common causes:

  • Previous force push to a different commit
  • Local branch accidentally pointing to wrong commit

Fix: Reset to remote and rebase:

git fetch origin
git fetch origin main:refs/remotes/origin/main
git reset --hard origin/YOUR_BRANCH_NAME
git rebase origin/main

Rebase conflicts on every commit

You may be rebasing in the wrong direction. Ensure:

  • You're ON your feature branch
  • You're rebasing ONTO main: git rebase origin/main

pnpm install fails during rebase

Check:

  • All package.json changes are staged/committed
  • No syntax errors in modified package.json files
  • You're running from the repository root

Example: Complete rebase flow

# 1. Navigate and prepare
cd /Users/odin.rochmann/dev/GitHub/fusion-framework.worktree/react-19
git fetch origin
git fetch origin main:refs/remotes/origin/main

# 2. Ensure clean state
git status  # Should show "nothing to commit, working tree clean"

# 3. Start rebase
git rebase origin/main

# 4. If pnpm-lock.yaml conflict appears:
git rm pnpm-lock.yaml
pnpm install
git add pnpm-lock.yaml
git rebase --continue

# 5. Repeat step 4 for each commit with lockfile conflicts

# 6. When rebase completes:
git push --force-with-lease origin react-19

Related Skills

  • pnpm-dependency-analysis - Analyze dependencies before/after rebase
  • dependabot-pr-handler - Handle automated dependency updates that may conflict during rebase

平台分布

OpenCode

28.43%
按下载量换算66

Antigravity

23.82%
按下载量换算56

Claude Code

20.13%
按下载量换算47

Codex

12.72%
按下载量换算30

Gemini CLI

8.17%
按下载量换算19

windsurf

3.71%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills