Non-obvious tips and workarounds for the GitHub CLI (gh) that prevent common pitfalls
From arribanpx claudepluginhub nmoinvaz/speedy-gonzales --plugin arribaThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
gh pr edit --add-reviewer can fail with cryptic empty-string errors. Use the API directly instead:
gh api repos/{owner}/{repo}/pulls/{pr-number}/requested_reviewers \
-f "reviewers[]=username"
gh run view --log can be unreliable for large logs. Download job logs directly via the API and save to a file for searching:
gh api repos/{owner}/{repo}/actions/jobs/{job-id}/logs > /tmp/job.log
To get job IDs for a run:
gh run view {run-id} --repo {owner}/{repo} --json jobs --jq '.jobs[] | {name, id, status, conclusion}'