check-linked-pr

check-linked-pr is a skill for Claude Code from tomzx/agents. It costs 50 tokens per session (1,994 once invoked), scanned A, original, MIT.

A read-only check for pull requests that another person has linked to the GitHub issue currently being worked on. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it during an active development workflow to check for newly linked pull requests and choose whether to continue, stop, or review them.
Why use it?
It can reveal competing work that appeared after development started, helping avoid duplicating an existing change or decide whether to depend on it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it during an active development workflow to check for newly linked pull requests and choose whether to continue, stop, or review them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/check-linked-pr
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 tomzx/agents --skill check-linked-pr
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomzx/agents/check-linked-pr"><img src="https://agentmods.dev/badge/skills/tomzx/agents/check-linked-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 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.00050 $0.01994
Opus 5.5 $0.00020 $0.00798
Sonnet 5.5 $0.00010 $0.00399
Haiku 4.5 $0.00005 $0.00199

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

Security

Grade A, and why

check-linked-pr 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 22d 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.

skills/check-linked-pr/SKILL.md · 166 lines

How it starts

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

Check Linked PR

Detects pull requests authored by someone else that have been linked to a GitHub issue, and helps decide what to do about them.

Unlike check-duplicates (a one-time pre-flight check run before any work starts), this skill is meant to run repeatedly during an in-progress SDLC flow to catch a competing PR that appears after work has already begun.

It is read-only with respect to GitHub: it never comments, labels, or opens anything. The only side effect is updating .sdlc/state.yml to remember which PRs the user already decided to ignore (so the recurring check does not re-prompt every phase).

Prerequisites

  • Apply the shared SDLC conventions in skills/sdlc/references/shared.md.
  • If no argument is provided, target the issue from $ISSUE_NUMBER (and $REPO), then from .sdlc/state.yml github_ref.
  • gh CLI authenticated with read access to the target repository.
  • A GitHub issue number to check. If the feature has no issue yet (a p-prefixed feature), there is nothing to link to: report clear and stop.

What counts as "linked"

A PR is considered linked to the issue when GitHub records a connection. The skill checks, in order of reliability:

  1. The issue timeline cross-referenced / connected events whose source is a pull request (covers manual "Development" links, PRs that reference the issue number in their body, and closes #N / fixes #N keywords).
  2. A keyword search of open PRs mentioning the issue number (fallback when timeline is empty or unavailable).

A PR is excluded (not competing) when any of these hold:

  • It is authored by the current authenticated user (@me) — that is the SDLC flow's own PR.
  • Its number matches the SDLC flow's own PR (the PR number recorded in .sdlc/state.yml github_ref once create-pr has run).
  • Its number is listed in linked_prs_acknowledged in .sdlc/state.yml (the user already chose to ignore it this run).

Only open PRs from other authors count as competing. A merged PR means the issue may already be resolved: surface it separately as a signal that the flow may be obsolete.

Read the full file on GitHub · 166 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. 22d ago Changed · +13 lines 627b3b3c8abc
  2. 2mo ago First seen · 153 lines · 50 tokens per session scan A 006c260f6b79

Subscribe to this mod's changes

check-linked-pr is a skill published in the GitHub repository tomzx/agents (13 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,994 once invoked, about $0.0002 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-08-31.