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.
npx skills add martin-janci/autopilot --skill gh-pr-handlinggit clone --depth 1 https://github.com/martin-janci/autopilotWrote 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.
[](https://agentmods.dev/skills/martin-janci/autopilot/gh-pr-handling)<a href="https://agentmods.dev/skills/martin-janci/autopilot/gh-pr-handling"><img src="https://agentmods.dev/badge/skills/martin-janci/autopilot/gh-pr-handling/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/martin-janci/autopilot/gh-pr-handling"><img src="https://agentmods.dev/badge/skills/martin-janci/autopilot/gh-pr-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.01805 |
| Opus 5 | $0.00017 | $0.00903 |
| Sonnet 5 | $0.00007 | $0.00361 |
| Haiku 4.5 | $0.00003 | $0.00180 |
Grade A, and why
gh-pr-handling 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub CLI & Pull Request Handling
Expert guidance for GitHub CLI (gh) operations and pull request management.
When to Use
Activate this skill when the user:
- Works with pull requests (create, review, merge, close)
- Checks CI/CD status or workflow runs
- Manages GitHub issues
- Needs to interact with GitHub API via
gh - Handles Copilot reviews or PR comments
Essential Commands
PR Creation
# Create PR with proper formatting (use HEREDOC for body)
gh pr create --title "feat: add feature X" --body "$(cat <<'EOF'
## Summary
- Brief description of changes
## Test plan
- [ ] Unit tests pass
- [ ] Manual testing completed
EOF
)"
# Create draft PR
gh pr create --draft --title "WIP: feature X"
# Create PR with labels
gh pr create --title "fix: bug" --label "bug,priority:high"
PR Status & Info
# View current PR
gh pr view
# Get PR number
gh pr view --json number -q '.number'
# Get PR state (OPEN, MERGED, CLOSED)
gh pr view --json state -q '.state'
# List open PRs
gh pr list --state open
# List PRs for specific branch pattern
gh pr list --state open --json headRefName,number \
-q '.[] | select(.headRefName | test("^feature/")) | "\(.number):\(.headRefName)"'
CI Checks
# View all checks
gh pr checks
# Get check conclusions
gh pr checks --json conclusion -q '.[].conclusion'
# Get failed checks with details
gh pr checks --json name,conclusion,detailsUrl \
-q '.[] | select(.conclusion == "FAILURE")'
# Wait for checks to complete
gh pr checks --watch
Reviews & Comments
# Get all reviews
gh pr view --json reviews -q '.reviews'
# Get Copilot review state
gh pr view --json reviews -q '
[.reviews[] | select(.author.login | test("copilot"; "i"))]
| sort_by(.submittedAt) | .[-1].state // ""
'
# Get latest Copilot comment
gh pr view --json comments,reviews -q '
(
[.comments[] | select(.author.login | test("copilot"; "i"))] +
[.reviews[] | select(.author.login | test("copilot"; "i"))]
) | sort_by(.createdAt) | .[-1]
'
# Add comment to PR
gh pr comment --body "Comment text here"
# Request review
gh pr edit --add-reviewer username
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.
- 11d ago First seen · 273 lines · 35 tokens per session scan A 63d81192361b
gh-pr-handling is a skill published in the GitHub repository martin-janci/autopilot (2 stars, last pushed 8mo ago), licensed MIT. It adds 35 tokens to every session and 1,805 once invoked, about $0.0002 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-31.
Other skills, from other repositories
review-implement-phase
Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.
github-pr-workflow
Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.
github-automation
GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.
review-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
github-contributor
End-to-end playbook for shipping high-quality pull requests to open-source projects you don't maintain — discovery, CONTRIBUTING compliance, PR-size check, minimal-diff implementation, PR description with AI-assisted disclosure, conflict resolution, and post-submission maintainer interaction. Use whenever creating…