git-rebase-main

将已完成的分支合并到本地 main 分支并保持线性历史:先提交待处理工作,再提交 main 分支自身的修改,然后将当前分支变基到 main,最后将 main 快进。适用于用户在完成工作并提交后要求将分支变基或合回本地 main 的场景。仅限本地操作,绝不涉及远程仓库。

仓库最近推送
GitHub Stars
107
Forks
21
Issues / PRs
9

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "git-rebase-main":https://skillpi.com/zh/skills/deepskill-8a978c9ec9d79639ad6c2150f4f1fddfb5b6b7b714f15385a54f57f867f03bd5。安装前核对上游来源和版本:https://github.com/Dimon94/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将已完成的分支合并到本地 main 分支并保持线性历史:先提交待处理工作,再提交 main 分支自身的修改,然后将当前分支变基到 main,最后将 main 快进。适用于用户在完成工作并提交后要求将分支变基或合回本地 main 的场景。仅限本地操作,绝不涉及远程仓库。

0 下载

介绍来源: third_party · Dimon94 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
Land a finished branch on local main with linear history — commit pending work, commit main's own dirt first, rebase onto main, fast-forward main. Use when the user asks to rebase/merge/合回主分支 into local main after work is committed. Local only, never touches remotes.
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: git-rebase-main
description: Land a finished branch on local main with linear history — commit pending work, commit main's own dirt first, rebase onto main, fast-forward main. Use when the user asks to rebase/merge/合回主分支 into local main after work is committed. Local only, never touches remotes.

Git Rebase Main

Land the current branch on local main with linear history. Local only: never push, never fetch, never delete the branch afterward.

1. Commit pending work here

If the current worktree is dirty, commit it per the git-commit skill.

2. Already on main → done

If the current branch is main, that commit was the landing. Report and stop.

3. Commit main's own dirt first

Locate main's worktree with git worktree list --porcelain. If main is checked out somewhere and that worktree is dirty, commit it there per the git-commit skill — before the rebase, because that commit advances main and the branch must rebase onto the advanced head.

4. Rebase onto main

git rebase main. On conflict, apply the resolving-merge-conflicts skill; never --abort.

5. Advance main to the rebased head

  • main checked out in a worktree → run git merge --ff-only <branch> there.
  • main not checked out anywhere → run git branch -f main <branch> here.

If the merge is not fast-forward, stop and report. Do not force anything.

6. Report

New main head, commits landed, where dirt was committed (if any), and that the source branch was left intact.

版本历史

  1. v5.0.0 GitHub ↗
    原版更新说明

    Dverity v5.0.0 是从 cc-devflow 到 Dverity 的 breaking identity release。 ## Install ```bash npm install --global [email protected] ``` ## Provenance - Frozen source: `537c532191a3508725adf6349e92ceebed4de45f` - Exact artifact SHA-512: `d623851bf9d5c3cb1d8e01a5eb076d6ac4fd49b8cca72559b608323b31386ec22414375498e07085a97c011b099ad7a4af6f83babe952f74601362ff4804c4e6` - npm package: https://www.npmjs.com/package/dverity/v/5.0.0 - GitHub Actions provenance run: https://github.com/Dimon94/dverity/actions/runs/29312928338 ## Scope 本 release 完成 repo-first rename、exact `[email protected]` publication、npm provenance 与 GitHub tag/release。Downstream sync/deprecation(#80)不在本次执行范围。

  2. v4.1.5 GitHub ↗
  3. v4.1.4 GitHub ↗
    原版更新说明

    ## [4.1.4] - 2026-02-08 ### 🧭 Workspace Worktree Session Recovery & Release Flow Clarity v4.1.4 strengthens workspace-to-worktree continuity so developers can resume a requirement reliably across sessions, and clarifies flow init/release semantics in command and skill docs. #### Added - **Workspace switch script** - Added `.claude/scripts/flow-workspace-switch.sh` - Supports `REQ/BUG` pointer updates, journal logging, `--print-cd`, and sourced `--cd` switching - **Scripts architecture map** - Added `.claude/scripts/CLAUDE.md` as L2 directory map for script responsibilities #### Changed - **Workspace start behavior** - `.claude/scripts/flow-workspace-start.sh` now accepts `REQ-XXX/BUG-XXX` override - Added `--switch` and sourced `--cd` behavior for faster worktree handoff - Added BUG status file compatibility (`devflow/bugs/*/status.json`) - **Requirement initialization linkage** - `.claude/scripts/create-requirement.sh` now syncs `devflow/workspace/{developer}/.current-req` when workspace exists - **Flow docs and skills alignment** - Updated flow init/release/workspace command docs and workflow skills to reflect: - default worktree naming semantics - merge semantics by release strategy - workspace continuity expectations #### Benefits - ✅ New session recovery can target the intended REQ/BUG directly - ✅ Worktree switching is faster and less error-prone via generated `cd` commands - ✅ Flow release semantics are clearer when deciding between PR-only vs merge paths

  4. v4.1.3 GitHub ↗
    原版更新说明

    ## [4.1.3] - 2026-02-08 ### 🔧 Flow Quality Default Path + AGENTS.md Safe Emit v4.1.3 aligns release gates with `/flow-quality` as the default path and improves compiler emitters to preserve user-owned AGENTS memory content. #### Fixed - **Flow quality/release gate consistency** - `/flow-quality` quick mode now generates minimal `TEST_REPORT.md` and `SECURITY_REPORT.md` - Release entry gate accepts `quality_complete` (with `qa_complete` backward compatibility) - Flow docs/scripts updated to recommend `/flow-quality` by default, with `--full` as enhanced review mode - **AGENTS.md overwrite prevention in compiler emitters** - Added managed block upsert mechanism in base emitter - Codex/Antigravity emitters now write compact index blocks instead of appending full agent/rule bodies - Existing user memory content in `AGENTS.md` is preserved #### Added - **Regression coverage for managed blocks** - Tests for AGENTS managed block generation, idempotence, and preservation behavior #### Benefits - ✅ `flow-quality` becomes a true default path to `flow-release` without requiring `--full` - ✅ Compiler output no longer clobbers user-maintained AGENTS memory sections - ✅ Backward compatibility with legacy QA status remains intact

  5. v4.1.0 GitHub ↗
    原版更新说明

    ## 🤖 Claude Team Integration: Multi-Agent Parallel Collaboration v4.1.0 introduces Claude Team functionality for multi-agent parallel development with automatic task scheduling and distributed quality verification. ### Added - **Team Mode for /flow:dev** - Multi-agent parallel execution - `--team` flag enables parallel agent collaboration - `--agents N` specifies agent count (2-5, default 3) - Automatic task dependency parsing and conflict detection - TeammateIdle Hook for automatic task assignment - TaskCompleted Hook for quality verification - **New Hooks** - `teammate-idle-hook.ts` - Task scheduling when teammate goes idle - `task-completed-hook.ts` - Quality verification on task completion - `types/team-types.d.ts` - TypeScript type definitions for Team state - **New Scripts** - `parse-task-dependencies.js` - TASKS.md dependency parser - `detect-file-conflicts.sh` - Parallel task file conflict detection - `team-dev-init.sh` - flow-dev Team mode initialization - **Enhanced orchestration_status.json** - `team` section for teammate tracking - `ralphLoop.teammates` for per-teammate iteration state - Task assignment tracking - **New common.sh Functions** - `is_team_mode_enabled()` - Check Team mode status - `init_team_state()` - Initialize Team state - `add_teammate()` / `update_teammate_status()` - Teammate management - `assign_task_to_teammate()` / `get_unassigned_tasks()` - Task assignment - `all_teammates_idle()` / `cleanup_team_state()` - Team lifecycle ### Changed - **quality-gates.yml** - New Team mode configuration - `teammate_idle` section for idle hook settings - `task_completed` section for completion verification - `ralph_loop.team_mode` for distributed Ralph Loop ### Quality Metrics | Metric | Before | After | Improvement | |--------|--------|-------|-------------| | Parallel agents | 1 | 3-5 | +400% | | Requirement completion time | 90 min | 50 min | -45% | | Task scheduling | Manual | Automatic | 100% | | Quality verification | Single-point | Distributed | 100% | --- **Full Changelog**: https://github.com/Dimon94/cc-devflow/blob/main/CHANGELOG.md **npm**: `npm install [email protected]`

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 解决 Git 分支合并的常见需求
  • 具有广泛受众的实用能力
  • 明确限定本地操作范围
触发精准92/100

亮点

  • 触发词精准完整
  • 覆盖多种变体(rebase/merge/合回主分支)
  • 边界清晰
结构规范88/100

亮点

  • Phase/步骤清晰
  • 有出口条件
  • frontmatter完整
执行可靠85/100

亮点

  • 工具来源明确
  • 参数正确
  • 覆盖主要异常
  • 不可逆操作有确认机制
证据可验 (前四项均值)85/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。