Pr merge temporal

From OutlineDriven/odin-codex-plugin · View interactive version

Pr merge temporal is an AI agent skill from the GitHub repository OutlineDriven/odin-codex-plugin. Merge multiple PRs into a temporal integration branch before merging to base, with ordered conflict resolution. Use when you want to validate a set of PRs together on a staging branch before advancing the base branch.

How to use this skill

Skill file

Smart Merge to Temporal Branch

Merge multiple PRs into a temporal integration branch for validation before merging to base.

Process

  1. Detect base branch: Identify the default branch via git remote show origin or repo conventions.
  1. Enumerate PRs: List all PRs to merge. For each, fetch the latest HEAD.
  1. Create temporal branch: Fetch latest and branch from the remote base tip.

```

git fetch origin

git checkout -b temporal/<timestamp> origin/<base>

```

  1. Determine merge order:
  1. Sequential merge with conflict handling — for each PR in order:

a. Attempt git merge --no-ff <pr-branch> into the temporal branch.

b. If merge succeeds cleanly, continue to next PR.

c. If conflicts occur:

d. After each successful merge, run available build/test commands to catch regressions early.

  1. Validate temporal branch: Once all PRs are merged, run full build/test suite if available.
  1. Report results: Present the validated temporal branch to the user. Do NOT merge into base automatically — only advance base if the user explicitly requests it.
  1. Abort conditions — stop the queue and report if:

The temporal branch is abandoned: git checkout <base> — base remains untouched.

Output

Report for each PR: merged successfully, conflicts resolved (with details), or blocked (with reason). Include the temporal branch name for user review.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.