From b393cc75b392ed9dc08a38207064c2f8f316c3dc Mon Sep 17 00:00:00 2001 From: thejesh23 Date: Mon, 13 Jul 2026 09:24:44 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20quote=20argument-hint=20YAML=20values=20?= =?UTF-8?q?so=20Copilot=20CLI=20=E2=89=A51.0.65=20loads=20all=20skills?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `argument-hint: [foo]` YAML-parses as a flow sequence (array), not a string. Downstream slash-command loaders that validate `argument-hint` as a string — notably GitHub Copilot CLI ≥ 1.0.65 — silently reject the skill on load, and the command disappears from the CLI menu. Wrap the value in double quotes so it parses as a string. No behaviour change on Claude Code. --- commands/cc/changelog.md | 2 +- commands/cc/create-command.md | 2 +- commands/gh/fix-issue.md | 2 +- commands/gh/review-pr.md | 2 +- commands/screenshot.md | 2 +- commands/translate.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/cc/changelog.md b/commands/cc/changelog.md index 74102dc..5079afd 100644 --- a/commands/cc/changelog.md +++ b/commands/cc/changelog.md @@ -1,6 +1,6 @@ --- description: 智能管理项目 CHANGELOG.md 文件,自动添加版本条目并遵循 Keep a Changelog 规范 -argument-hint: [] +argument-hint: "[]" allowed-tools: [Read, Write, Edit, Bash] --- diff --git a/commands/cc/create-command.md b/commands/cc/create-command.md index cd66363..f3d15b6 100644 --- a/commands/cc/create-command.md +++ b/commands/cc/create-command.md @@ -1,6 +1,6 @@ --- description: 创建新的 Claude Code 自定义命令 -argument-hint: [command-name] [description] +argument-hint: "[command-name] [description]" allowed-tools: Write, Read, LS, Bash(mkdir:*), Bash(ls:*), WebSearch(*) --- diff --git a/commands/gh/fix-issue.md b/commands/gh/fix-issue.md index b1b83cf..878437f 100644 --- a/commands/gh/fix-issue.md +++ b/commands/gh/fix-issue.md @@ -1,6 +1,6 @@ --- description: 修复 GitHub Issue -argument-hint: [issue-number] +argument-hint: "[issue-number]" allowed-tools: Write, Read, LS, Glob, Grep, Bash(gh:*), Bash(git:*) --- diff --git a/commands/gh/review-pr.md b/commands/gh/review-pr.md index 330ed26..b77dc75 100644 --- a/commands/gh/review-pr.md +++ b/commands/gh/review-pr.md @@ -1,6 +1,6 @@ --- description: 详细代码分析评审 GitHub Pull Request -argument-hint: [pr-number] +argument-hint: "[pr-number]" allowed-tools: Write, Read, LS, Glob, Grep, Bash(gh:*), Bash(git:*) --- diff --git a/commands/screenshot.md b/commands/screenshot.md index a615d29..3aa6d9e 100644 --- a/commands/screenshot.md +++ b/commands/screenshot.md @@ -1,6 +1,6 @@ --- description: macOS 屏幕截图并分析图像内容(仅支持 macOS 系统) -argument-hint: [选项] +argument-hint: "[选项]" --- ## 截图 diff --git a/commands/translate.md b/commands/translate.md index 344b1df..8ae298d 100644 --- a/commands/translate.md +++ b/commands/translate.md @@ -1,6 +1,6 @@ --- description: 智能中文翻译工具,支持文本、文件和目录翻译,将英文内容翻译成通顺中文并润色修饰 -argument-hint: [FILE_PATH|DIRECTORY_PATH|TEXT_TO_TRANSLATE] +argument-hint: "[FILE_PATH|DIRECTORY_PATH|TEXT_TO_TRANSLATE]" allowed-tools: [Read, Write, Edit, LS, Glob, Grep] ---