om-approve-merge-pr

Approves and squash-merges a pull request after enforcing QA gates and label blocks.

1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/tkogut/agents-os-core --skill om-approve-merge-pr-tkogut
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: om-approve-merge-pr
Source: https://github.com/tkogut/agents-os-core/tree/main/global_skills/om-approve-merge-pr
Command: npx skills add https://github.com/tkogut/agents-os-core --skill om-approve-merge-pr-tkogut

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Merging pull requests safely requires checking review state, CI status, QA sign-off, and blocking labels — a manual process that is easy to get wrong. This Skill automates the approve-and-merge flow for a single PR while refusing to merge when quality gates forbid it. ## Core Features & Use Cases - Gate-enforced merging: Submits an approving review and squash-merges a PR only after verifying hard label blocks (qa-failed, do-not-merge, blocked), the QA approval gate, and QA head SHA freshness against the current PR head. - Fixable-blocker routing: When CI fails or conflicts exist, it routes to om-auto-fix-pr (with --ci-only or the full loop) instead of dead-ending, then merges once the PR is green. - Optional follow-up issues: Files a follow-up issue after a successful merge, with assignee and labels inferred from the PR, or hands off PR/comment links to om-followup-issue-from-pr. - Use Case: A reviewer says "approve and merge PR 2805 with follow-up: extract the shared helper" — the Skill verifies the QA gate, approves, squash-merges, and files the follow-up issue referencing the merged PR. ## Quick Start Ask the agent to approve and merge PR 123, optionally adding a follow-up note to file as an issue after the merge.

Frequently Asked Questions about om-approve-merge-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I approve and merge a pull request with one command?▼

Provide the PR number with intent to merge, such as "approve and merge PR 123". The Skill submits an approving review, verifies merge gates, and squash-merges, reporting the outcome with a PR chaining line.

What happens when a PR has failing CI checks during merge?▼

The merge is refused and the blocker is reported. The Skill offers to route to om-auto-fix-pr with the --ci-only flag to fix failing checks, then merges on the next invocation once the PR is green.

Can a PR be merged without QA approval when the QA gate is enabled?▼

No. When qaGate is true, a PR labeled needs-qa without qa-approved is not mergeable. The Skill refuses and explains the paths: manual QA sign-off, the self-QA exception with evidence, or a skip-qa label for low-risk changes.

Why does the merge stop when a PR has conflicting labels?▼

A PR carrying both needs-qa and skip-qa is inconsistent, so the Skill asks the user which applies before proceeding. Hard blocks like qa-failed, do-not-merge, and blocked always stop the merge and surface the blocker.

Does the skill handle draft or conflicting pull requests?▼

Draft PRs are not merged silently; the Skill asks whether to mark them ready first. Conflicting PRs are not force-merged — it offers om-auto-fix-pr to resolve conflicts through the review-autofix loop.