usage

GitHub CLI 2.91.0

工具與目錄
在這頁

新功能 2 項

01

技能可裝進更多 AI 工具,搜尋與發布更不容易搞錯

你可以用 gh skills install 把同一個技能裝進多個 agent host(承載 AI 代理工具的應用程式),不必逐一手動複製。安裝時可選擇允許隱藏資料夾,搜尋也會認得巢狀的 skills/ 資料夾;若發現某技能曾重新發布,會提供安裝上游版本的選項。預覽會依安裝名稱正確比對,避免看錯技能。gh 與 gh-skill 的 agent skills 文件也已補上。skills publish --fix 也終於只修正問題、不會意外發布,而介面刪除了誤導文字。像替一把萬用鑰匙配多扇門:門更多、標籤更準,修鎖時也不會順手把門打開。

官方原文

Add support for installation in multiple agent hosts in gh skills install by @tommaso-moro in https://github.com/cli/cli/pull/13209

Add --allow-hidden-dirs flag to gh skill install by @SamMorrowDrums in https://github.com/cli/cli/pull/13213

Make skill discovery less strict: support nested skills/ directories by @SamMorrowDrums in https://github.com/cli/cli/pull/13235

feat(skills): detect re-published skills and offer upstream install by @SamMorrowDrums in https://github.com/cli/cli/pull/13236

Fix skills publish --fix to not publish by @SamMorrowDrums in https://github.com/cli/cli/pull/13237

fix(skills): match skills by install name in preview command by @SamMorrowDrums in https://github.com/cli/cli/pull/13249

Remove misleading text by @tommaso-moro in https://github.com/cli/cli/pull/13203

docs(skills): add gh and gh-skill agent skills by @BagToad in https://github.com/cli/cli/pull/13244

02

新增遙測控制與紀錄,別名不會被送出

你能用新增的 telemetry 指令查看或調整遙測(telemetry,匿名收集的使用紀錄)設定,也不用再靠環境變數才啟用。GitHub CLI 開始以抽樣方式記錄指令使用情況,並特別記錄技能、官方擴充功能、CI 環境(自動執行測試或部署的環境)與 AI 代理呼叫的脈絡;若沒有可送出的遙測資料,也會留下紀錄說明。相反地,你自訂的別名不會被送出。這些資訊用來了解功能如何被使用,不代表記下每次操作。像商店抽樣統計哪些貨架常被看,但不抄下每位客人替商品取的綽號。

官方原文

Add sampled command telemetry by @williammartin in https://github.com/cli/cli/pull/13191

Do not send telemetry for aliases by @williammartin in https://github.com/cli/cli/pull/13192

Add skills specific telemetry by @williammartin in https://github.com/cli/cli/pull/13204

Record CI context in telemetry by @williammartin in https://github.com/cli/cli/pull/13210

Record official extension telemetry by @williammartin in https://github.com/cli/cli/pull/13205

Add telemetry command by @williammartin in https://github.com/cli/cli/pull/13253

Log when there is no telemetry by @williammartin in https://github.com/cli/cli/pull/13255

Enable telemetry without env var by @williammartin in https://github.com/cli/cli/pull/13254