Skip to content
Back to skills

Gh Cli

ASecurity

This skill should be used when working with GitHub CLI (gh) for any task including code search, workflow debugging, GitHub Pages deployment, or general GitHub operations. Use this skill for enhanced code search capabilities, analyzing failed workflow runs, managing GitHub Pages, or any gh command usage.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythonbashdebugginggitdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add shengdabai/Tony-Claude-Code-Skills --skill gh-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gh Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shengdabai-gh-cli/badge)](https://www.skillsdirectory.com/skills/shengdabai-gh-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gh-cli
description: This skill should be used when working with GitHub CLI (gh) for any task including code search, workflow debugging, GitHub Pages deployment, or general GitHub operations. Use this skill for enhanced code search capabilities, analyzing failed workflow runs, managing GitHub Pages, or any gh command usage.
---

# GitHub CLI (gh)

## Overview

Provides specialized utilities for GitHub CLI operations with three powerful Python tools for common workflows, plus general guidance for effective gh command usage.

## Core Capabilities

### 1. Enhanced Code Search
Use `scripts/gh_code_search.py` for advanced GitHub code search with filtering, formatting, and sorting capabilities.

**Key features:** Multiple output formats, rate limiting handling, fork/private repo filtering, match count filtering

**Documentation:** `references/README_gh_code_search.md`

### 2. Workflow Failure Analysis
Use `scripts/gh_failed_run.py` to analyze GitHub Actions workflow failures and extract detailed error information.

**Key features:** Finds most recent failed run, extracts error patterns from logs, outputs structured JSON with run info and failed jobs

**Documentation:** `references/README_gh_failed_run.md`

### 3. GitHub Pages Management
Use `scripts/gh_pages_deploy.py` for GitHub Pages deployment automation including enabling Pages, status checks, and workflow generation.

**Key features:** Enable/configure Pages, check deployment status, trigger rebuilds, generate workflow templates

**Documentation:** `references/README_pages.md`

## General GitHub CLI Best Practices

When working with GitHub CLI:

- Prefer `gh` commands over raw `git` commands for GitHub-specific operations (issues, PRs, releases)
- Use `gh repo view` to quickly inspect repository details
- Leverage `gh pr create --web` or `gh issue create --web` for interactive workflows
- Check `gh --help` for discovering subcommands and capabilities
- Use `gh alias` to create shortcuts for frequently used command patterns

## Using the Python Utilities

All scripts accept `--help` for detailed usage information. Run them directly with Python 3:

```bash
python3 scripts/gh_code_search.py --help
python3 scripts/gh_failed_run.py --help
python3 scripts/gh_pages_deploy.py --help
```

Refer to the respective README files in `references/` for comprehensive documentation, examples, and troubleshooting guidance.

Files in this skill

  • SKILL.md2.3 KB
  • references/README_gh_code_search.md3.6 KB
  • references/README_gh_failed_run.md3.9 KB
  • references/README_pages.md7.4 KB
  • scripts/gh_code_search.py10 KB
  • scripts/gh_failed_run.py8.3 KB
  • scripts/gh_pages_deploy.py13.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.