explain-this-pr

explain-this-pr is a skill for Claude Code, Codex from Varnan-Tech/opendirectory. It costs 121 tokens per session (1,138 once invoked), scanned A, original, MIT.

A workflow that reads a GitHub pull request—a proposed set of code changes—and explains it in everyday language. It can use the current branch or a supplied pull-request link or number.

In plain words
What is it for?
Use it to understand a pull request, summarize its changes, or post a plain-English explanation as a GitHub comment.
Why use it?
It gives reviewers and teammates a clear explanation of what changed and why without requiring them to study the full code difference first.

Skill for Claude CodeCodex

Part of the opendirectory plugin — 58 skills shipped together

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/varnan-tech/opendirectory/explain-this-pr
Any agent
npx skills add Varnan-Tech/opendirectory --skill explain-this-pr
Clone the repo
git clone --depth 1 https://github.com/Varnan-Tech/opendirectory

Made for: Claude Code, Codex.

Or install opendirectory, the plugin that ships this one along with the rest of its 58 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 explain-this-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/varnan-tech/opendirectory/explain-this-pr.svg)](https://agentmods.dev/skills/varnan-tech/opendirectory/explain-this-pr)
Your own site
<a href="https://agentmods.dev/skills/varnan-tech/opendirectory/explain-this-pr"><img src="https://agentmods.dev/badge/skills/varnan-tech/opendirectory/explain-this-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,138 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.00121 $0.01138
Opus 5 $0.00060 $0.00569
Sonnet 5 $0.00024 $0.00228
Haiku 4.5 $0.00012 $0.00114

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

Security

Grade A, and why

explain-this-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 6d 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/explain-this-pr/SKILL.md · 131 lines

How it starts

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

Explain This PR

Read a GitHub pull request, understand what it changes, and write a plain-English explanation. Post it as a PR comment so reviewers have instant context.


Step 1: Check Setup

Confirm gh is authenticated:

gh auth status

If not authenticated: gh auth login and follow the prompts.

Confirm input. The user must provide one of:

  • A GitHub PR URL (e.g. https://github.com/owner/repo/pull/123)
  • A PR number in the current repo (e.g. #123)
  • The keyword "current" to use the PR for the current branch

If no input, ask: "Which PR should I explain? Share the URL, PR number, or say 'current' for the active branch."


Step 2: Fetch PR Context

Get PR metadata:

gh pr view PR_URL_OR_NUMBER --json number,url,title,body,author,baseRefName,headRefName,additions,deletions,changedFiles,commits,labels,state,isDraft

If isDraft is true, note this to the user: "This PR is still in draft. The explanation is based on its current state."

Get the diff:

gh pr diff PR_URL_OR_NUMBER

If the diff is over 400 lines, read the --stat summary and the first 200 lines of the diff:

gh pr view PR_URL_OR_NUMBER --json files
gh pr diff PR_URL_OR_NUMBER | head -200

Get existing comments (to avoid repeating what is already there):

gh pr view PR_URL_OR_NUMBER --json comments --jq '.comments[].body' 2>/dev/null | head -20

Step 3: Write the Explanation

Write two paragraphs. Read each rule before writing.

Paragraph 1: What it does (technical)

  • One sentence per major change
  • Name the specific files, functions, or systems that changed
  • State the before/after if the diff makes it clear
  • Include concrete numbers if present in the diff (lines removed, tables dropped, endpoints added)
  • Active voice, present tense

Example:

Replaces the in-memory session cache in auth.middleware.ts with a Redis-backed cache (src/cache/redis.ts). Adds get, set, and invalidate methods to the new Redis module and wraps UserService.getById() with a 5-minute TTL. Removes the Map-based cache that was limited to a single process and caused session drift across multiple instances.

Read the full file on GitHub · 131 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 131 lines · 121 tokens per session scan A a0c22a5941a2

Subscribe to this mod's changes

explain-this-pr is a skill published in the GitHub repository Varnan-Tech/opendirectory (635 stars, last pushed 19d ago), licensed MIT. It adds 121 tokens to every session and 1,138 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

content-style

Writing Reddit-native content that sounds human, avoids AI tells, and delivers value through structure and specificity. Applies to workshop posts, definitive model guides, research megathreads, and community FYI/update posts.

AtlasOmnia/donna-starter · 37 tokens

hermes-plugin-development

Use when: creating, debugging, or integrating Hermes Agent plugins, including Python backend plugins (tools, hooks, routers, middleware) and JavaScript Hermes Desktop runtime plugins.

AtlasOmnia/donna-starter · 31 tokens

coding-worktree-recovery

Use this skill when coding-agent work is interrupted, an agent exits without a clean commit, multiple controllers target the same checkout, or the checkout produces inconsistent file/Git behavior.

AtlasOmnia/donna-starter · 56 tokens

macos-storage-management

Safely reclaim local Mac storage without mistaking cloud placeholders for resident data, losing File Provider content, or flattening metadata onto an incompatible external filesystem.

AtlasOmnia/donna-starter · 22 tokens

hermes-mnemosyne

Mnemosyne is Hermes' primary local-first memory engine — SQLite with vector + FTS5 hybrid search, 19+ tools, auto-consolidation, and a standalone CLI. It's a pip-installed plugin (not a built-in toolset) discovered via $HERMESHOME/plugins/mnemosyne/.

AtlasOmnia/donna-starter · 30 tokens

skill-auditor

Audit any Hermes skill file and assign a quality grade based on clarity, completeness, tool guidance, and shareability. Returns specific fix suggestions ranked by impact.

AtlasOmnia/donna-starter · 64 tokens