/explain-this-pr
Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or
$ npx -y skills add Varnan-Tech/opendirectory --skill explain-this-pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/explain-this-pr
Context preview
The summary Claude sees to decide when to auto-load this skill.
Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or
SKILL.md
explain-this-pr.SKILL.mdname: explain-this-pr
description: Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or understand what a PR changes. Trigger when a user says "explain this PR", "summarize this pull request", "what does this PR do", "add a comment explaining the PR", or shares a GitHub PR URL and asks what it does.
compatibility: [claude-code, gemini-cli, github-copilot]
author: OpenDirectory
version: 1.0.0
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.
**Paragraph 2: Why it matters (business/product impact)**
- Who benefits and how
- What problem this solves or what risk it reduces
- If the commit messages contain a "why", use that context
- If there is no clear "why" in the diff or commits, omit this paragraph rather than guessing
Example:
Users hitting the /api/me endpoint under load were getting inconsistent session data across server instances, causing intermittent 401 errors. This change makes session state consistent across all instances and reduces database load by eliminating one query per authenticated request.
**Rules for both paragraphs:**
- No em dashes — use a comma or period
- No filler: "this PR", "this change", "as you can see"
- No invented outcomes. Only state impacts that are directly visible in the diff or commit messages
- If the PR is a pure refactor with no behavior change, say that explicitly: "Refactors X to Y with no change in observable behavior."
- Under 150 words total
---
Step 4: Self-QA
Before posting, check:
- [ ] Paragraph 1 names specific files or functions from the diff
- [ ] No invented metrics or outcomes
- [ ] No em dashes
- [ ] No filler phrases
- [ ] Under 150 words total
- [ ] If no clear "why" exists, paragraph 2 is omitted rather than guessing
Fix any violation before posting.
---
Step 5: Post as PR Comment
Present the explanation to the user. Ask: "Ready to post this as a PR comment, or would you like to edit it first?"
On confirmation, pass the body via stdin to handle backticks, quotes, and newlines safely:
gh pr comment PR_URL_OR_NUMBER --body-file - << 'EOF'
EXPLANATION_HERE
EOF
After posting: "Comment added. View it at: [url from Step 2]"
If the user says "output only", present the explanation in a code block for manual copy-paste without posting.
Read more
name: explain-this-pr description: Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or understand what a PR changes. Trigger when a user says "explain this PR", "summarize this pull request", "what does this PR do", "add a comment explaining the PR", or shares a GitHub PR URL and asks what it does. compatibility: [claude-code, gemini-cli, github-copilot] author: OpenDirectory version: 1.0.0
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.
**Paragraph 2: Why it matters (business/product impact)**
- Who benefits and how
- What problem this solves or what risk it reduces
- If the commit messages contain a "why", use that context
- If there is no clear "why" in the diff or commits, omit this paragraph rather than guessing
Example:
Users hitting the /api/me endpoint under load were getting inconsistent session data across server instances, causing intermittent 401 errors. This change makes session state consistent across all instances and reduces database load by eliminating one query per authenticated request.
**Rules for both paragraphs:**
- No em dashes — use a comma or period
- No filler: "this PR", "this change", "as you can see"
- No invented outcomes. Only state impacts that are directly visible in the diff or commit messages
- If the PR is a pure refactor with no behavior change, say that explicitly: "Refactors X to Y with no change in observable behavior."
- Under 150 words total
---
Step 4: Self-QA
Before posting, check:
- [ ] Paragraph 1 names specific files or functions from the diff
- [ ] No invented metrics or outcomes
- [ ] No em dashes
- [ ] No filler phrases
- [ ] Under 150 words total
- [ ] If no clear "why" exists, paragraph 2 is omitted rather than guessing
Fix any violation before posting.
---
Step 5: Post as PR Comment
Present the explanation to the user. Ask: "Ready to post this as a PR comment, or would you like to edit it first?"
On confirmation, pass the body via stdin to handle backticks, quotes, and newlines safely:
gh pr comment PR_URL_OR_NUMBER --body-file - << 'EOF' EXPLANATION_HERE EOF
After posting: "Comment added. View it at: [url from Step 2]"
If the user says "output only", present the explanation in a code block for manual copy-paste without posting.
AI Agent Skills built for Founders who hate Marketing
Repo: Varnan-Tech/opendirectory
Other skills on opendirectory-gtm-skills.
- /app-store-review-arbitrage
Fetches low-star App Store and Google Play reviews, clusters them into broken-promise patterns, and generates a ranked copy brief with positioning opportunities.
Open skill - /blog-cover-image-cli
Use when the user asks to generate a blog cover image, thumbnail, or article header. Automatically uses modern typography, brand logos, and Google Search grounding to create beautiful 16:9 images with Gemini 3.1 Flash Image Preview.
Open skill - /brand-alchemy
World-class brand strategist and naming expert. Uses an interrogation-led discovery phase to extract your brand's DNA, then applies scientific naming frameworks (Phonosemantics) and automated multi-TLD domain checking.
Open skill - /claude-md-generator
Use when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs.
Open skill - /cold-email-verifier
Use when the user wants to verify cold emails, enrich a lead list, or autonomously guess email addresses from a CSV using ValidEmail.co or the open-source Reacher engine.
Open skill - /company-radar
Competitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.
Open skill

