github-cli

Manage pull requests, inspect GitHub Actions runs, and query the GitHub API.

Updated Jun 1, 2023
One-click install
npx skills add https://github.com/ErebusBat/chezmoi --skill github-cli-erebusbat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-cli
Source: https://github.com/ErebusBat/chezmoi/tree/main/dot_config/opencode/skill/github-cli
Command: npx skills add https://github.com/ErebusBat/chezmoi --skill github-cli-erebusbat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines complex interactions with GitHub, automating tasks related to pull requests, CI/CD, and API operations that go beyond basic commands.

Core Features & Use Cases

  • PR Management: Review, approve, request changes, and merge pull requests efficiently.
  • CI/CD Debugging: Inspect GitHub Actions runs, view logs, and re-run failed workflows.
  • API & Search: Query the GitHub API directly and perform advanced code or issue searches across repositories.
  • Use Case: Debug a failing GitHub Actions workflow by viewing its logs and identifying the exact step that caused the failure.

Quick Start

Use the github-cli skill to view the logs for GitHub Actions run with ID 12345.

Frequently Asked Questions about github-cli

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

FAQPage Schema
How do I view logs for a failing GitHub Actions run from the command line?

To debug failing CI/CD pipelines, this skill retrieves GitHub Actions run logs and identifies the exact failing step. It inspects workflow runs directly to pinpoint failure causes without requiring the web interface.

Can I review and merge pull requests using the GitHub CLI?

Yes, you can review, approve, request changes, and merge pull requests directly via GitHub CLI commands. This streamlines PR management and code integration workflows without needing the web interface.

What is the best way to query the GitHub API for advanced code searches?

The best way to perform advanced code or issue searches is by executing complex GitHub API queries directly. This enables efficient cross-repository code searches and issue retrieval without manual filtering.

Do I need the gh CLI tool installed and authenticated to manage GitHub Actions?

Yes, managing GitHub Actions and pull requests requires the gh CLI tool to be installed and authenticated. This environment setup enables the skill to execute API queries and workflow inspections successfully.

How do I re-run failed GitHub Actions workflows from the terminal?

To re-run failed GitHub Actions workflows, you execute specific GitHub CLI commands to trigger the job again. This automates CI/CD debugging by quickly retrying failed steps directly from your terminal.