shared/input-classifiers/github-pr
Source:
shared/input-classifiers/github-pr.md
input classifier: GitHub PR URL
Pattern
https?://github.com/<owner>/<repo>/pull/<number>Fetch via
adk-mcp-github(preferred) — full PR object + diff.gh pr view <url> --json …(fallback).- Direct REST with
GITHUB_TOKEN_CRED(last resort).
gh fallback command
gh pr view "$URL" --json number,title,state,body,author,baseRefName,headRefName,isDraft,mergeable,reviews,reviewRequests,labels,commits,additions,deletions,changedFiles,files,statusCheckRollup,createdAt,updatedAt,urlFor the diff:
gh pr diff "$URL" # or --patch for full patchesExtract into context.md
### [github-pr] #<num> — <title>url: <full URL>state: open | merged | closedauthor: <login>base ← head: <base>...<head>draft: yes | nomergeable: yes | no | conflictingdiff: +<add>/-<del> across <N> fileslabels: [...]status checks: <green / red / pending counts>reviewers requested: [...]reviews: <count by state>key files (top 5 by changes): - <path> (+X/-Y)description (first 80 words): <quote>linked issues: [...]linked Jira: [...]Hints for downstream skills
/adk-review: this is the primary specialized sub-flow (review-pr)./adk-implement --fix: load reviewer comments + apply./adk-document --type pr-body: if state=open and body is empty/stale./adk-investigate: if PR is implicated in an incident.