·gh-cli
</>

gh-cli

strantalis/agent-skills

通過 GitHub CLI (`gh`) 標準化所有 GitHub 交互,而不是臨時 URL、UI 單擊或直接 REST API 調用。當您需要讀取或更改 GitHub 狀態(存儲庫、問題、拉取請求、評論、檢查狀態、操作工作流程/運行、發布、標籤、里程碑、討論、要點)並需要確定性輸出(首選 `--json` + `--jq`)時使用。當用戶提供 GitHub URL(包括“https://github.com/OWNER/REPO/pull/123”、“.../issues/123”、“.../pull/123/files”等深層鏈接或“#issuecomment-...”等評論永久鏈接時也可使用,並且您需要獲取底層 PR/issue/thread 並回复。僅當沒有一流的“gh NOUN VERB”命令時才回退到“gh api”。

3安裝·0熱度·@strantalis

安裝

$npx skills add https://github.com/strantalis/agent-skills --skill gh-cli

SKILL.md

Use gh for GitHub operations with explicit repo targeting, JSON output, and command help-driven discovery of flags/fields. Avoid scraping human-readable output and avoid raw REST calls unless you must (use gh api as the controlled fallback).

Use skills/gh-cli/references/gh-commands.md for a categorized command reference with examples for:

Run a quick environment/context capture when debugging auth/repo targeting problems:

通過 GitHub CLI (`gh`) 標準化所有 GitHub 交互,而不是臨時 URL、UI 單擊或直接 REST API 調用。當您需要讀取或更改 GitHub 狀態(存儲庫、問題、拉取請求、評論、檢查狀態、操作工作流程/運行、發布、標籤、里程碑、討論、要點)並需要確定性輸出(首選 `--json` + `--jq`)時使用。當用戶提供 GitHub URL(包括“https://github.com/OWNER/REPO/pull/123”、“.../issues/123”、“.../pull/123/files”等深層鏈接或“#issuecomment-...”等評論永久鏈接時也可使用,並且您需要獲取底層 PR/issue/thread 並回复。僅當沒有一流的“gh NOUN VERB”命令時才回退到“gh api”。 來源:strantalis/agent-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/strantalis/agent-skills --skill gh-cli
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 gh-cli?

通過 GitHub CLI (`gh`) 標準化所有 GitHub 交互,而不是臨時 URL、UI 單擊或直接 REST API 調用。當您需要讀取或更改 GitHub 狀態(存儲庫、問題、拉取請求、評論、檢查狀態、操作工作流程/運行、發布、標籤、里程碑、討論、要點)並需要確定性輸出(首選 `--json` + `--jq`)時使用。當用戶提供 GitHub URL(包括“https://github.com/OWNER/REPO/pull/123”、“.../issues/123”、“.../pull/123/files”等深層鏈接或“#issuecomment-...”等評論永久鏈接時也可使用,並且您需要獲取底層 PR/issue/thread 並回复。僅當沒有一流的“gh NOUN VERB”命令時才回退到“gh api”。 來源:strantalis/agent-skills。

如何安裝 gh-cli?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/strantalis/agent-skills --skill gh-cli 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/strantalis/agent-skills

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-01

相關 Skills

暫無