github-cli-ops

Guide GitHub CLI operations with file-based inputs and structured JSON outputs.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/hdkz-dev/multi-game-engines --skill github-cli-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-cli-ops
Source: https://github.com/hdkz-dev/multi-game-engines/tree/main/.agent/skills/github-cli-ops
Command: npx skills add https://github.com/hdkz-dev/multi-game-engines --skill github-cli-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Best practices for safe and reliable GitHub CLI (gh) operations. Focuses on avoiding shell escaping issues and parsing errors.

Core Features & Use Cases

  • Safe-Path Guidance: promote file-based input to avoid brittle shell escaping.
  • Structured Output Practices: advocate using --json and strict parsing for reliable data extraction.
  • Verification & Safety: encourage pre-checks and validations before performing mutations and workflow actions.

Quick Start

Apply Safe-Path guidelines by writing complex inputs to a file and invoking gh commands with the file path.

Frequently Asked Questions about github-cli-ops

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

FAQPage Schema
How do I avoid shell escaping issues when passing complex inputs to GitHub CLI commands?

To avoid shell escaping issues with GitHub CLI, write complex inputs to a file and invoke the gh command using that file path. This file-based input method prevents brittle shell escaping and ensures reliable command execution.

What's the best way to parse GitHub CLI output reliably for automation scripts?

The best way to parse GitHub CLI output reliably is using the `--json` flag with strict parsing. This structured output practice ensures accurate data extraction and prevents errors common in text-based parsing.

How do I add verification steps before running GitHub CLI mutations in CI environments?

Add verification steps by running pre-checks and validations before executing GitHub CLI mutations or workflow actions. This safety practice ensures commands only modify PRs or issues when conditions are confirmed.

Why does my GitHub CLI workflow script fail when handling special characters in PR descriptions?

GitHub CLI workflow scripts fail with special characters due to brittle shell escaping. Bypass this by writing the PR description to a temporary file and passing the file path to the gh command.

Can I use GitHub CLI for safe PR management within local development environments?

Yes, you can use GitHub CLI for safe PR management in local environments. Applying safe-path guidance, structured output parsing, and pre-checks ensures reliable PR and issue handling outside of CI pipelines.