smithery/JamesPrial

gh-cli

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.

Installation

$ npx skills add smithery/JamesPrial --skill gh-cli

Summary

  • 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.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/JamesPrial · top by installs.

npx skills add smithery/JamesPrial

Browse all from smithery/JamesPrial

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,405 B
  • docs SUMMARY.md 318 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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/ghcodesearch.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/READMEghcode_search.md

2. Workflow Failure Analysis

Use scripts/ghfailedrun.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/READMEghfailed_run.md

3. GitHub Pages Management

Use scripts/ghpagesdeploy.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:

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.