GitHub CLI Automation

clibycli
•
47k
•

Guides AI agents in executing GitHub CLI (gh) commands with robust pagination, structured JSON formatting, and error handling.

The GitHub CLI Automation skill equips Claude with best-practice patterns for invoking GitHub's official CLI (gh) within non-interactive agent environments. It provides explicit implementation rules for parsing structured JSON using --json and Go templates, managing result pagination to avoid silent truncation, targeting repositories explicitly, handling media attachments across issues and PRs, and navigating complex hierarchy features like sub-issues, discussions, and issue artifacts.

Key Features

01Optimizes repository targeting and handles advanced search qualifiers versus list filters
0247,169 GitHub stars
03Extracts structured JSON and formats output with inline jq and Go templates
04Guides media attachments and issue hierarchies including sub-issues and blocked-by relationships
05Configures reliable non-interactive execution with automatic TTY and pager suppression
06Manages query pagination, GraphQL fallbacks, and result limits across commands

Use Cases

01Creating and modifying GitHub Discussions and issue artifacts directly from automated workflows
02Automating GitHub issue triage, sub-issue hierarchy creation, and dependency linking
03Programmatically querying pull request reviews, comments, and statuses as structured data