Fetches GitHub PR diffs and metadata, converting them into LLM-friendly markdown files.
Install
mkdir -p .claude/skills/pr-tonkeeper && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17510" && unzip -o skill.zip -d .claude/skills/pr-tonkeeper && rm skill.zipInstalls to .claude/skills/pr-tonkeeper
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
toolkit for llm-friendly interaction with GitHub pull requests; using this skill the LLM can fetch PR data and analyze itKey capabilities
- →Fetch GitHub PR metadata
- →Retrieve PR file diffs
- →Structure PR data into Markdown files
- →Write PR data to a specified output directory
- →Load .env files from the repository root
- →Fetch PRs from a specific repository
How it works
This skill uses a Python script to interact with the GitHub CLI, fetching PR metadata and file diffs. It then formats this data into Markdown files for easier analysis.
Inputs & outputs
When to use pr
- →Automate PR code review
- →Analyze diff contents
- →Generate PR summaries
- →Fetch PR metadata
About this skill
Import pull request data as markdown
Use this skill to fetch PR metadata and file diffs into LLM-friendly Markdown files.
Prereqs
- Ensure
ghis installed andgh auth loginhas been completed. - Confirm setup:
python3 .codex/skills/pr/scripts/get_pr_data.py ensure-setupreturns zero exit code.
Usage
Fetch a PR by number:
python3 .codex/skills/pr/scripts/get_pr_data.py get-pr 354
Fetch from a specific repo:
python3 .codex/skills/pr/scripts/get_pr_data.py get-pr 354 --repo tonkeeper/ios_private
Write to a custom output directory:
python3 .codex/skills/pr/scripts/get_pr_data.py get-pr 354 --output /tmp/pr-354
Output
- Default directory:
.context/tasks/<PR_NUMBER>/(relative to repo root) - One markdown file per diff (
0.md,1.md, ...) with keys as headings and thepatchfield in adiffcode block. sha.jsonwith base commit metadata is written to the same directory..envis loaded from the repo root if present.
When not to use it
- →When `gh` is not installed or authenticated
Prerequisites
Limitations
- →Requires `gh` CLI to be installed and authenticated
- →Output is structured into Markdown files with specific naming conventions
How it compares
This skill automates the process of extracting and structuring PR data into an LLM-friendly Markdown format, which is more efficient than manual data retrieval and formatting.
Compared to similar skills
pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr (this skill) | 0 | 21d | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 4mo | Review | Intermediate |
| git-commits | 21 | 3mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by tonkeeper
View all by tonkeeper →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.