pr-validity

pr-validity is a skill for Claude Code from rube-de/cc-skills. It costs 38 tokens per session (3,780 once invoked), scanned A, original, MIT.

A read-only pull-request checker that compares newly added code with the existing project to find duplicate or overlapping implementations, then creates a structured GitHub issue.

In plain words
What is it for?
Use it to inspect a pull request, assess the quality of its description, classify its changes, and document duplicate-code findings in GitHub.
Why use it?
It helps identify redundant work before it becomes part of the codebase.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the dlc plugin — 9 skills shipped together

Good fit Use it to inspect a pull request, assess the quality of its description, classify its changes, and document duplicate-code findings in GitHub.

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

Made for: Claude Code.

Or install dlc, the plugin that ships this one along with the rest of its 9 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rube-de/cc-skills/pr-validity.svg)](https://agentmods.dev/skills/rube-de/cc-skills/pr-validity)
Your own site
<a href="https://agentmods.dev/skills/rube-de/cc-skills/pr-validity"><img src="https://agentmods.dev/badge/skills/rube-de/cc-skills/pr-validity.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,780 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00038 $0.03780
Opus 5 $0.00019 $0.01890
Sonnet 5 $0.00008 $0.00756
Haiku 4.5 $0.00004 $0.00378

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

Security

Grade A, and why

pr-validity 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 7d 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/dlc/skills/pr-validity/SKILL.md · 301 lines

How it starts

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

DLC: PR Validity Analysis

Detect duplicate or redundant code introduced by a PR. Read-only analysis — no code modifications.

Before running, read ../dlc/references/ISSUE-TEMPLATE.md now for the issue format, and read ../dlc/references/REPORT-FORMAT.md now for the findings data structure.

Step 1: Resolve Target PR

Determine the PR to check and fetch all data needed for subsequent steps in a single call:

# If PR number provided as argument
PR_JSON=$(gh pr view <PR_NUMBER> --json number,title,url,headRefName,state,additions,changedFiles,files,body)

# If no argument — detect from current branch
PR_JSON=$(gh pr view --json number,title,url,headRefName,state,additions,changedFiles,files,body)

# Display PR summary
echo "$PR_JSON" | jq '{number, title, url, headRefName, state, additions, changedFiles}'

If no open PR is found, abort with: "No open PR found for the current branch. Push your changes and open a PR first."

PR Description Quality Check

Extract .body from PR_JSON and evaluate against a minimal structure rubric:

# Missing Element Severity Type Message
1 PR body is empty or < 50 chars High pr-description "PR has no meaningful description — reviewers need context"
2 No summary section heading — any Markdown heading level (#######) containing Summary, What, Changes, Description, Overview, Context, or Motivation (case-insensitive) Medium pr-description "PR lacks a summary section — add a heading like ## Summary or ## Description"
3 No mention of testing — test plan, tested, how to test, verify, verified, verification, steps to verify, manual test (case-insensitive) Low pr-description "PR description has no test plan or verification instructions"

Evaluation order: Check #1 first. If the body is empty or under 50 chars, emit only the High finding and skip checks #2 and #3 (they are logically entailed and not independently actionable on an empty body). When the body is ≥ 50 chars, evaluate checks #2 and #3 and emit all that match (unlike spec-quality's precedence rule — each missing element is independently actionable).

Read the full file on GitHub · 301 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. 7d ago First seen · 301 lines · 38 tokens per session scan A cba610e7b483

Subscribe to this mod's changes

pr-validity is a skill published in the GitHub repository rube-de/cc-skills (10 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 3,780 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-08-31.

Related

Other skills, from other repositories

great_cto

Use when the CTO describes a feature, task, or project goal. Orchestrates the full SDLC pipeline automatically based on project type.

avelikiy/great_cto · 32 tokens

vertical-real-estate

Residential-proptech domain knowledge so architect / pm aren't naive when speccing real-estate products (listings, lead-crm, transaction-coordination, property-mgmt). Codifies MLS/IDX reality, listing status lifecycle + syndication canonical-source, long-cycle lead nurture, transaction-coordination as the high-pain…

avelikiy/great_cto · 99 tokens

opportunity-solution-tree

Build an Opportunity Solution Tree (OST) to structure product discovery — map a desired outcome to customer opportunities, possible solutions, and experiments. Based on Teresa Torres' Continuous Discovery Habits. Use when the team is unclear what to build next, when multiple opportunities compete, or before writing a…

avelikiy/great_cto · 71 tokens

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens

vertical-fintech-mobile

Domain-knowledge pack for money on a phone — wallets, payments, custody and signing, transaction lifecycle, KYC/AML gates, and offline reconciliation. The rules that separate a payments app from a CRUD app with a currency symbol: a balance is a claim about a server, an idempotency key must outlive the process that…

avelikiy/great_cto · 119 tokens

vertical-hr-recruiting

Domain-knowledge primer for the HR & recruiting vertical (ATS, onboarding, workforce scheduling, engagement). Applied by architect/pm during spec authoring so they aren't naive about hiring pipelines, the admitted offer→onboard data-carry gap, EEO/I-9 compliance, and shift-coverage rules. Stops the four products from…

avelikiy/great_cto · 90 tokens