GitHub
Purpose
Operate on GitHub pull requests and repository files: fetch PR metadata, list changed files, read diffs, post comments or reviews, and load file content at a path/ref.
When to Use
- Inspect a PR by URL or owner/repo/number.
- List PR files or diff before reviewing.
- Submit a review (APPROVE, REQUEST_CHANGES, COMMENT) or inline comment.
- Read a file from a repository at a branch or SHA.
When NOT to Use
- Opening or merging PRs in this skills repo → publish-skill / user git workflow unless
github_* create tools exist and are requested.
- CI babysitting → babysit (Cursor skill) when available.
- Non-GitHub VCS.
Expected Outcome
- PR state, title, body, and file list from tool responses.
- Reviews/comments only after reading the PR/diff when the user asked for a review.
- File content matches
github_get_file_content at the requested ref.
Inputs to Gather
- PR URL or
owner, repo, pull_number.
- Review body and
event when submitting a review.
- File
path and ref for content reads.
Workflow
- Get PR:
github_get_pull_request (URL or coordinates).
- Files/diff:
github_list_pull_request_files, github_get_pull_request_diff as needed.
- Review/comment:
github_create_review or github_create_pull_request_comment after analysis.
- File read:
github_get_file_content with path and ref.
- Summarize findings with links/SHAs from responses.
Domain rules
- URL or owner/repo/number—use what the user provided.
- Get PR before reviewing—read files/diff first for substantive reviews.
- Review events: APPROVE, REQUEST_CHANGES, COMMENT per user intent.
- File content via dedicated tool, not guessed from diff alone.
Main tools
github_get_pull_request, github_list_pull_request_files, github_get_pull_request_diff
github_create_pull_request_comment, github_create_review
github_get_file_content
Examples
PR details from URL: github_get_pull_request with url; return title, state, author.
LGTM comment: github_create_pull_request_comment or review with COMMENT event and user text.
Tool Availability Rules
| Access |
Behavior |
| Full tool access |
Read and post comments/reviews. |
| Read-only |
Read PR/diff/files only. |
| No integration |
Do not fabricate PR or file content. |
Related tool sets
Review / Decision / Execution Criteria
- Reviews must reflect evidence from diff/files.
- Do not approve without user-aligned criteria.
Output Format
- PR identifier and actions.
- Summary of changes or review text posted.
- Errors.
- Follow-up checks if requested.
Quality Bar
- Specific line/file references when commenting.
- No invented CI status.
Safety and Boundaries
- No tokens in output.
- Confirm before REQUEST_CHANGES on behalf of the user when policy is unclear.
Escalation / Dispatch Rules
- Local git operations without API → shell/git with user approval, not fabricated API results.
References
- Legacy:
skills/old_skills.json (github).
skills/skill.instruction.md, skills/meta.instructions.md
1---2name: github3description: Inspects GitHub pull requests, diffs, files, and reviews via github_* tools. Use for PR details, file lists, comments, reviews, and reading repo file content at a ref.4---56# GitHub78## Purpose910Operate on GitHub pull requests and repository files: fetch PR metadata, list changed files, read diffs, post comments or reviews, and load file content at a path/ref.1112## When to Use1314- Inspect a PR by URL or owner/repo/number.15- List PR files or diff before reviewing.16- Submit a review (APPROVE, REQUEST_CHANGES, COMMENT) or inline comment.17- Read a file from a repository at a branch or SHA.1819## When NOT to Use2021- Opening or merging PRs in this skills repo → **publish-skill** / user git workflow unless `github_*` create tools exist and are requested.22- CI babysitting → **babysit** (Cursor skill) when available.23- Non-GitHub VCS.2425## Expected Outcome2627- PR state, title, body, and file list from tool responses.28- Reviews/comments only after reading the PR/diff when the user asked for a review.29- File content matches `github_get_file_content` at the requested ref.3031## Inputs to Gather3233- PR URL or `owner`, `repo`, `pull_number`.34- Review body and `event` when submitting a review.35- File `path` and `ref` for content reads.3637## Workflow38391. **Get PR**: `github_get_pull_request` (URL or coordinates).402. **Files/diff**: `github_list_pull_request_files`, `github_get_pull_request_diff` as needed.413. **Review/comment**: `github_create_review` or `github_create_pull_request_comment` after analysis.424. **File read**: `github_get_file_content` with path and ref.435. Summarize findings with links/SHAs from responses.4445### Domain rules46471. **URL or owner/repo/number**—use what the user provided.482. **Get PR before reviewing**—read files/diff first for substantive reviews.493. **Review events**: APPROVE, REQUEST_CHANGES, COMMENT per user intent.504. **File content** via dedicated tool, not guessed from diff alone.5152### Main tools5354- `github_get_pull_request`, `github_list_pull_request_files`, `github_get_pull_request_diff`55- `github_create_pull_request_comment`, `github_create_review`56- `github_get_file_content`5758### Examples5960**PR details from URL:** `github_get_pull_request` with `url`; return title, state, author.6162**LGTM comment:** `github_create_pull_request_comment` or review with COMMENT event and user text.6364## Tool Availability Rules6566| Access | Behavior |67|--------|----------|68| Full tool access | Read and post comments/reviews. |69| Read-only | Read PR/diff/files only. |70| No integration | Do not fabricate PR or file content. |7172### Related tool sets7374- `github`7576## Review / Decision / Execution Criteria7778- Reviews must reflect evidence from diff/files.79- Do not approve without user-aligned criteria.8081## Output Format82831. PR identifier and actions.842. Summary of changes or review text posted.853. Errors.864. Follow-up checks if requested.8788## Quality Bar8990- Specific line/file references when commenting.91- No invented CI status.9293## Safety and Boundaries9495- No tokens in output.96- Confirm before REQUEST_CHANGES on behalf of the user when policy is unclear.9798## Escalation / Dispatch Rules99100- Local git operations without API → shell/git with user approval, not fabricated API results.101102## References103104- Legacy: `skills/old_skills.json` (`github`).105- `skills/skill.instruction.md`, `skills/meta.instructions.md`