github

Automate GitHub PR, issue, label, milestone, comment, and reaction operations via REST API.

41|13|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/rjmurillo/ai-agents --skill github-rjmurillo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/rjmurillo/ai-agents/tree/main/.claude/skills/github
Command: npx skills add https://github.com/rjmurillo/ai-agents --skill github-rjmurillo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, and includes scripts (resource) components.

What problem does it solve?

This skill provides unified GitHub CLI operations for PRs, Issues, Labels, Milestones, Comments, and Reactions, with a shared helper module to keep code DRY.

Core Features & Use Cases

  • PR Operations: Get-PRContext, Get-PRReviewComments, Get-PRReviewers, Post-PRCommentReply
  • Issue Operations: Get-IssueContext, Set-IssueLabels, Set-IssueMilestone, Post-IssueComment, Invoke-CopilotAssignment
  • Reactions & Copilot: Add-CommentReaction, Copilot assignment workflow
  • Shared Module: GitHubHelpers.psm1 for consistent repo handling, auth, and error codes

Quick Start

pwsh .claude/skills/github/scripts/issue/Get-IssueContext.ps1 -Issue 123

Frequently Asked Questions about github

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub PR and issue operations with the CLI?

Automate GitHub PR and issue operations by using unified CLI commands to retrieve context, manage labels and milestones, post comments, and handle reactions. This skill provides reusable PowerShell scripts that execute GitHub REST API calls for tasks like fetching PR reviewers, enumerating changed files, and posting thread-preserving replies without manual API configuration.

Can I retrieve PR context and reviewer information programmatically?

Yes, retrieve PR context and reviewer information programmatically using Get-PRContext and Get-PRReviewers scripts that query the GitHub REST API and return structured data about changed files, reviewers, and PR metadata. Results are paginated and support owner/repo inference for streamlined queries.

How do I post idempotent comments and reactions on GitHub issues?

Post idempotent comments and reactions using Post-IssueComment and Add-CommentReaction scripts with idempotency markers to prevent duplicate entries. Comments support body-from-file content, enabling complex templated text without inline escaping.

What's the best way to auto-assign labels and milestones to GitHub issues?

Auto-assign labels and milestones using Set-IssueLabels and Set-IssueMilestone scripts that apply batch operations through the GitHub REST API. The skill includes a shared GitHubHelpers module for consistent authentication, repo handling, and error code management across all operations.

Can I integrate Copilot context synthesis into GitHub issue workflows?

Yes, integrate Copilot context synthesis using Invoke-CopilotAssignment with a dedicated YAML schema to configure the workflow. This generates and assigns Copilot-enriched context to issues, automating intelligent assignment and context generation.

Does this work with repositories where owner and repo aren't hardcoded?

Yes, the skill infers owner and repo from your environment or git configuration, eliminating hardcoding. Shared helper modules handle authentication and standardize repository resolution across all PR, issue, and reaction operations.