pr-quality-security

pr-quality-security is a skill for Claude Code from rjmurillo/ai-agents. It costs 89 tokens per session (1,167 once invoked), scanned A, original, MIT.

A security check for your local code changes. It looks for vulnerabilities, exposed secrets, and common OWASP Top 10 security mistakes, then reports PASS, WARN, or CRITICAL FAIL.

In plain words
What is it for?
Review a Git diff against a base branch, check changed files for security risks, and run a security gate before pushing.
Why use it?
It finds security problems before you push changes, using the same criteria as the project's continuous integration checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the project-toolkit plugin — 113 skills, 26 commands, 33 agents, 4 hooks shipped together

Good fit Review a Git diff against a base branch, check changed files for security risks, and run a security gate before pushing.

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

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 113 skills, 26 commands, 33 agents, 4 hooks.

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-quality-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/pr-quality-security"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/pr-quality-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,167 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.00089 $0.01167
Opus 5 $0.00044 $0.00583
Sonnet 5 $0.00018 $0.00233
Haiku 4.5 $0.00009 $0.00117

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

Security

Grade A, and why

pr-quality-security 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 2d 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/skills/pr-quality-security/SKILL.md · 102 lines

How it starts

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

PR Quality Gate: Security

Run the security axis of the quality gate against your working changes, before you push, using the same criteria CI will apply.

Migrated from the pr-quality/security command under ADR-064, which makes skills the single user-invocable surface and renames the namespaced sub-command pr-quality/security to pr-quality-security. The command file is gone, so its path is named here in plain text rather than as a citation to something a reader could open.

Triggers

security review my changes, run the security gate, check this diff for vulnerabilities, pr-quality security

Arguments

Base branch: $ARGUMENTS

If $ARGUMENTS names a branch, diff against it. Otherwise default to main.

Criteria

Apply the criteria from: @.github/prompts/pr-quality-gate-security.md

That file is the canonical axis definition and the same one CI loads. Do not paraphrase it from memory: read it, then judge the diff against what it says.

Process

  1. Run git branch --show-current to name the current branch.
  2. Resolve the base branch from $ARGUMENTS, defaulting to main.
  3. Run git diff "<base_branch>" --name-only to list the changed files.
  4. Run git diff "<base_branch>" to read the full diff.
  5. Judge the diff against every criterion in the axis file. Findings are additive: a criterion that fails does not end the pass, because the author needs the whole list in one round rather than one finding per round.
  6. Emit the verdict block, then the JSON block.

What this axis looks for

This axis reads the diff for injected input reaching a sink, a credential or token in the diff, a widened authorization boundary, a path built from user data, and a dependency added without provenance.

Read the full file on GitHub · 102 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. 2d ago First seen · 102 lines · 89 tokens per session scan A cb5751758033

Subscribe to this mod's changes

pr-quality-security is a skill published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 1,167 once invoked, about $0.0004 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-09-08.