pr-merge-workflow-skill

pr-merge-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 57 tokens per session (1,641 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 OpenCode

Written for OpenCode: installed under .opencode/. 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: OpenCode.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,641 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.00057 $0.01641
Opus 5 $0.00028 $0.00821
Sonnet 5 $0.00011 $0.00328
Haiku 4.5 $0.00006 $0.00164

Measured 4d ago against content hash f7ba5fbdf350, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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.

opencode_app/.opencode/skills/pr-merge-workflow-skill/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 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 1: Merge the PR

  1. Get PR info: gh pr view --json number,url,headRefName,baseRefName,title,state,mergeable
  2. Verify state is OPEN and mergeable is MERGEABLE
  3. Merge using squash (default): gh pr merge <number> --squash --delete-branch=false
    • If user prefers merge commit: gh pr merge <number> --merge --delete-branch=false
    • Do NOT auto-delete branch yet — wait for CI
  4. Record: PR number, source branch name, target branch name, JIRA ticket key (if any)

Phase 2: Monitor GitHub Actions CI

  1. Find the post-merge CI run: gh run list --branch <target-branch> --limit 1
  2. If no CI workflow exists, skip to Phase 4 (no CI to monitor)
  3. Monitor the run:
    • Use gh run view <run-id> to check status
    • Poll every 30 seconds if still in_progress
    • Maximum wait: 10 minutes (configurable by user)
  4. Possible outcomes:
    • completed + conclusion: success → Phase 4
    • completed + conclusion: failure → Phase 3
    • Timeout → Report to user, ask how to proceed

Phase 3: Fix CI Failures (Auto-Heal Loop)

This phase loops until CI passes or max retries hit (default: 3 attempts).

Step 3a: Diagnose

  1. Get failure logs: gh run view <run-id> --log-failed
  2. Identify failing job and step
  3. Determine if the failure is fixable by code changes (lint errors, test failures, type errors) or requires human intervention (infrastructure issues, secret rotation)

Step 3b: Fix

For auto-fixable failures:

  1. Checkout the target branch: git checkout <target-branch> && git pull
  2. Create a fix branch: git checkout -b fix/ci-<run-id>
  3. Read the failing files and apply fixes
  4. Commit with message: fix(ci): resolve <error-type> from run <run-id>
  5. Push and create PR: gh pr create --base <target-branch> --title "fix(ci): ..." --body "..."
  6. Merge immediately if trivial: gh pr merge <number> --squash --delete-branch

Read the full file on GitHub · 165 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. 4d 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 yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 1,641 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

batch

Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.

asgeirtj/system_prompts_leaks · 30 tokens

github-cli

Default GitHub skill for the action agent. Use githubcli for any GitHub request — create/list/view/close issues and PRs, assign, labels, repos, releases, checks, github.com/owner/repo URLs, or gh api. Prefer over shellrun/!gh. Run these with githubcli in the current agent turn.

Tracer-Cloud/opensre · 72 tokens

github

Drive GitHub via the official gh CLI — repos, issues, pull requests, releases, gists, Actions runs, and raw REST through gh api. Use when the user asks to inspect or manage GitHub.

AtomicBot-ai/atomic-agent · 48 tokens

maintainer-release-ops

Maintainer release and milestone operating workflow. Use when a maintainer wants to plan a release, assess milestone health, coordinate release blockers, or generate a release-focused review brief.

vllm-project/semantic-router · 41 tokens

testdino-releases

Use when the user wants to browse, inspect, create, or update releases/milestones in a TestDino project. Covers listreleases, getrelease, createrelease, and updaterelease. Accepts counter-style IDs like MS-12.

anthropics/claude-plugins-community · 56 tokens

create-milestone

Create a GitHub milestone for an upcoming release. Suggests the next version based on the latest release, gathers all merged PRs and closed issues since that release, presents a draft with two tables (Issues and PRs) for user approval, then creates the milestone and assigns all approved items.

agentic-community/mcp-gateway-registry · 64 tokens