open-pr-check

open-pr-check is a cursor rule for Cursor from fmflurry/settings-opencode. It costs 536 tokens per session, scanned A, original, MIT.

A workflow rule that checks open GitHub pull requests before implementing a change or opening a new one. A pull request is a proposed code change for review.

In plain words
What is it for?
It lists open pull requests, compares their titles and changed files with the planned work, and decides whether to build on, replace, or otherwise account for an overlapping request.
Why use it?
It reduces duplicated work and helps avoid competing with an existing change on the same files or issue.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It lists open pull requests, compares their titles and changed files with the planned work, and decides whether to build on, replace, or otherwise account for an overlapping request.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/fmflurry/settings-opencode/open-pr-check
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.

Clone the repo
git clone --depth 1 https://github.com/fmflurry/settings-opencode

Made for: Cursor.

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 open-pr-check

README.md
[![agentmods](https://agentmods.dev/badge/rules/fmflurry/settings-opencode/open-pr-check/github.svg)](https://agentmods.dev/rules/fmflurry/settings-opencode/open-pr-check)
Your own site
<a href="https://agentmods.dev/rules/fmflurry/settings-opencode/open-pr-check"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/open-pr-check/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 open-pr-check

Your own site · 80×15
<a href="https://agentmods.dev/rules/fmflurry/settings-opencode/open-pr-check"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/open-pr-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 536 This file is loaded in full into every session.
When invoked 536 The same file — it is already loaded in full.
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.00536 $0.00536
Opus 5.5 $0.00214 $0.00214
Sonnet 5.5 $0.00107 $0.00107
Haiku 4.5 $0.00054 $0.00054

Measured 3d ago against content hash 99abc4dd8b70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

open-pr-check 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 3d 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.

plugins/fmflurry-harness/rules/open-pr-check.mdc · 28 lines

What it actually says

Open PR check (mandatory)

Why: an implementation once duplicated an open PR from another maintainer or co-owner (a license proposal) because nobody looked at open PRs first.

Before implementing a change, and before opening a new PR, check the open PRs. This applies to a /ship goal and to any coder, tdd-guide or writer dispatch that changes repo files.

  1. List open PRs. gh pr list --state open --limit 100 --json number,title,author,headRefName,isDraft,updatedAt,files
  2. Find overlap with the planned change:
    • the same files or directories,
    • the same topic in the title or body (search with keywords from the goal),
    • the same issue. Read the body and diff of every candidate: gh pr view <n> and gh pr diff <n>.
  3. Decide one outcome per overlapping PR:
    • Build on it. The PR already does part or all of the work and is sound. Base the work on its branch, or reuse its content (cherry-pick or copy, crediting the PR). Do not redo it.
    • Supersede. The new work replaces the PR. Proceed, link the PR from the new PR, and say what was reused and what was dropped. Never close, edit or push to someone else's PR. Propose closure in a comment only with the owner's agreement.
    • Wait or cancel. The PR covers the goal, or it asks for sign-off before anything is applied (for example "do not merge" or "to validate"). Do not implement. Interactive: ask the user. Autonomous: escalate as a human-only blocker with agent-harness goal escalate "<reason>".
    • Unrelated. The overlap is incidental. Proceed.
  4. Record the decision.
    • One row per PR in .claude/state/decisions.tsv (see the show-your-work skill).
    • A ## Related open PRs list in the new PR body: number, decision, one-line reason. If the PR template has no such section, put the list under ## Locked decisions.

Shared ownership. A PR authored by another maintainer or co-owner that touches shared ownership, licensing or legal text always needs that person's sign-off before conflicting work is merged. This holds in autonomous mode too: it is a human-only blocker.

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. 3d ago First seen · 28 lines · 536 tokens per session scan A 99abc4dd8b70

Subscribe to this mod's changes

open-pr-check is a cursor rule published in the GitHub repository fmflurry/settings-opencode (171 stars, last pushed yesterday), licensed MIT. It adds 536 tokens to every session, about $0.0021 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-10-13.