check-linked-pr

check-linked-pr is a skill for Claude Code, Codex from tomzx/agents. It costs 50 tokens per session (1,991 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 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/tomzx/agents/check-linked-pr
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, 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 check-linked-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/check-linked-pr.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.svg" alt="Measured on agentmods" 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,991 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.1 $0.00050 $0.01991
Opus 5 $0.00025 $0.00996
Sonnet 5 $0.00010 $0.00398
Haiku 4.5 $0.00005 $0.00199

Measured 5d ago against content hash 006c260f6b79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 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 · 153 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. 5d 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 (6 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,991 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens