From lucas-dev-tools
Lists open pull requests for the current GitHub repository. This skill should be used when the user says 'open PRs', 'show PRs', 'list PRs', 'get PRs', 'what PRs are open', 'pending PRs', 'pull requests', 'any open PRs', 'PR list', 'show me the PRs', 'PRs for me to review', 'PRs needing review', 'what needs my review', or any variation of wanting to see open pull requests for a repo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lucas-dev-tools:get-open-prshaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute immediately. Do not ask for confirmation or describe what you will do — just run the steps below and display the results.
Execute immediately. Do not ask for confirmation or describe what you will do — just run the steps below and display the results.
Get repo owner and name
Run gh repo view --json nameWithOwner -q .nameWithOwner to get the owner/repo string (e.g. DataDog/dd-trace-dotnet). If this fails (not a git repo, no GitHub remote), print a clear error and stop.
Fetch and process PRs
Run the helper script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/get-open-prs.sh" <owner/repo> [flags]
Flags:
--include-drafts — include draft PRs (excluded by default)--include-bots — include bot authors like dependabot (excluded by default)Add flags based on the user's request (e.g. "include drafts", "show dependabot PRs").
The script fetches up to 100 PRs, filters, and returns the first 30 matches. It outputs JSON:
{
"totalCount": 191,
"prs": [
{ "number": 123, "url": "...", "title": "...", "author": "login", "createdAt": "2026-03-01T12:00:00Z", "approvedBy": ["reviewer1", "reviewer2"] },
...
]
}
Apply user filters
If the user requested additional filters (by author, label, etc.) that the script doesn't handle, post-filter the parsed JSON prs array from step 2. Match fields like author, title, or approvedBy against the user's natural language request.
Sort results
Sort PRs by:
This surfaces PRs that still need review attention at the top.
Format output
Display results as a markdown table:
| PR | Author | Title | Approved By | Age |
|---|---|---|---|---|
| [#123](https://github.com/...) | author | Title of the PR | reviewer1, reviewer2 | 3d |
Rules:
login (no @ prefix, no parentheses)login names from approvedBy, or empty if nonecreatedAt (e.g. 2h, 3d, 2w, 3mo)totalCount)npx claudepluginhub lucaspimentel/claude-plugins --plugin lucas-dev-toolsLists open GitHub PRs, filters out automation PRs (dependabot/snyk), groups by ticket ID, and formats as Markdown. Useful for getting a quick overview of active PRs.
Fetches and lists GitHub PRs awaiting your review or assignment using gh CLI, sorted by age with author/status/URL; offers checkout prompts.
Fetches unread GitHub PR review requests filtered by team. Use to find PRs needing review, check team queue, or show your review requests.