merging-pull-requests

merging-pull-requests is a skill for Claude Code, Codex from Luqueee/kivgraph. It costs 39 tokens per session (1,711 once invoked), scanned A, original, Apache-2.0.

A controlled workflow for merging a specific Kivgraph pull request after current CI checks and CodeRabbit review are clean. CI is automated checking that runs against proposed code changes.

In plain words
What is it for?
Use it to verify merge prerequisites, merge one identified pull request, and delete its exact source branch.
Why use it?
It prevents a pull request from being merged while tests, review findings, conflicts, or other required checks remain unresolved.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/luqueee/kivgraph/merging-pull-requests
Any agent
npx skills add Luqueee/kivgraph --skill merging-pull-requests
Clone the repo
git clone --depth 1 https://github.com/Luqueee/kivgraph

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 merging-pull-requests

README.md
[![agentmods](https://agentmods.dev/badge/skills/luqueee/kivgraph/merging-pull-requests.svg)](https://agentmods.dev/skills/luqueee/kivgraph/merging-pull-requests)
Your own site
<a href="https://agentmods.dev/skills/luqueee/kivgraph/merging-pull-requests"><img src="https://agentmods.dev/badge/skills/luqueee/kivgraph/merging-pull-requests.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.01711
Opus 5 $0.00019 $0.00856
Sonnet 5 $0.00008 $0.00342
Haiku 4.5 $0.00004 $0.00171

Measured yesterday against content hash f2e18fb93924, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

merging-pull-requests 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 yesterday.

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.

.claude/skills/merging-pull-requests/SKILL.md · 139 lines

How it starts

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

Merging a Kivgraph pull request

This skill performs the final, destructive PR operation. A request to merge a specific PR authorizes both the merge and deletion of that PR's head branch. Do not use this skill for requests to prepare a PR, check whether it is ready, or enable auto-merge. The workflow below is self-contained and must not load another skill's SKILL.md at runtime.

Preconditions

  1. Treat the PR as review-ready only when the intended changes are committed and pushed, relevant local gates have passed, required GitHub checks have completed successfully, CodeRabbit has reviewed the latest head, every actionable finding is addressed or explained, and GitHub reports no merge conflict or other known blocker. Stop if any condition is missing; do not merge around an unresolved finding.
  2. Resolve exactly one PR. Use the PR number or URL supplied by the user; if it is absent, use the current branch's PR only when there is exactly one. Stop if the target is ambiguous.
  3. Fetch live PR metadata from GitHub. Confirm that the PR is open, not a draft, mergeable, and has a concrete headRefOid, headRefName, headRepository.nameWithOwner, base branch, and repository. Never infer these values from a stale local checkout.
  4. Check required status checks and review state. Wait for pending checks and CodeRabbit; stop on a failure, conflict, missing required check, or a review decision that still requests changes.

CodeRabbit final gate

The final gate is about the current head SHA, not merely whether CodeRabbit has reviewed the PR at some point.

  1. Before waiting, record the current head SHA and a snapshot of all existing CodeRabbit reviews, inline comments, issue comments, and thread states. Keep each artifact's ID, commit or timestamp fields, body digest, and resolution state where available. Set reviewCycleStartedAt immediately after this snapshot. Identify the bot by its GitHub account/login returned by the API, not by a string in the comment body. The usual login is coderabbitai[bot], but do not assume it.
  2. Wait until the CodeRabbit check or review for that exact SHA has completed. A queued, in-progress, absent, or API-inaccessible review is a blocker.
  3. Fetch all three surfaces again:
    • pull-request reviews;
    • pull-request review comments, including replies and threads;
    • issue comments on the PR, which cover comments outside the diff.
  4. Compare the second snapshot with the first and save the second as the postReviewSnapshot. Any new CodeRabbit finding that requests a change blocks the merge, even if CI is green. A new clean summary is not a finding, but it must be reported.
  5. Check existing findings as well. Every CodeRabbit comment concerning the current head must be resolved, obsolete with an evidence-based explanation, or already fixed. Do not treat an old comment as harmless just because it was posted on an earlier SHA. Unresolved review threads or a CHANGES_REQUESTED review block the merge.
  6. Issue comments do not expose commit_id. Treat an issue comment as part of the current review cycle when its ID is new after reviewCycleStartedAt, or its body or updated_at changed after that checkpoint. Evaluate its body and ID even without a commit field. Pre-existing unchanged issue comments remain historical, but their unresolved actionable content still blocks the merge; missing commit_id alone is not uncertainty. If identity, timing, or status cannot otherwise be established, stop and report the uncertainty instead of guessing. After any fix and push, restart this gate from the new head SHA.

Read the full file on GitHub · 139 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. yesterday First seen · 139 lines · 39 tokens per session scan A f2e18fb93924

Subscribe to this mod's changes

merging-pull-requests is a skill published in the GitHub repository Luqueee/kivgraph (19 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 1,711 once invoked, about $0.0002 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-04.

Related

Other skills, from other repositories

codestory-grounding

Use when an agent should ground a local repository with CodeStory before making source claims, planning edits, choosing tests, reviewing changes, or using broad retrieval evidence through the CodeStory plugin MCP.

TheGreenCedar/CodeStory · 44 tokens

graft

This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

trailhq/Graft · 56 tokens

omnigraph

Operate OmniGraph graphs and deployments. Use for .pg schemas, .gq queries, OmniGraph CLI commands, file:///s3:///az:// graph URIs, cluster.yaml, operator config, bearer-authenticated servers, graph-backed knowledge or memory, Blob values, embeddings, branches, commits, and change feeds. Apply especially before schema…

ModernRelay/omnigraph · 94 tokens

roam

Codebase comprehension via roam-code CLI. Use when exploring codebases, planning modifications, debugging failures, assessing PR risk, or checking architecture health. Triggers on: understanding project structure, pre-change safety checks, finding symbols/files, blast radius analysis, affected tests, health scoring…

Cranot/roam-code · 86 tokens

code-graph

This skill should be used when understanding code structure, finding dependencies between functions/classes, tracing call graphs, or exploring code relationships. Trigger phrases include 'code graph', 'call graph', 'who calls', 'what calls', 'find dependencies', 'code structure', 'inheritance', 'find paths'.

FalkorDB/code-graph · 64 tokens

code-knowledge-graph

Codebase'i knowledge graph olarak analiz et. Dependency, call graph, hotspot analizi.

vibeeval/vibecosystem · 24 tokens