一键导入
github-cli-helper
Execute GitHub CLI commands using the correct Homebrew path. Use when interacting with GitHub PRs, issues, repos, or any gh command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute GitHub CLI commands using the correct Homebrew path. Use when interacting with GitHub PRs, issues, repos, or any gh command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Style rules for git commit messages. Use when writing or editing a commit message.
Style rules for PR review comments and replies. Use when drafting or posting a PR review comment, inline comment, or thread reply.
PR health monitor that checks CI, reviews, comments, and merge status, then autonomously fixes issues. Designed for periodic use with /loop.
Manage tasks in Notion. List, create, update tasks. Use for any Notion task-related operations.
Test-Driven Development guidance. Use during feature-dev Phase 5 (Implementation) or any code implementation. Ensures tests are written BEFORE implementation code, following Red-Green-Refactor cycle.
Create stacked pull requests for GitHub repositories. Use when breaking large features into sequential, dependent PRs with conventional commit titles. Triggers on requests to create stacked PRs, split work into multiple PRs, or organize changes into a PR series.
| name | github-cli-helper |
| description | Execute GitHub CLI commands using the correct Homebrew path. Use when interacting with GitHub PRs, issues, repos, or any gh command. |
Always use the full Homebrew path when executing GitHub CLI commands to ensure reliability across different shell environments.
IMPORTANT: Use /opt/homebrew/bin/gh instead of just gh for all GitHub CLI operations.
# Create a pull request
/opt/homebrew/bin/gh pr create --base main --title "Title" --body "Description"
# List pull requests
/opt/homebrew/bin/gh pr list
# View PR details
/opt/homebrew/bin/gh pr view <number>
# Check PR status
/opt/homebrew/bin/gh pr status
# Merge a pull request
/opt/homebrew/bin/gh pr merge <number>
# Close a pull request
/opt/homebrew/bin/gh pr close <number>
# Review a pull request
/opt/homebrew/bin/gh pr review <number>
# Create an issue
/opt/homebrew/bin/gh issue create --title "Title" --body "Description"
# List issues
/opt/homebrew/bin/gh issue list
# View issue details
/opt/homebrew/bin/gh issue view <number>
# Close an issue
/opt/homebrew/bin/gh issue close <number>
# Clone a repository
/opt/homebrew/bin/gh repo clone <owner>/<repo>
# View repository details
/opt/homebrew/bin/gh repo view
# Create a repository
/opt/homebrew/bin/gh repo create <name>
# Fork a repository
/opt/homebrew/bin/gh repo fork
# List workflow runs
/opt/homebrew/bin/gh run list
# View workflow run details
/opt/homebrew/bin/gh run view <run-id>
# Re-run a workflow
/opt/homebrew/bin/gh run rerun <run-id>
# Check authentication status
/opt/homebrew/bin/gh auth status
# Login to GitHub
/opt/homebrew/bin/gh auth login
# Set default repository
/opt/homebrew/bin/gh repo set-default
/opt/homebrew/bin/gh not gh/opt/homebrew/bin/gh auth status before operations--json flag for programmatic processing/opt/homebrew/bin/gh pr create \
--base main \
--title "feat: add new feature" \
--body "$(cat <<'EOF'
## Description
Detailed description here
## Changes
- Change 1
- Change 2
EOF
)"
/opt/homebrew/bin/gh pr list --json number,title,state,author
/opt/homebrew/bin/gh issue create \
--title "Bug: Something is broken" \
--body "Description of the bug" \
--label bug,priority-high
/opt/homebrew/bin/gh pr comment 123 --body "Thanks for the contribution!"
If /opt/homebrew/bin/gh doesn't exist, check alternative locations:
/usr/local/bin/gh (Intel Macs)which gh to find the actual locationRun /opt/homebrew/bin/gh auth login and ensure repo scope is granted.
Set the GH_HOST environment variable:
export GH_HOST=github.company.com
/opt/homebrew/bin/gh pr list
--help flag to see all available options for any commandjq for advanced JSON processing--web flag to open resources in browser