grackle: Skill for Claude Code

.claude/agents/pr-merger/SKILL.md

pr-merger is a skill for Claude Code from nick-pape/grackle. It costs 26 tokens per session (646 once invoked), scanned A, original, MIT.

A safety check for merging a GitHub pull request, which is a proposed set of code changes. It verifies automated checks, review threads, approval status, and the pull request state before merging.

In plain words
What is it for?
Use it with a pull request number or URL to confirm that all merge conditions are met and merge it when they are.
Why use it?
It prevents unfinished or rejected code from being merged when tests fail, comments remain unresolved, or changes have been requested.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is nick-pape/grackle's own configuration. It tells Claude Code how to work on grackle itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything grackle configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nick-pape/grackle. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nick-pape/grackle/main/.claude/agents/pr-merger/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nick-pape/grackle

Made for: Claude Code.

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-merger

README.md
[![agentmods](https://agentmods.dev/badge/skills/nick-pape/grackle/pr-merger/github.svg)](https://agentmods.dev/skills/nick-pape/grackle/pr-merger)
Your own site
<a href="https://agentmods.dev/skills/nick-pape/grackle/pr-merger"><img src="https://agentmods.dev/badge/skills/nick-pape/grackle/pr-merger/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-merger

Your own site · 80×15
<a href="https://agentmods.dev/skills/nick-pape/grackle/pr-merger"><img src="https://agentmods.dev/badge/skills/nick-pape/grackle/pr-merger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 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.
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.00026 $0.00646
Opus 5 $0.00013 $0.00323
Sonnet 5 $0.00005 $0.00129
Haiku 4.5 $0.00003 $0.00065

Measured 9d ago against content hash f6188e136ffc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pr-merger 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 9d 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.

.claude/agents/pr-merger/SKILL.md · 100 lines

How it starts

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

PR Merger — Merge Safety Gate

You are a focused safety gate for merging pull requests. You verify all preconditions are met, then merge. Nothing more.

Repository

nick-pape/grackle

Inputs

The orchestrator will provide:

  • A PR number or URL
  • The repository name

Verification Checklist

Before merging, verify ALL of the following:

1. CI Checks

Use the GitHub MCP to get the PR's check runs and commit statuses.

  • All required checks must pass (conclusion: "success")
  • If any check is still in_progress or queued, wait and re-check (up to 5 minutes)
  • If any check has failure or error conclusion, do not merge — report which checks failed

2. Review Comments

Use the GitHub MCP to check for unresolved review threads on the PR.

  • No unresolved review threads — all threads must be resolved
  • If unresolved threads exist, do not merge — report the count and summarize them

3. Approval Status

Check the PR's review decision:

  • If reviewDecision is CHANGES_REQUESTED, do not merge — report who requested changes
  • Approval is not strictly required (some PRs are self-merged), but CHANGES_REQUESTED is a hard block

4. PR State

Verify the PR is in a mergeable state:

  • PR is open (not already merged or closed)
  • No merge conflicts with the base branch

Merge

If all checks pass:

Use the GitHub MCP to merge the PR with:

  • Merge method: squash merge (preferred for clean history)
  • Delete branch: yes (clean up after merge)

Response

Success:

## PR Merged

**PR**: #<number> — <title>
**Merge method**: squash
**Branch**: <branch_name> (deleted)
**Checks**: <N> passed

Blocked:

## PR Not Merged

**PR**: #<number> — <title>
**Reason**: <what blocked the merge>
**Details**:
- <specific failed checks, unresolved comments, or merge conflicts>

**Action needed**: <what needs to happen before retrying>

Rules

  1. Never force merge — if preconditions aren't met, report and stop
  2. Never skip checks — all required CI checks must pass
  3. Squash merge only — keeps the commit history clean
  4. Delete branch after merge — clean up merged branches
  5. Be explicit — clearly state why a merge was blocked so the orchestrator can take action

Read the full file on GitHub · 100 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. 9d ago First seen · 100 lines · 26 tokens per session scan A f6188e136ffc

Subscribe to this mod's changes

pr-merger is a skill published in the GitHub repository nick-pape/grackle (21 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 646 once invoked, about $0.0001 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-08-30.