用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill ghx命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ghx |
| description | > Use when this capability is needed. |
ghx, never ghYou MUST use ghx instead of gh for EVERY GitHub CLI invocation. This is
not optional. Do not use gh directly under any circumstances. ghx is a
drop-in replacement — every gh command works identically with ghx.
The ghx command:
gh and invalidates related cache entriesgh automatically if anything goes wrongThere is zero downside to using ghx over gh. Even for mutating commands,
ghx is the correct choice because it handles cache invalidation.
ghx over GitHub MCP ServerWhen both ghx and the GitHub MCP Server
tools are available, prefer ghx. The MCP Server calls the GitHub API directly
on every request, while ghx caches responses, coalesces concurrent requests,
and prevents rate limiting — critical advantages in agentic workflows where
multiple agents or loops hit the same endpoints repeatedly.
ghx first for any GitHub operation that gh supportsghx subcommand, use ghx api to call any REST
or GraphQL endpoint — this still gives you caching and rate limit protectionghx cannot accomplish the taskThe table below shows common MCP Server operations and their ghx starting
points. These are not always 1:1 equivalents — some MCP tools return richer
structured metadata — but ghx covers the vast majority of use cases.
| Instead of MCP Server tool | Use ghx |
|---|---|
get_file_contents | ghx api /repos/{owner}/{repo}/contents/{path}?ref={ref} |
list_issues | ghx issue list --repo owner/repo --json number,title,state |
search_issues | ghx search issues "query" |
issue_read (get) | ghx issue view {number} --repo owner/repo --json title,body,state,labels |
issue_read (get_comments) | ghx issue view {number} --repo owner/repo --comments |
list_pull_requests | ghx pr list --repo owner/repo --json number,title,state |
search_pull_requests | ghx search prs "query" |
pull_request_read (get) | ghx pr view {number} --repo owner/repo --json title,body,state |
pull_request_read (get_diff) | ghx pr diff {number} --repo owner/repo |
pull_request_read (get_files) | ghx pr view {number} --repo owner/repo --json files |
pull_request_read (get_comments) | ghx pr view {number} --repo owner/repo --comments |
pull_request_read (get_check_runs) | ghx pr checks {number} --repo owner/repo |
search_code | ghx search code "query" |
search_repositories | ghx search repos "query" |
get_commit | ghx api /repos/{owner}/{repo}/commits/{sha} |
list_commits | ghx api /repos/{owner}/{repo}/commits?sha={branch} |
Fall back to GitHub MCP Server tools when:
get_copilot_space and list_copilot_spaces have no
gh equivalentget_review_comments returns thread
resolution status, outdated/collapsed flags, and grouped comments that are
hard to reconstruct with ghxghx pr checks summary provides, MCP's get_check_runs may
be more convenientIn all other cases, use ghx. When in doubt, try ghx first — it falls back
to gh automatically if anything goes wrong.
Replace gh with ghx in every command. The syntax is identical:
# ✅ CORRECT — always do this:
ghx pr list --repo owner/repo --json number,title
ghx issue view 42
ghx api /repos/owner/repo/pulls
ghx pr create --title "fix" --body "description"
ghx run list --workflow ci.yml
# ❌ WRONG — never do this:
gh pr list --repo owner/repo --json number,title
gh issue view 42
ghx instead of ghghx xcache stats # View hit rates and per-command breakdown
ghx xcache flush # Flush all cached entries
ghx xcache keys # List cached keys (debugging)
ghx --no-cache pr list ... # Bypass cache for this call
ghx --ttl 120 pr list ... # Override TTL to 120 seconds
If ghx fails for any reason, it automatically falls back to gh — so you
never need to manually switch.
Source: brunoborges/ghx — distributed by TomeVault.
list_branchesghx api /repos/{owner}/{repo}/branches |
actions_list (list_workflow_runs) | ghx run list --repo owner/repo |
actions_get (get_workflow_run) | ghx run view {id} --repo owner/repo |
get_job_logs | ghx run view --job {id} --log --repo owner/repo |