gh-cli
GitHub CLI (gh) for repos, issues, PRs, actions, releases. Use when working with GitHub or running gh commands.
What this skill does
<!-- TOC: Quick Start | THE EXACT PROMPT | Essential Commands | AGENTS.md Blurb | When to Use | References --> # gh-cli — GitHub CLI > **Core Capability:** Interact with GitHub repositories and services from the command line using `gh`. ## Quick Start ```bash # Install # macOS brew install gh # Linux (Debian/Ubuntu) curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null sudo apt update && sudo apt install gh # Check auth gh auth status # Login gh auth login # Clone repo gh repo clone owner/repo ``` --- ## THE EXACT PROMPT — Pull Request Workflow ```bash # Create PR from current branch gh pr create --fill # Create PR with title/body gh pr create --title "Add feature" --body "Description" # View PR gh pr view 45 gh pr view 45 --web # Checkout PR locally gh pr checkout 45 # Review PR gh pr review 45 --approve gh pr review 45 --request-changes --body "Please fix X" # Merge PR gh pr merge 45 --squash gh pr merge 45 --merge --delete-branch ``` --- ## THE EXACT PROMPT — Issues ```bash # List issues gh issue list # Create issue gh issue create --title "Bug: Login fails" --body "Description" # View issue gh issue view 123 # Close issue gh issue close 123 # Comment on issue gh issue comment 123 --body "Working on this" # Add labels gh issue edit 123 --add-label "bug,priority:high" ``` --- ## THE EXACT PROMPT — Actions (CI/CD) ```bash # List workflow runs gh run list # View run details gh run view 12345 # Watch run in progress gh run watch 12345 # View logs gh run view 12345 --log # Rerun failed jobs gh run rerun 12345 --failed # Run workflow manually gh workflow run deploy.yml -f environment=production ``` --- ## THE EXACT PROMPT — Releases ```bash # Create release gh release create v1.0.0 --title "Version 1.0" --generate-notes # Upload assets gh release upload v1.0.0 ./dist/app.zip # Download assets gh release download v1.0.0 ``` --- ## Essential Commands | Category | Command | Description | |----------|---------|-------------| | Repo | `gh repo clone owner/repo` | Clone repository | | Repo | `gh repo create my-repo --public` | Create new repo | | PR | `gh pr create --fill` | Create PR from branch | | PR | `gh pr checkout 45` | Checkout PR locally | | PR | `gh pr merge 45 --squash` | Merge with squash | | Issue | `gh issue create --title "X"` | Create issue | | Issue | `gh issue list` | List issues | | Actions | `gh run list` | List workflow runs | | Actions | `gh run watch` | Watch current run | | Release | `gh release create v1.0` | Create release | --- ## Quick PR Workflow ```bash # Create branch, commit, push, create PR git checkout -b feature/my-feature # ... make changes ... git add . && git commit -m "Add feature" git push -u origin feature/my-feature gh pr create --fill # Review and merge gh pr checkout 45 gh pr review --approve gh pr merge --squash --delete-branch ``` --- ## AGENTS.md Blurb Copy this to your project's AGENTS.md: ```markdown ### GitHub CLI (gh) The `gh` CLI is configured and authenticated. Common tasks: - Create PR: `gh pr create --fill` - List open PRs: `gh pr list` - Check CI status: `gh pr checks` - Create issue: `gh issue create --title "..." --body "..."` Repo: `https://github.com/<OWNER>/<REPO>` ``` --- ## When to Use - Creating PRs without leaving the terminal - Automating issue creation in scripts - Checking CI status: `gh pr checks` - Viewing PR comments: `gh pr view 123 --comments` - Watching actions run: `gh run watch` --- ## References | Topic | Reference | |-------|-----------| | Full command reference | [COMMANDS.md](references/COMMANDS.md) | | API & GraphQL | [API.md](references/API.md) | | Common workflows | [WORKFLOWS.md](references/WORKFLOWS.md) |
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.