pr-merge-workflow-skill

pr-merge-workflow-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 105 tokens per session (2,627 once invoked), scanned A, original, Apache-2.0.

A workflow for completing an approved pull request after it is merged, including checking CI, addressing failures, updating JIRA, and cleaning up the source branch.

In plain words
What is it for?
Use it to merge a ready pull request, monitor its post-merge automated checks, fix qualifying failures, update the linked JIRA issue, and remove the source branch.
Why use it?
It coordinates the follow-up work after a merge so failed checks and project tracking updates are not missed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to merge a ready pull request, monitor its post-merge automated checks, fix qualifying failures, update the linked JIRA issue, and remove the source branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/pr-merge-workflow-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darellchua2/opencode-config-template --skill pr-merge-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-merge-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-merge-workflow-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pr-merge-workflow-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02627
Opus 5.5 $0.00042 $0.01051
Sonnet 5.5 $0.00021 $0.00525
Haiku 4.5 $0.00011 $0.00263

Measured 2mo ago against content hash cac67c7a26bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-merge-workflow-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pr-merge-workflow-skill/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Merge + Monitor + Fix Workflow

Use when the user says phrases like "pr merge to main", "merge the PR to develop", "merge to [branch]", "complete the PR", or "merge it". This skill handles everything after the PR is approved and ready to merge.

Prerequisites

Before executing, confirm:

  • Current branch has an open PR targeting the specified branch
  • PR is in a mergeable state (no conflicts, reviews passed)
  • If not, tell the user what's blocking and stop

Phase 0: Promotion Pre-flight (long-lived → long-lived merges)

Runs ONLY when the PR's head AND base are both long-lived lanes (the Phase 1 classifier list — exact, case-sensitive; an unlisted environment-shaped name → treat as long-lived or ask). Feature/fix heads skip this phase entirely.

Divergence check (one API call, no local checkout)

gh api repos/{owner}/{repo}/compare/{target}...{source} — BASE=target, HEAD=source — read ahead_by (source-side commits: what the promotion will carry) and behind_by (target-only commits the source lacks — fixes that landed directly on the target lane):

  • ahead_by == 0 and behind_by == 0 → report "nothing to promote" and stop.
  • behind_by == 0 → no backmerge needed; go straight to Phase 1.
  • behind_by > 0 → backmerge first (below), then Phase 1.

Backmerge PR (target → source)

Capture target-only fixes before promoting so both lanes converge:

  1. Create the backmerge PR: gh pr create --head <target> --base <source> --title "chore(backmerge): <target> → <source>" --body "Capture <target>-only fixes before promoting <source> → <target> (compare behind_by=N)."
  2. Merge with a merge commit (long-lived head): gh pr merge <number> --merge --delete-branch=false — never --squash (duplicates content under new SHAs) and never --admin (bypasses review protection).
  3. Mergeable is BLOCKED (conflicts or missing review) → report the blocker and stop. Message convention per semantic-release-convention-skill §Promotion Merge Commits.
  4. Watch CI on the source branch (Phase 2) — the backmerge must be green before promoting.

Read the full file on GitHub · 219 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +54 lines · +48 tokens per session cac67c7a26bb
  2. 2mo ago Changed 4c0474dbdd4a
  3. 3mo ago First seen · 165 lines · 57 tokens per session scan A f7ba5fbdf350

Subscribe to this mod's changes

pr-merge-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 105 tokens to every session and 2,627 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

pr-merge-workflow-skill compared with skills from other repositories

pr-merge-workflow-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-merge-workflow-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A105Claude Code, Codex
release-notesbasementstudio/xmcpSkill1.4k3d agoMITA36Claude Code, Codex
Release Notes GeneratorAgentEra/AgentlySkill1.7k23d agoApache-2.0A46Claude Code, Codex
pinned-release-checklistAgentEra/AgentlySkill1.7k23d agoApache-2.0A18Claude Code, Codex
Release ChecklistAgentEra/AgentlySkill1.7k23d agoApache-2.0A19Claude Code, Codex
Release Readiness ReviewerAgentEra/AgentlySkill1.7k23d agoApache-2.0A18Claude Code, Codex
maf-release-watcherjoslat/maf-doctorSkill145d agoMITA94Claude Code, Codex