validate-pr-description

validate-pr-description is a command for Claude Code from rjmurillo/ai-agents. It costs 22 tokens per session (372 once invoked), scanned A, original, MIT.

Use when validating a PR title and description for conventional commit format, issue linking keywords, and template compliance before submission.

Command for Claude Code

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 commands/rjmurillo/ai-agents/validate-pr-description
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-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 validate-pr-description

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/validate-pr-description.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/validate-pr-description)
Your own site
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/validate-pr-description"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/validate-pr-description.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00022 $0.00372
Opus 5 $0.00011 $0.00186
Sonnet 5 $0.00004 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured today against content hash a77b04b081da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate-pr-description 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 today.

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/commands/validate-pr-description.md · 54 lines

What it actually says

Validate PR Description Command

Context

  • PR title: [User provides]
  • PR body: [User provides text or path to a file]

Your task

Validate the PR description against these standards:

1. Conventional Commit Title

Title must match <type>(<scope>)?: <description> where type is one of: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert.

2. Issue Linking Keywords

Body should contain at least one issue linking keyword: Closes #N, Fixes #N, Resolves #N (and their past-tense variants). These keywords auto-close the linked issue when the PR merges on platforms that support them (GitHub, GitLab). On other platforms (Azure DevOps, Bitbucket), they serve as traceability markers.

3. PR Template Compliance

Check that required sections are populated:

  • Summary (non-empty)
  • Changes (at least one item)
  • Type of Change (at least one checkbox marked)

Validation Script (optional)

If .claude/skills/github/scripts/pr/validate_pr_description.py exists, run it:

uv run python .claude/skills/github/scripts/pr/validate_pr_description.py \
  --title "[title]" \
  --body-file "[path-to-body.md]"

Otherwise, validate manually against the criteria above.

Report findings with actionable recommendations for any failures.

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. today First seen · 54 lines · 22 tokens per session scan A a77b04b081da

Subscribe to this mod's changes

validate-pr-description is a command published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 372 once invoked, about $0.0001 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-03.