Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

dbx-merge-releasedbx 合并发布

Agent Skill

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

总安装

188

周安装

8

GitHub Stars

13

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dereekb/dbx-components --skill dbx-merge-release

简介

dbx-merge-release 自动化合并 main 分支回 develop,处理非线性的 release 历史结构。

  • 使用专用 shell 脚本应对 force-merge 场景,确保发布后主干变更正确回流。
  • 适用于持续交付流程,减少人工合并冲突风险,提升发布后同步效率。
  • 操作前需备份 develop 分支,确认脚本执行环境与 git 凭证有效,避免合并中断。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

dbx-merge-release

Automated workflow for merging the main branch back into develop after a release has been cut. Uses the shell scripts in the repository root.

Context

After a release is published (via CircleCI), the main branch has release commits (version bumps, changelog, tag) that need to be merged back into develop.

Important constraint: Main and develop do NOT share linear history — main gets force-merged release commits. This means git rebase origin/main will never work (it tries to replay the entire repo). Always use the merge scripts.

How It Works

The scripts handle two cases automatically:

  1. No new commits on develop: Simple merge. Conflicts (if any) are from CI-generated version bumps — resolve with --theirs.
  2. New commits on develop after the release: The start-merge-in-main.sh script detects commits on develop that have a UTC timestamp after the latest commit on origin/main. It saves them to a temporary branch (temp/develop-new-commits), resets develop back, then does the merge. After end-merge-in-main.sh completes, the agent rebases the saved commits on top of develop so they appear after the new -dev tag and will be included in the next release.

Workflow

Step 1: Start the Merge

Ensure you're on develop with a clean working tree, then:

sh start-merge-in-main.sh

This script:

  1. Checks for uncommitted changes (exits if dirty)
  2. Fetches and pulls latest develop and main from origin
  3. Compares timestamps: finds any develop commits after the latest main commit
  4. If found: saves them to temp/develop-new-commits, resets develop back
  5. Starts a merge of origin/main into develop with --no-commit --no-ff

Step 2: Resolve Conflicts

Check for conflicts:

git diff --name-only --diff-filter=U

Since develop has been reset to before any new work, conflicts should only be from CI-generated files. Resolve with:

git checkout --theirs .
git add .

If there are develop-only files that conflict (rare after the reset), keep ours:

git checkout --ours <file>
git add <file>

Step 3: Verify

git status
git diff --cached --stat

Ensure all conflicts are resolved and staged changes look reasonable (mostly package.json version bumps + CHANGELOG).

Step 4: Complete the Merge

sh end-merge-in-main.sh

This script:

  1. Creates the merge commit with message: merge(release): merge <tag> release
  2. Runs make-dev-tag.sh to create the new -dev tag
  3. Prints a reminder if temp/develop-new-commits exists (but does NOT rebase it)

Step 5: Rebase Saved Commits (if applicable)

If start-merge-in-main.sh saved commits to temp/develop-new-commits, rebase them onto develop now:

git rebase develop temp/develop-new-commits

If there are conflicts during the rebase, resolve them per-commit:

  • Check conflicts: git status
  • For CI-generated files (package.json versions): accept the develop version (which now has the release versions)
  • For source code: keep the temp branch's changes (the new development work)
  • Continue: git rebase --continue

After the rebase completes, fast-forward develop to include the rebased commits:

git checkout develop
git merge --ff-only temp/develop-new-commits
git branch -d temp/develop-new-commits

Step 6: Verify Tags

After the merge (and optional rebase), verify tags:

git tag --list "v*" --sort=-v:refname | head -5

Expected output (e.g., after v13.0.6 release):

v13.0.6-dev
v13.0.6
v13.0.5-dev
v13.0.5
...

If the -dev tag is missing: sh make-dev-tag.sh

Step 7: Push

If there were no saved commits (simple merge):

git push origin develop --tags

If saved commits were rebased back onto develop, the branch history was rewritten and a force push is needed. Always confirm with the user before force pushing:

git push origin develop --tags --force-with-lease

How the Tagging System Works

Tag Flow

  1. Release on CircleCI: The release script (tools/scripts/release.mjs) runs on a release branch. It:

- Finds the last stable tag (e.g., v13.0.5) and its -dev counterpart (v13.0.5-dev) - Uses the -dev tag as the anchor — only commits after the -dev tag are considered for the next release - Bumps the version, generates a changelog, commits, and creates a new release tag (e.g., v13.0.6)

  1. Merge back to develop: This workflow. After merging main into develop, end-merge-in-main.sh creates the new -dev tag (e.g., v13.0.6-dev).
  2. Next release cycle: The next release looks for v13.0.6-dev as the starting point. Only commits after that tag are included.

Why the -dev Tag Matters

The release script uses this logic:

fromTag = allTags.includes(devTag) ? devTag : lastStableTag
  • The -dev tag marks where post-release development begins on develop
  • Without it, the release script would compare from the wrong point and produce incorrect changelogs
  • Commits made before the merge (and before the -dev tag) would NOT be included in the next release — this is why the scripts save and rebase new commits to appear after the tag

Tag Naming Convention

TagCreated ByLives OnPurpose
v13.0.6CircleCI releasemainMarks the release commit
v13.0.6-devmake-dev-tag.shdevelopMarks the start of the next dev cycle

Important Notes

  • Always start from a clean working tree — the start script checks for this
  • Must be on the develop branch before starting
  • Never use git rebase origin/main — main and develop don't share linear history
  • The merge commit type is merge — this is a reserved type (see dbx-commit-messages skill)
  • The dev tag is required — without it, the next release will analyze the wrong set of commits
  • Do not amend the merge commit — the format is generated by the script
  • The temp branch temp/develop-new-commits is created and cleaned up automatically by the scripts

Error Recovery

  • If the start script fails due to dirty state: stash or commit changes first
  • If the merge has unresolvable conflicts: git merge --abort and investigate
  • If the end script fails: manually create the commit following the merge(release): merge <tag> release format, then run sh make-dev-tag.sh
  • If the -dev tag is missing after completion: run sh make-dev-tag.sh manually
  • If the temp branch exists from a failed previous run: the start script will clean it up automatically

Related Scripts

  • start-merge-in-main.sh — Detects new commits, saves them, initiates the merge
  • end-merge-in-main.sh — Commits the merge and creates dev tag
  • make-dev-tag.sh — Creates the <tag>-dev git tag
  • tools/scripts/release.mjs — Release script that consumes the -dev tags

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.08%
按下载量换算24

Claude

28.61%
按下载量换算19

Cursor

19.07%
按下载量换算13

Gemini CLI

9.78%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/dereekb/dbx-components --skill dbx-merge-release 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills